/*
Theme Name: Meilleur Air Fryer
Theme URI: https://meilleur-air-fryer.fr/
Description: Thème sur mesure du comparatif meilleur-air-fryer.fr : note sur 10 à critères publiés, classements dynamiques, prix Amazon (Creators API), méga-menu, design « paprika ».
Author: VR
Version: 3.0.0
Requires PHP: 7.4
Text Domain: maf
*/

/* ==========================================================================
   1. Identité : couleurs, typographie, espacements
   ========================================================================== */
:root {
	--ink: #1d1a17;
	--ink-2: #45403a;
	--muted: #6b645c;
	--paper: #faf7f2;
	--surface: #ffffff;
	--tint: #f3eee6;
	--line: #e6dfd4;
	--line-2: #d8cfc2;

	--brand: #c2410c;        /* paprika */
	--brand-dark: #9a3412;
	--brand-soft: #fff1e7;
	--brand-line: #f8c9a8;

	--ok: #2f6b4f;           /* sauge */
	--ok-soft: #ecf5ef;
	--ok-line: #cfe5d7;
	--warn: #a16207;
	--bad: #b42318;
	--bad-soft: #fff4f2;

	--tier-a: #2f6b4f;
	--tier-b: #4d8a3c;
	--tier-c: #b7791f;
	--tier-d: #b4532a;

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 4px 14px rgba(29, 26, 23, .06);
	--shadow-lg: 0 8px 30px rgba(29, 26, 23, .12);
	--wrap: 1200px;
	--gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 1.6em 0 .55em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); letter-spacing: -.025em; margin-top: .3em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); font-weight: 750; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .25em 0; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
small { font-size: .85em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.maf-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--surface); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.maf-i { display: inline-block; vertical-align: -.17em; flex-shrink: 0; }

.maf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.maf-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.maf-wide { max-width: calc(1040px + 2 * var(--gutter)); }
/* Largeur unique des articles et des pages (titre et contenu alignés) */
.maf-readable { max-width: calc(1040px + 2 * var(--gutter)); }
.maf-muted { color: var(--muted); }
.maf-small, .entry-content .maf-small { font-size: .85rem; color: var(--muted); }
.maf-lead { font-size: 1.12rem; color: var(--ink-2); }
.maf-kicker {
	margin: 0 0 .35em; font-size: .78rem; font-weight: 750; letter-spacing: .08em;
	text-transform: uppercase; color: var(--brand-dark);
}
.maf-eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; margin: 0 0 14px; }

/* ==========================================================================
   3. Boutons, liens, étiquettes
   ========================================================================== */
