/* ============================================================
   SURCHARGE — composants d'article (préfixe fn-)
   Habille les blocs produits par le skill /surcharge-article
   dans la charte du thème : papier #F6F5F0, encre #15171C,
   rouge disque #D7263D, Barlow Condensed + Instrument Sans.
   Classes globales (comme .sca-*), aucun conteneur requis.
   ============================================================ */

:root {
	--fn-paper: #F6F5F0;
	--fn-ink: #15171C;
	--fn-red: #D7263D;
	--fn-red-dk: #B71F33;
	--fn-blue: #2456A6;
	--fn-yellow: #DFA320;
	--fn-green: #2E8B57;
	--fn-soft: #5E6269;
	--fn-line: #E6E3DA;
	--fn-card: #FFFFFF;
	--fn-track: #ECEAE2;
	--fn-disp: 'Barlow Condensed', Impact, sans-serif;
	--fn-body: 'Instrument Sans', system-ui, sans-serif;
	--fn-shadow: 0 10px 30px rgba(21, 23, 28, .05);
	--fn-shadow-lg: 0 12px 34px rgba(21, 23, 28, .07);
}

/* espacement vertical homogène entre composants */
.fn-tldr, .fn-exercise-meta, .fn-keyfacts, .fn-callout, .fn-def,
.fn-steps, .fn-checklist, .fn-table-wrap, .fn-rank-list, .fn-verdict,
.fn-faq-list, .fn-cta-app, .fn-cta-band, .fn-cta-box {
	margin: 1.7rem 0;
}

/* ---------- apparition au scroll (gérée par articles.js) ---------- */
html.fn-js .fn-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.fn-js .fn-reveal.is-in { opacity: 1; transform: none; }

/* ---------- boutons ---------- */
.fn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	font-family: var(--fn-body); font-weight: 700; font-size: 14.5px;
	line-height: 1.3; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; border-radius: 11px; padding: 13px 20px;
	transition: background .15s ease, color .15s ease, transform .1s ease;
}
.fn-btn:active { transform: scale(.98); }
.fn-btn small { display: block; font-weight: 500; font-size: 10px; opacity: .82; }
.fn-btn-accent { background: var(--fn-red); color: #fff !important; }
.fn-btn-accent:hover { background: var(--fn-red-dk); color: #fff !important; }

/* ---------- TL;DR : l'essentiel ---------- */
.fn-tldr {
	background: var(--fn-card); border: 1px solid var(--fn-line);
	border-left: 4px solid var(--fn-red); border-radius: 14px;
	padding: 18px 22px; box-shadow: var(--fn-shadow);
}
.fn-tldr h4 {
	margin: 0 0 10px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em; font-size: 19px; color: var(--fn-ink);
}
.fn-tldr ul { margin: 0; padding: 0; list-style: none; }
.fn-tldr li {
	position: relative; padding: 0 0 0 22px; margin: 0 0 9px;
	font-size: 15px; line-height: 1.6; color: #2E3137;
}
.fn-tldr li:last-child { margin-bottom: 0; }
.fn-tldr li::before {
	content: ""; position: absolute; left: 0; top: 9px;
	width: 11px; height: 4px; border-radius: 3px; background: var(--fn-red);
}

/* ---------- fiche exercice ---------- */
.fn-exercise-meta {
	background: var(--fn-card); border: 1px solid var(--fn-line);
	border-radius: 14px; padding: 6px 18px 16px; box-shadow: var(--fn-shadow);
}
.fn-em-row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 11px 0; border-bottom: 1px solid #F2F0E8; font-size: 14.5px;
}
.fn-em-k { color: var(--fn-soft); font-size: 12.5px; flex-shrink: 0; }
.fn-em-v { text-align: right; color: var(--fn-ink); }
.fn-em-v b { font-weight: 700; }
.fn-em-tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px; }
.fn-tag {
	display: inline-block; font-family: var(--fn-body); font-weight: 600;
	font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--fn-soft); background: #F1EFE7; border: 1px solid var(--fn-line);
	border-radius: 99px; padding: 4px 11px;
}