.maf-btn, .entry-content a.maf-btn, .maf-prose a.maf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--brand); color: #fff !important; border: 2px solid var(--brand);
	font: 700 .98rem/1.2 var(--font); padding: 12px 20px; border-radius: 10px;
	text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
	box-shadow: 0 2px 0 var(--brand-dark);
}
.maf-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.maf-btn:active { transform: translateY(1px); box-shadow: none; }
.maf-btn--ghost, .maf-prose a.maf-btn--ghost { background: transparent; color: var(--brand-dark) !important; border-color: var(--brand-line); box-shadow: none; }
.maf-btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark) !important; border-color: var(--brand); }
.maf-btn--sm, .maf-prose a.maf-btn--sm { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.maf-btn--lg { padding: 15px 24px; font-size: 1.05rem; }
.maf-btn--block { display: flex; width: 100%; }
.maf-btn--buy { background: var(--ink); border-color: var(--ink); box-shadow: 0 2px 0 #000; }
.maf-btn--buy:hover { background: #000; border-color: #000; }
.maf-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--brand-dark); }
.maf-link:hover { text-decoration: underline; }
.maf-link--light { color: #ffd9bf; }

.maf-tag { display: inline-block; font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.maf-tag--brand { background: var(--brand); color: #fff; }
.maf-tag--soft { background: var(--brand-soft); color: var(--brand-dark); }
.maf-rank { font: 800 .95rem/1 var(--font-display); color: var(--muted); }

.maf-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0; }
.maf-chips li { margin: 0; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--tint); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }

/* ==========================================================================
   4. Notes
   ========================================================================== */
.maf-score { display: inline-flex; align-items: baseline; gap: 1px; color: #fff; background: var(--tier-a); border-radius: 8px; padding: 4px 8px; font-family: var(--font-display); line-height: 1; white-space: nowrap; }
.maf-score b { font-size: 1.05rem; font-weight: 800; }
.maf-score small { font-size: .72rem; opacity: .85; font-weight: 600; }
.maf-score--a { background: var(--tier-a); }
.maf-score--b { background: var(--tier-b); }
.maf-score--c { background: var(--tier-c); }
.maf-score--d { background: var(--tier-d); }
.maf-score--sm { padding: 3px 7px; border-radius: 7px; }
.maf-score--sm b { font-size: .92rem; }
.maf-score--xs { padding: 2px 5px; border-radius: 5px; vertical-align: 1px; }
.maf-score--xs b { font-size: .78rem; }
.maf-score--xs small { display: none; }
.maf-score.is-partial { background: #8a837b; }

.maf-ring {
	--c: var(--tier-a);
	position: relative; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--tint) 0);
	display: grid; place-items: center; place-content: center; grid-auto-flow: column; align-items: baseline;
}
.maf-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.maf-ring > span { position: relative; }
.maf-ring__val { font: 800 1.65rem/1 var(--font-display); letter-spacing: -.03em; }
.maf-ring__max { font-size: .8rem; color: var(--muted); font-weight: 600; }
.maf-ring--b { --c: var(--tier-b); }
.maf-ring--c { --c: var(--tier-c); }
.maf-ring--d { --c: var(--tier-d); }

.maf-bars { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.maf-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "lbl val" "bar bar"; gap: 4px 10px; margin: 0; align-items: center; }
.maf-bars__lbl { grid-area: lbl; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.maf-bars__lbl em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8rem; }
.maf-bars__val { grid-area: val; text-align: right; font: 750 .9rem/1 var(--font-display); }
.maf-bars__track { grid-area: bar; height: 7px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.maf-bars__fill { display: block; height: 100%; border-radius: inherit; background: var(--tier-a); }
.maf-bars__fill--b { background: var(--tier-b); }
.maf-bars__fill--c { background: var(--tier-c); }
.maf-bars__fill--d { background: var(--tier-d); }
.maf-bars--compact { gap: 6px; }
.maf-bars--compact .maf-bars__lbl { font-size: .8rem; }
.maf-bars--compact .maf-bars__lbl em { display: none; }
.maf-bars--compact .maf-bars__track { height: 5px; }
.maf-bars--compact .maf-bars__val { font-size: .8rem; }

/* Prix */
.maf-price { display: flex; flex-direction: column; gap: 2px; margin: 12px 0; }
.maf-price__amount { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -.02em; }
.maf-price__range { font: 750 1.05rem/1.2 var(--font-display); }
.maf-price__saving { align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 7px; border-radius: 6px; }
.maf-price__when { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--muted); }
.maf-price--compact { margin: 0; }
.maf-price--compact .maf-price__amount { font-size: 1.25rem; }
.maf-tip { position: relative; border: 0; background: none; padding: 0; color: var(--muted); cursor: help; line-height: 0; }
.maf-tip:hover::after, .maf-tip:focus::after {
	content: attr(data-tip); position: absolute; left: 0; bottom: 130%; width: 260px; z-index: 30;
	background: var(--ink); color: #fff; font-size: .78rem; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   5. En-tête et navigation
   ========================================================================== */
.maf-topbar { background: var(--ink); color: #e9e2d8; font-size: .8rem; }
.maf-topbar .maf-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.maf-topbar span { display: inline-flex; gap: 6px; align-items: center; }
.maf-topbar a { color: #ffd9bf; text-decoration: none; white-space: nowrap; }
.maf-topbar a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 767px) { .maf-topbar a { display: none; } }

.maf-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
/* Le flou crée un bloc conteneur pour les éléments fixes : réservé au bureau (le menu mobile est en position fixe). */
@media (min-width: 1024px) { .maf-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); } }
.admin-bar .maf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .maf-header { top: 0; } }
.maf-header__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.maf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.maf-logo img { display: block; height: 52px; width: auto; }
.maf-header .maf-logo img { height: 48px; }
@media (max-width: 480px) { .maf-header .maf-logo img { height: 40px; } }
.maf-footer .maf-logo img { height: 56px; }
.maf-logo:hover { color: var(--ink); }
.maf-logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.maf-logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.maf-logo__name { font: 650 1.12rem/1.05 var(--font-display); letter-spacing: -.02em; }
.maf-logo__name b { font-weight: 850; color: var(--brand); }
.maf-logo__tag { font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.maf-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.maf-nav__item { margin: 0; position: static; }
.maf-nav__btn, .maf-nav__link {
	display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer;
	font: 650 .97rem/1 var(--font); color: var(--ink); padding: 12px 12px; border-radius: 8px; text-decoration: none;
}
.maf-nav__btn:hover, .maf-nav__link:hover, .maf-nav__btn[aria-expanded="true"] { background: var(--tint); color: var(--ink); }
.maf-nav__btn .maf-i { transition: transform .2s; color: var(--muted); }
.maf-nav__btn[aria-expanded="true"] .maf-i { transform: rotate(180deg); }
.maf-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(29, 26, 23, .25); }
.maf-mega[hidden] { display: none; }
.maf-mega__in { max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gutter) 30px; display: flex; gap: 40px; }
.maf-mega__col { min-width: 220px; }
.maf-mega__col.is-wide { flex: 1; }
.maf-mega__col.is-wide ul { columns: 4 180px; column-gap: 24px; }
.maf-mega__title { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.maf-mega ul { list-style: none; padding: 0; margin: 0; }
.maf-mega li { margin: 0; break-inside: avoid; }
.maf-mega li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.maf-mega li a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.maf-mega li a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.maf-mega__promo { margin-left: auto; max-width: 300px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 20px; }
.maf-mega__promo p { font-size: .92rem; color: var(--ink-2); }

.maf-burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.maf-burger__close { display: none; }

@media (max-width: 1023px) {
	.maf-header__cta { display: none; }
	.maf-burger { display: inline-flex; }
	.maf-nav { display: none; position: fixed; inset: 0; top: var(--maf-nav-top, 68px); background: var(--surface); overflow-y: auto; padding: 10px var(--gutter) 40px; border-top: 1px solid var(--line); }
	.maf-nav.is-open { display: block; }
	.maf-nav__list { flex-direction: column; gap: 0; }
	.maf-nav__item { border-bottom: 1px solid var(--line); }
	.maf-nav__btn, .maf-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
	.maf-nav__btn:hover, .maf-nav__btn[aria-expanded="true"] { background: none; }
	.maf-mega { position: static; border: 0; box-shadow: none; }
	.maf-mega__in { flex-direction: column; gap: 18px; padding: 0 4px 18px; }
	.maf-mega__col.is-wide ul { columns: 2; }
	.maf-mega__promo { margin: 0; max-width: none; }
	.maf-burger[aria-expanded="true"] .maf-burger__open { display: none; }
	.maf-burger[aria-expanded="true"] .maf-burger__close { display: inline; }
	body.maf-nav-open { overflow: hidden; }
}

/* ==========================================================================
   6. Fil d'Ariane, mentions
   ========================================================================== */
.maf-crumbs { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }
.maf-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.maf-crumbs li { margin: 0; }
.maf-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--line-2); }
.maf-crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); }
.maf-crumbs span[aria-current] { color: var(--muted); }

.maf-aff { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.maf-aff .maf-i { margin-top: 2px; }
.maf-aff a { color: var(--muted); }

/* ==========================================================================
   7. Accueil
   ========================================================================== */
.maf-hero { background: radial-gradient(1200px 400px at 85% -10%, #ffe2cc 0, transparent 60%), linear-gradient(180deg, #fff 0, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.maf-hero__in { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.maf-hero h1 { margin: 0 0 .4em; }
.maf-hero h1 span { color: var(--brand); display: block; }
.maf-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.maf-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.maf-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.maf-stats li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.maf-stats strong { display: block; font: 850 1.6rem/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.maf-stats span { font-size: .84rem; color: var(--muted); }
.maf-hero__best { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; }
.maf-hero__best .maf-tag { position: absolute; top: 18px; left: 18px; z-index: 1; }
.maf-hero__img { display: block; aspect-ratio: 4 / 3; margin: 0 0 12px; }
.maf-hero__img img, .maf-hero__img .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-hero__name { font: 800 1.2rem/1.25 var(--font-display); margin: 0 0 12px; }
.maf-hero__name a { color: var(--ink); text-decoration: none; }
.maf-hero__score { display: flex; gap: 14px; align-items: center; }
.maf-hero__score .maf-chips { margin: 6px 0 0; }
.maf-hero__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .maf-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
	.maf-hero__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; padding-top: 56px; padding-bottom: 56px; gap: 56px; }
}

.maf-section { padding: 52px 0; }
.maf-section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.maf-section__head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.maf-section__head h2 { margin: 0; }
.maf-h2-sub { margin-top: 2.2em; }

.maf-guides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.maf-guide { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.maf-guide:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.maf-guide__lbl { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.maf-guide__img { display: block; height: 130px; }
.maf-guide__img img, .maf-guide__img .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-guide__name { font: 750 1.02rem/1.3 var(--font-display); }
.maf-guide__meta { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.maf-guide__go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--brand-dark); }

.maf-podium, .maf-ranking { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.maf-method { display: grid; gap: 36px; align-items: center; }
.maf-method h2 { margin-top: 0; }
.maf-checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.maf-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.maf-checks .maf-i { color: var(--ok); margin-top: 3px; }
.maf-method__weights { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.maf-weight { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "pct lbl" "pct bar"; gap: 4px 12px; align-items: center; }
.maf-weight__pct { grid-area: pct; font: 850 1.25rem/1 var(--font-display); color: var(--brand); }
.maf-weight__lbl { grid-area: lbl; font-weight: 650; font-size: .95rem; }
.maf-weight__bar { grid-area: bar; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--w), var(--tint) var(--w)); }
@media (min-width: 900px) { .maf-method { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.maf-brands { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.maf-brand-tile { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.maf-brand-tile:hover { border-color: var(--brand-line); color: var(--ink); box-shadow: var(--shadow); }
.maf-brand-tile__name { font: 800 1.08rem/1.2 var(--font-display); }
.maf-brand-tile__count { font-size: .82rem; color: var(--brand-dark); font-weight: 650; }
.maf-brand-tile__best { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   8. Cartes
   ========================================================================== */
.maf-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.maf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.maf-pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.maf-pcard.is-first { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-line), var(--shadow); }
.maf-pcard__top { display: flex; gap: 10px; align-items: center; padding: 14px 16px 0; }
.maf-pcard__media { display: block; height: 190px; padding: 14px 16px 0; }
.maf-pcard__media img, .maf-pcard__media .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-pcard__body { padding: 12px 16px 4px; flex: 1; }
.maf-pcard__title { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.maf-pcard__title a { color: var(--ink); text-decoration: none; }
.maf-pcard__title a:hover { color: var(--brand-dark); text-decoration: underline; }
.maf-pcard__score { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.maf-pcard__why { font-size: .92rem; color: var(--ink-2); margin: 6px 0 0; }
.maf-pcard__foot { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); margin-top: 12px; background: #fdfbf8; }
.maf-pcard__foot .maf-link { justify-content: center; font-size: .9rem; }
.maf-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100px; background: var(--tint); color: var(--line-2); border-radius: 10px; }

.maf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.maf-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.maf-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tint); }
.maf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.maf-card__media .maf-ph { border-radius: 0; }
.maf-card__body { padding: 14px 16px 18px; }
.maf-card__title { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; font-weight: 750; }
.maf-card__title a { color: var(--ink); text-decoration: none; }
.maf-card__title a::after { content: ""; position: absolute; inset: 0; }
.maf-card { position: relative; }
.maf-card__title a:hover { color: var(--brand-dark); }
.maf-card__excerpt, .maf-card__extra { font-size: .9rem; color: var(--muted); margin: 0; }
.maf-card__extra { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   9. Tableaux
   ========================================================================== */
.maf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.maf-scroll > table { margin: 0 !important; border: 0; }
table, .maf-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
table th, table td, .maf-table th, .maf-table td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table thead th, .maf-table thead th { background: var(--tint); font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
table tbody tr:last-child > *, .maf-table tbody tr:last-child > * { border-bottom: 0; }
table tbody tr:hover, .maf-table tbody tr:hover { background: #fdfaf6; }
.maf-spec-label { width: 42%; color: var(--muted); }
.maf-compare table { min-width: 860px; }
.maf-compare .maf-t-name { font-weight: 700; min-width: 220px; }
.maf-compare .maf-t-name a { color: var(--ink); text-decoration: none; }
.maf-compare .maf-t-name a:hover { color: var(--brand-dark); text-decoration: underline; }
.maf-compare .maf-t-rank { font-weight: 800; color: var(--muted); width: 36px; }
.maf-compare .maf-t-price { font-weight: 750; white-space: nowrap; }
.maf-compare .maf-t-cta { width: 1%; }
.maf-table--sortable thead th[data-type] { cursor: pointer; user-select: none; }
.maf-table--sortable thead th[data-type]::after { content: " ↕"; color: var(--line-2); }
.maf-table--sortable thead th[aria-sort="ascending"]::after { content: " ↑"; color: var(--brand); }
.maf-table--sortable thead th[aria-sort="descending"]::after { content: " ↓"; color: var(--brand); }
.maf-criteria-table th[scope="row"] { min-width: 170px; }
.maf-t-weight { color: var(--brand-dark); white-space: nowrap; }
.maf-more { margin-top: 14px; }
.maf-more > summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); padding: 8px 0; }

/* ==========================================================================
   10. Articles et fiches
   ========================================================================== */
.maf-article__head { padding-top: 8px; }
.maf-article__head h1 { margin-bottom: .45em; }
.maf-article__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.maf-article__meta .maf-aff { margin: 0; }
.maf-byline { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.maf-byline > div { display: flex; flex-direction: column; line-height: 1.35; }
.maf-byline a { font-weight: 700; color: var(--ink); }
.maf-byline__avatar { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
.maf-byline__date { color: var(--muted); font-size: .84rem; display: inline-flex; gap: 4px; align-items: center; }
.maf-article__hero { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.maf-article__hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.maf-article__hero--full img { aspect-ratio: auto; object-fit: contain; }

.maf-prose { min-width: 0; }
.maf-prose > *:first-child { margin-top: 0; }
.maf-prose h2 { padding-top: .2em; }
.maf-prose img { border-radius: var(--radius-sm); }
.maf-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--brand-line); color: var(--ink-2); }
.maf-prose ul li::marker { color: var(--brand); }
.maf-formula { font: 650 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; }

/* Encadrés hérités (styles en ligne convertis) */
.maf-callout, .maf-box { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.maf-callout > :last-child, .maf-box > :last-child { margin-bottom: 0; }
.maf-callout .maf-kicker, .maf-box .maf-kicker { color: var(--brand-dark); }
.maf-flex { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0 0 24px; }
.maf-pros, .maf-cons { border-radius: var(--radius); padding: 16px 18px; }
.maf-pros { background: var(--ok-soft); border: 1px solid var(--ok-line); }
.maf-cons { background: var(--bad-soft); border: 1px solid #f3d3cd; }
.maf-pros > p:first-child, .maf-cons > p:first-child { font-weight: 800; margin: 0 0 6px; }
.maf-pros > p:first-child::before { content: "✓ "; color: var(--ok); }
.maf-cons > p:first-child::before { content: "✕ "; color: var(--bad); }
.maf-pros ul, .maf-cons ul { margin: 0; padding-left: 1.1em; }
.maf-prose .maf-pros li::marker, .maf-pros li::marker { color: var(--ok); }
.maf-prose .maf-cons li::marker, .maf-cons li::marker { color: var(--bad); }
.maf-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.maf-tile > :last-child { margin-bottom: 0; }
.maf-inline-product, .maf-product { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; }
.maf-inline-product > div, .maf-product__txt { flex: 1 1 240px; }
.maf-inline-product p, .maf-product p { margin: 0; }
.maf-inline-product strong { display: block; font-size: 1.05rem; }

.maf-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; margin: 24px 0; }
.maf-toc > summary { cursor: pointer; font-weight: 750; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; }
.maf-toc > summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.maf-toc[open] > summary::after { content: "−"; }
.maf-toc > summary::-webkit-details-marker { display: none; }
.maf-toc ol { margin: 0; padding: 0 16px 14px 36px; font-size: .95rem; }
.maf-toc a { color: var(--ink-2); }

/* Fiche produit : colonne de note */
.maf-product-layout { display: grid; gap: 28px; }
.maf-scorecard__in { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.maf-scorecard__img { height: 200px; margin-bottom: 14px; }
.maf-scorecard__img img, .maf-scorecard__img .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-scorecard__head { display: flex; gap: 14px; align-items: center; }
.maf-scorecard__label { font: 850 1.3rem/1.1 var(--font-display); margin: 0; }
.maf-scorecard__sub { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.maf-scorecard .maf-btn { margin-top: 4px; }
.maf-scorecard__foot { font-size: .8rem; text-align: center; margin: 12px 0 0; }
.maf-scorecard__foot a { color: var(--muted); }
@media (max-width: 999px) { .maf-scorecard__img { display: none; } }
@media (min-width: 1000px) {
	.maf-product-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
	.maf-scorecard { order: 2; position: sticky; top: 96px; }
	.maf-prose { order: 1; }
	.admin-bar .maf-scorecard { top: 128px; }
}
.maf-scoredetail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 18px; margin: 36px 0; }
.maf-alts { margin: 40px 0; }

.maf-with-side { display: grid; gap: 36px; max-width: var(--wrap); }
@media (min-width: 1000px) { .maf-with-side { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.maf-side { display: grid; gap: 16px; align-content: start; }
.maf-side__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.maf-side__title { font-weight: 800; margin: 0 0 8px; }
.maf-side ul, .maf-side ol { margin: 0 0 12px; padding-left: 1.2em; font-size: .93rem; }
.maf-side li a { color: var(--ink); }

/* Encadré produit [maf_produit] */
.maf-box-product { display: grid; grid-template-columns: 96px 1fr; gap: 14px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 26px 0; box-shadow: var(--shadow); }
.maf-box-product__img { height: 96px; }
.maf-box-product__img img, .maf-box-product__img .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-box-product__name { margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.maf-box-product__name a { color: var(--ink); text-decoration: none; }
.maf-box-product .maf-chips { margin-bottom: 0; }
.maf-box-product__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (min-width: 720px) { .maf-box-product { grid-template-columns: 110px 1fr auto; } .maf-box-product__cta { grid-column: auto; flex-direction: column; align-items: stretch; } }

/* Guides : distinctions et sélection détaillée */
.maf-quickpicks { list-style: none; padding: 0 !important; margin: 12px 0 0; display: grid; gap: 8px; }
.maf-quickpicks li { margin: 0; background: var(--surface); border: 1px solid var(--brand-line); border-radius: 9px; padding: 9px 12px; }
.maf-quickpicks li::marker { content: none; }
.maf-quickpicks strong { color: var(--brand-dark); }
.maf-picks { display: grid; gap: 18px; margin: 20px 0 10px; }
.maf-pick { display: grid; gap: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.maf-pick.is-first { box-shadow: 0 0 0 2px var(--brand-line), var(--shadow); border-color: var(--brand-line); }
.maf-pick__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.maf-pick__img { display: block; height: 170px; }
.maf-pick__img img, .maf-pick__img .maf-ph { width: 100%; height: 100%; object-fit: contain; }
.maf-pick__score { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 1.05rem; }
.maf-pick__score .maf-ring { width: 68px; height: 68px; }
.maf-pick__score .maf-ring::before { inset: 7px; }
.maf-pick__score .maf-ring__val { font-size: 1.35rem; }
.maf-prose .maf-pick__title { margin: 0 0 6px; font-size: 1.22rem; padding: 0; }
.maf-pick__title a { color: var(--ink); text-decoration: none; }
.maf-pick__title a:hover { color: var(--brand-dark); text-decoration: underline; }
.maf-pick__text { color: var(--ink-2); margin: 8px 0 12px; }
.maf-pick__pc { display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 10px; }
.maf-prose .maf-pick__pc ul { list-style: none; padding: 0; margin: 0; }
.maf-pick__pc li { display: flex; gap: 7px; align-items: flex-start; font-size: .92rem; margin: 0 0 5px; }
.maf-pick__pc .maf-i { margin-top: 3px; }
.maf-pick__pros .maf-i { color: var(--ok); }
.maf-pick__cons .maf-i { color: var(--bad); }
.maf-pick__more > summary { cursor: pointer; font-size: .9rem; font-weight: 650; color: var(--muted); }
.maf-pick__more .maf-bars { margin: 10px 0 4px; }
.maf-pick__foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.maf-pick__btns { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
@media (min-width: 720px) { .maf-pick { grid-template-columns: 200px minmax(0, 1fr); padding: 22px; } }

/* Duels : photos des deux modèles (fournies par l'API Amazon) */
.products-comparison-images { text-align: center; }
.products-comparison-images .maf-amz-img { display: block; width: 100%; max-width: 240px; height: 200px; object-fit: contain; margin: 0 auto 8px; }
.products-comparison-images .maf-ph.maf-amz-img { min-height: 0; }

/* Exemple de note (page méthode) */
.maf-example { display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.maf-example .maf-bars { margin: 0; }

/* Auteur */
.maf-author { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 40px 0; }
.maf-author__avatar { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.maf-author__name { font: 800 1.2rem/1.2 var(--font-display); margin: 0 0 6px; }
.maf-author__bio { font-size: .95rem; color: var(--ink-2); margin: 0 0 10px; }
.maf-author__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; font-weight: 650; margin: 0; }
@media (max-width: 560px) { .maf-author { flex-direction: column; } }

/* FAQ */
.maf-faq { display: grid; gap: 10px; margin: 18px 0 30px; }
.maf-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.maf-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 18px; font-weight: 750; }
.maf-faq summary::-webkit-details-marker { display: none; }
.maf-faq summary .maf-i { color: var(--brand); transition: transform .2s; }
.maf-faq details[open] summary .maf-i { transform: rotate(180deg); }
.maf-faq__a { padding: 0 18px 16px; color: var(--ink-2); }
.maf-faq__a > :last-child { margin-bottom: 0; }

/* Archives */
.maf-archive-head { padding-top: 8px; padding-bottom: 8px; }
.maf-archive-head h1 { margin-bottom: .3em; }
.maf-archive-desc { margin-bottom: 30px; }
.maf-archive-desc .maf-brand-table { margin: 18px 0; }
.maf-archive-grid { margin: 26px 0; }
.maf-arch-intro { font-size: 1.05rem; color: var(--ink-2); max-width: 52em; }
.maf-pagination, .navigation.pagination { margin: 30px 0 50px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.maf-404 { padding: 40px var(--gutter) 60px; }

/* Barre d'achat mobile */
.maf-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(29, 26, 23, .1); padding: 10px var(--gutter); transform: translateY(110%); transition: transform .25s; }
.maf-sticky.is-visible { transform: none; }
.maf-sticky__txt { display: flex; gap: 8px; align-items: center; min-width: 0; }
.maf-sticky__txt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maf-sticky .maf-btn { padding: 10px 14px; font-size: .9rem; flex-shrink: 0; }
@media (min-width: 1000px) { .maf-sticky { display: none; } }

/* Contenus hérités : cartes « articles similaires », liste de catégories */
.related-posts { margin: 40px 0; }
.related-posts-title { font: 800 1.35rem/1.2 var(--font-display) !important; }

/* ==========================================================================
   11. Pied de page
   ========================================================================== */
.maf-footer { background: var(--ink); color: #cfc7bc; margin-top: 60px; padding: 52px 0 28px; font-size: .93rem; }
.maf-footer a { color: #f1ebe3; text-decoration: none; }
.maf-footer a:hover { color: #fff; text-decoration: underline; }
.maf-footer .maf-logo { color: #fff; margin-bottom: 14px; }
.maf-footer .maf-logo__tag { color: #a99f93; }
.maf-footer .maf-logo__name b { color: #ff9a5c; }
.maf-footer__top { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.maf-footer__brand { grid-column: 1 / -1; max-width: 440px; }
@media (min-width: 1000px) { .maf-footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); } .maf-footer__brand { grid-column: auto; } }
.maf-footer__title { color: #fff; font-weight: 750; margin: 0 0 10px; }
.maf-footer ul { list-style: none; padding: 0; margin: 0; }
.maf-footer li { margin: 0 0 8px; }
.maf-footer__bottom { border-top: 1px solid #3a342e; margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #a99f93; }
.maf-footer__bottom p { margin: 0 0 6px; }

/* ==========================================================================
   12. Formulaire de contact, bannière cookies, impression
   ========================================================================== */
.custom-contact-form input, .custom-contact-form textarea, .custom-contact-form select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); }
.custom-contact-form button[type="submit"] { background: var(--brand) !important; border-radius: 10px !important; }
.rgpd-cookie-banner { font-family: var(--font) !important; }

@media print {
	.maf-topbar, .maf-header, .maf-footer, .maf-sticky, .maf-scorecard .maf-btn, .maf-crumbs, .maf-alts, .related-posts, .maf-noprint, .rgpd-cookie-banner { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.maf-product-layout { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