/* ---------- chiffres clés ---------- */
.fn-keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fn-kf {
	background: var(--fn-card); border: 1px solid var(--fn-line);
	border-radius: 14px; padding: 18px 16px; box-shadow: var(--fn-shadow);
}
.fn-kf-num {
	font-family: var(--fn-disp); font-weight: 700; color: var(--fn-ink);
	font-size: 46px; line-height: 1; letter-spacing: .01em;
	font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 2px;
}
.fn-kf-num .fn-u { font-size: 20px; color: var(--fn-red); }
.fn-kf p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--fn-soft); }

/* ---------- callouts (4 couleurs = 4 disques) ---------- */
.fn-callout {
	display: flex; gap: 13px; align-items: flex-start;
	border-radius: 12px; padding: 14px 16px; border: 1px solid var(--fn-line);
	background: #FBFAF7;
}
.fn-co-ic { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.fn-callout h5 {
	margin: 0 0 4px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
}
.fn-callout p { margin: 0; font-size: 14px; line-height: 1.6; color: #2E3137; }
/* 📌 info → bleu disque */
.fn-callout-info { background: #F3F6FB; border-color: #D3DEF0; }
.fn-callout-info h5 { color: var(--fn-blue); }
/* 🔥 conseil surcharge → jaune disque */
.fn-callout-tip { background: #FBF7EC; border-color: #EFE3C2; }
.fn-callout-tip h5 { color: #9A7B0F; }
/* ❌ erreur fréquente → rouge disque */
.fn-callout-error { background: #FFF5F6; border-color: #F2C4CB; }
.fn-callout-error h5 { color: var(--fn-red); }
/* 💡 le saviez-vous → vert disque */
.fn-callout-signal { background: #EEF6F1; border-color: #CBE3D3; }
.fn-callout-signal h5 { color: var(--fn-green); }

/* ---------- définition ---------- */
.fn-def {
	margin: 1.7rem 0; background: var(--fn-card); border: 1px solid var(--fn-line);
	border-left: 4px solid var(--fn-ink); border-radius: 12px; padding: 14px 18px;
}
.fn-def dt {
	font-family: var(--fn-disp); font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; font-size: 15px; color: var(--fn-ink); margin-bottom: 4px;
}
.fn-def dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: #2E3137; }

/* ---------- étapes (timeline disques) ---------- */
.fn-steps { list-style: none; counter-reset: fnstep; margin: 1.7rem 0; padding: 0; }
.fn-steps li {
	counter-increment: fnstep; position: relative;
	padding: 0 0 20px 52px; margin: 0;
}
.fn-steps li:last-child { padding-bottom: 0; }
.fn-steps li::before {
	content: counter(fnstep); position: absolute; left: 0; top: 0;
	width: 34px; height: 34px; border-radius: 99px;
	background: var(--fn-red); color: #fff;
	font-family: var(--fn-disp); font-weight: 700; font-size: 18px;
	display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18);
}
.fn-steps li::after {
	content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px;
	width: 2px; background: var(--fn-line);
}
.fn-steps li:last-child::after { display: none; }
.fn-steps li b {
	display: block; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em; font-size: 17px; margin: 5px 0 4px;
}
.fn-steps li p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fn-soft); }

/* ---------- check-list interactive ---------- */
.fn-checklist { list-style: none; margin: 1.7rem 0; padding: 0; }
.fn-checklist li {
	position: relative; padding: 11px 12px 11px 44px; margin: 0 0 8px;
	background: var(--fn-card); border: 1px solid var(--fn-line); border-radius: 11px;
	font-size: 14.5px; line-height: 1.5; color: var(--fn-ink);
	cursor: pointer; user-select: none; transition: border-color .15s ease, background .15s ease;
}
.fn-checklist li:last-child { margin-bottom: 0; }
.fn-checklist li::before {
	content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; border-radius: 6px;
	border: 2px solid var(--fn-line); background: #fff; transition: background .15s ease, border-color .15s ease;
}
.fn-checklist li::after {
	content: "✓"; position: absolute; left: 17px; top: 50%; transform: translateY(-50%) scale(0);
	color: #fff; font-size: 13px; font-weight: 700; transition: transform .15s ease;
}
.fn-checklist li:hover { border-color: #D6D3C8; }
.fn-checklist li.is-checked { background: #FBFAF7; border-color: #CBE3D3; }
.fn-checklist li.is-checked::before { background: var(--fn-green); border-color: var(--fn-green); }
.fn-checklist li.is-checked::after { transform: translateY(-50%) scale(1); }
.fn-checklist li:focus-visible { outline: 2px solid var(--fn-red); outline-offset: 2px; }

/* ---------- tableau comparatif ---------- */
.fn-table-wrap {
	background: var(--fn-card); border: 1px solid var(--fn-line);
	border-radius: 14px; overflow: auto; box-shadow: var(--fn-shadow);
}
.fn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; margin: 0; }
.fn-table th {
	font-family: var(--fn-disp); font-weight: 700; text-transform: uppercase;
	font-size: 15px; letter-spacing: .02em; text-align: left; vertical-align: bottom;
	padding: 14px 12px 8px; color: var(--fn-ink); border: 0;
}
.fn-table td { padding: 10px 12px; border: 0; border-top: 1px solid #F2F0E8; vertical-align: middle; color: #2E3137; }
.fn-table tbody tr td:first-child { color: var(--fn-soft); font-size: 12.5px; }
.fn-table .fn-col-top { background: #FFF7F8; box-shadow: inset 3px 0 0 var(--fn-red); }
.fn-table .fn-col-top b { color: var(--fn-ink); font-weight: 700; }
.fn-table .fn-yes { color: var(--fn-green); font-weight: 600; }
.fn-table .fn-no { color: #A8ACB3; }

/* ---------- cartes de classement ---------- */
.fn-rank-list { counter-reset: fnrank; }
.fn-rcard {
	counter-increment: fnrank; position: relative;
	background: var(--fn-card); border: 1px solid var(--fn-line);
	border-radius: 16px; padding: 22px 18px 18px; margin: 0 0 26px;
	box-shadow: var(--fn-shadow-lg);
}
.fn-rcard:last-child { margin-bottom: 0; }
.fn-rcard::before {
	content: counter(fnrank); position: absolute; top: -13px; left: 18px;
	width: 30px; height: 30px; border-radius: 99px; background: var(--fn-ink); color: #fff;
	font-family: var(--fn-disp); font-weight: 700; font-size: 16px;
	display: grid; place-items: center; border: 2px solid var(--fn-paper);
}
.fn-rank-list .fn-rcard:nth-child(1)::before { background: var(--fn-yellow); }
.fn-rank-list .fn-rcard:nth-child(2)::before { background: #9AA0A8; }
.fn-rank-list .fn-rcard:nth-child(3)::before { background: #C2632E; }
.fn-rcard.fn-top { border: 2px solid var(--fn-red); }
.fn-rflag {
	position: absolute; top: -13px; right: 18px;
	background: var(--fn-red); color: #fff; border-radius: 99px;
	font-family: var(--fn-disp); font-weight: 700; text-transform: uppercase;
	letter-spacing: .06em; font-size: 12px; padding: 5px 13px; white-space: nowrap;
}
.fn-rbrand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.fn-rscore { display: inline-flex; align-items: baseline; gap: 5px; color: var(--fn-ink); }
.fn-rscore b { font-family: var(--fn-disp); font-weight: 700; font-size: 42px; line-height: 1; }
.fn-rscore span { font-size: 13px; color: var(--fn-soft); font-weight: 600; }
.fn-rstars { color: var(--fn-yellow); font-size: 16px; letter-spacing: 1px; }
.fn-rlabel { font-size: 11.5px; color: var(--fn-soft); }
.fn-rbody h3 {
	margin: 0 0 8px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em; font-size: 21px; color: var(--fn-ink);
}
.fn-rbest { display: block; color: var(--fn-green); font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.fn-rpoints { list-style: none; margin: 0 0 14px; padding: 0; }
.fn-rpoints li { position: relative; padding: 0 0 0 18px; margin: 0 0 5px; font-size: 14px; line-height: 1.55; color: #2E3137; }
.fn-rpoints li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 4px; border-radius: 2px; background: var(--fn-red); }
.fn-subscores { display: grid; gap: 7px; margin-bottom: 4px; }
.fn-subscore {
	display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 12px;
	font-size: 12.5px; color: var(--fn-soft);
}
.fn-subscore b { font-family: var(--fn-disp); font-weight: 700; font-size: 15px; color: var(--fn-ink); }
.fn-bar { display: block; height: 7px; border-radius: 99px; background: var(--fn-track); position: relative; }
.fn-bar i { position: absolute; inset: 0; width: var(--w, 50%); background: var(--fn-red); border-radius: 99px; }
.fn-roffer {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin-top: 16px; padding-top: 16px; border-top: 1px solid #F2F0E8;
}
.fn-rprice { display: flex; flex-direction: column; line-height: 1.1; }
.fn-rprice small { font-size: 11px; color: var(--fn-soft); }
.fn-rprice b { font-family: var(--fn-disp); font-weight: 700; font-size: 26px; color: var(--fn-ink); }
.fn-roffer .fn-btn { margin-left: auto; }
.fn-rnote { font-size: 11.5px; color: #A8ACB3; width: 100%; }

/* ---------- verdict (panneau sombre) ---------- */
.fn-verdict {
	position: relative; overflow: hidden; background: var(--fn-ink); color: #fff;
	border-radius: 16px; padding: 24px 20px;
}
.fn-verdict::after {
	content: ""; position: absolute; right: -40px; bottom: -40px;
	width: 160px; height: 160px; border-radius: 99px; border: 18px solid rgba(215, 38, 61, .25);
}
.fn-verdict > * { position: relative; z-index: 2; }
.fn-vscore {
	display: inline-block; font-family: var(--fn-disp); font-weight: 700;
	font-size: 58px; line-height: 1; color: #fff;
}
.fn-eyebrow {
	display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--fn-red); margin: 6px 0 2px;
}
.fn-verdict h3 {
	margin: 6px 0 8px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .015em; font-size: clamp(22px, 3.4vw, 28px);
	line-height: 1.05; color: #fff;
}
.fn-verdict p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #D6D8DC; }
.fn-verdict .fn-btn-accent { background: #fff; color: var(--fn-ink) !important; }
.fn-verdict .fn-btn-accent:hover { background: #EDEBE3; color: var(--fn-ink) !important; }

/* ---------- FAQ accordéon ---------- */
.fn-faq-list { background: var(--fn-card); border: 1px solid var(--fn-line); border-radius: 14px; overflow: hidden; }
.fn-faq { border-bottom: 1px solid #F2F0E8; }
.fn-faq:last-child { border-bottom: 0; }
.fn-faq summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 15px 44px 15px 16px; font-weight: 600; font-size: 14.5px; color: var(--fn-ink);
}
.fn-faq summary::-webkit-details-marker { display: none; }
.fn-pm {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	font-family: var(--fn-disp); font-weight: 600; font-size: 24px; color: var(--fn-red);
	transition: transform .18s ease; line-height: 1;
}
.fn-faq[open] .fn-pm { transform: translateY(-50%) rotate(45deg); }
.fn-ans { padding: 0 16px 15px; font-size: 14px; line-height: 1.65; color: #3C4046; }
.fn-ans a { color: var(--fn-ink); text-decoration: underline; text-underline-offset: 3px; }
.fn-ans a:hover { color: var(--fn-red); }

/* ---------- CTA app : stripe sombre ---------- */
.fn-cta-app {
	position: relative; overflow: hidden; background: var(--fn-ink); color: #fff;
	border-radius: 14px; padding: 18px; display: flex; gap: 14px;
	align-items: center; flex-wrap: wrap;
}
.fn-cta-app::after {
	content: ""; position: absolute; right: -34px; top: -34px;
	width: 130px; height: 130px; border-radius: 99px; border: 16px solid rgba(215, 38, 61, .32);
}
.fn-cta-txt { flex: 1; min-width: 200px; position: relative; z-index: 2; }
.fn-cta-txt b {
	display: block; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .015em; font-size: 21px; line-height: 1.05; color: #fff;
}
.fn-cta-txt span { display: block; margin-top: 3px; font-size: 13px; color: #B9BCC2; }
.fn-cta-app .fn-btn { position: relative; z-index: 2; }

/* ---------- CTA bandeau de clôture ---------- */
.fn-cta-band {
	position: relative; overflow: hidden; background: var(--fn-ink); color: #fff;
	border-radius: 20px; padding: 40px 30px;
}
.fn-cta-band::after {
	content: ""; position: absolute; right: -70px; top: -70px;
	width: 260px; height: 260px; border-radius: 99px; border: 28px solid rgba(215, 38, 61, .32);
}
.fn-cta-band::before {
	content: ""; position: absolute; left: -60px; bottom: -90px;
	width: 210px; height: 210px; border-radius: 99px; border: 22px solid rgba(36, 86, 166, .28);
}
.fn-cta-band .fn-wrap {
	position: relative; z-index: 2; display: flex; align-items: center;
	justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.fn-cta-band h2 {
	margin: 0 0 8px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .015em; line-height: 1.02;
	font-size: clamp(26px, 4vw, 38px); color: #fff;
}
.fn-cta-band p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #B9BCC2; }
.fn-cta-band .fn-btn-accent { background: #fff; color: var(--fn-ink) !important; }
.fn-cta-band .fn-btn-accent:hover { background: #EDEBE3; color: var(--fn-ink) !important; }

/* ---------- CTA inline ---------- */
.fn-cta-inline {
	color: var(--fn-red) !important; font-weight: 700; text-decoration: none;
	border-bottom: 2px solid var(--fn-red);
}
.fn-cta-inline:hover { color: var(--fn-red-dk) !important; border-color: var(--fn-red-dk); }

/* ---------- CTA box (nutrition) ---------- */
.fn-cta-box {
	background: var(--fn-card); border: 1px solid var(--fn-line); border-radius: 14px;
	padding: 18px 20px; display: flex; align-items: center; gap: 16px;
	flex-wrap: wrap; box-shadow: var(--fn-shadow); border-left: 4px solid var(--fn-red);
}
.fn-cta-box > div { flex: 1; min-width: 200px; }
.fn-cta-box h4 {
	margin: 0 0 5px; font-family: var(--fn-disp); font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em; font-size: 19px; color: var(--fn-ink);
}
.fn-cta-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fn-soft); }

/* ---------- figures du skill (sans classe, n'affecte pas les blocs core) ---------- */
.wp-block-post-content figure:not([class]) { margin: 1.7rem 0; }
.wp-block-post-content figure:not([class]) img { width: 100%; height: auto; border-radius: 12px; display: block; }
.wp-block-post-content figure:not([class]) figcaption {
	margin-top: 9px; font-size: 12.5px; color: var(--fn-soft); text-align: center; line-height: 1.5;
}

/* ---------- responsive ---------- */
@media (max-width: 680px) {
	.fn-keyfacts { grid-template-columns: 1fr; }
	.fn-subscore { grid-template-columns: 1fr auto 70px; gap: 9px; }
	.fn-roffer .fn-btn { margin-left: 0; width: 100%; }
	.fn-cta-band { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	html.fn-js .fn-reveal { opacity: 1; transform: none; transition: none; }
	.fn-checklist li, .fn-checklist li::before, .fn-checklist li::after, .fn-pm, .fn-btn { transition: none; }
}
