/*
 * Encadrés des articles automatiques : chiffres clés, prochaines annonces,
 * mention de l'IA, « À lire aussi ».
 */
.opx-box {
	margin: 1.75rem 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--platinum, #e4e4e6);
	border-radius: 14px;
	background: #fff;
}

.opx-box__title {
	margin: 0 0 0.6rem !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue, #0d36d0);
}

.opx-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.opx-box__more {
	margin: 0.75rem 0 0 !important;
	font-size: 0.875rem;
}

.opx-figures table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.opx-figures th,
.opx-figures td {
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6);
	text-align: left;
	font-weight: 500;
}

.opx-figures td {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.opx-up li {
	display: grid;
	grid-template-columns: 9.5rem 3.5rem 1fr auto;
	gap: 0.5rem 0.75rem;
	align-items: baseline;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6);
	font-size: 0.9375rem;
}

.opx-up__when {
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--ink-muted, #4f5b66);
	font-size: 0.875rem;
}

.opx-up__cur {
	font-weight: 700;
	color: var(--wp--preset--color--blue, #0d36d0);
}

.opx-up__imp {
	margin-left: 0.4rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: rgba(240, 68, 82, 0.1);
	color: #b3202e;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.opx-up__fc {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-muted, #4f5b66);
}

@media (max-width: 600px) {
	.opx-up li {
		grid-template-columns: 1fr auto;
	}
}

.opx-ai-note {
	margin-top: 1.5rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--cyan, #1fcdff);
	background: rgba(31, 205, 255, 0.07);
	border-radius: 0 8px 8px 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-muted, #4f5b66);
}

.opx-related li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6);
}

.opx-related a {
	font-weight: 600;
	text-decoration: none;
}

.opx-related span {
	white-space: nowrap;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-muted, #4f5b66);
}

/* Graphique en barres des chiffres clés (même rendu que sur /wire/) */
.opx-figures .opx-chart {
	margin: 1.1rem 0 0.25rem;
}

.opx-figures .opx-chart figcaption {
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.opx-figures .opx-chart__row {
	display: grid;
	grid-template-columns: minmax(5rem, 9rem) 1fr auto;
	align-items: center;
	gap: 0.75rem;
	margin: 0.35rem 0;
	font-size: 0.875rem;
}

.opx-figures .opx-chart__track {
	height: 0.75rem;
	border-radius: 999px;
	background: rgba(1, 24, 42, 0.06);
	overflow: hidden;
}

.opx-figures .opx-chart__bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--wp--preset--color--blue, #0d36d0);
}

.opx-figures .opx-chart__bar.is-negative {
	background: var(--wp--preset--color--bear-red, #f04452);
}

.opx-figures .opx-chart__value {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* Agenda de la semaine (« Week Ahead ») */
.opx-agenda__day {
	margin: 1rem 0 0.25rem !important;
	font-size: 0.875rem;
	font-weight: 700;
}

.opx-agenda__day:first-of-type {
	margin-top: 0 !important;
}

/* ─── Mise en page des articles (maquette du 16/10/2026) ─────────────── */
.opx-lead { font-size: 1.125rem; line-height: 1.7; }
.opx-lead::first-letter { float: left; margin: 0.25rem 0.5rem 0 0; font-size: 3.1em; font-weight: 700; line-height: 0.9; color: var(--wp--preset--color--blue, #0d36d0); }

/* Points clés */
.opx-kp { margin: 1.5rem 0; padding: 1.25rem 1.4rem; border-radius: 16px; background: var(--wp--preset--color--ink, #01182a); color: rgba(254, 255, 250, 0.88); }
.opx-kp__title { margin: 0 0 0.6rem !important; color: var(--wp--preset--color--cyan, #1fcdff); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.opx-kp ul { margin: 0; padding-left: 1.1rem; }
.opx-kp li { margin-bottom: 0.4rem; }
.opx-kp li b { color: #fff; }

/* Carte des chiffres */
.opx-figcard { margin: 1.75rem 0; padding: 1.25rem 1.25rem 0.5rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 18px; background: #fff; }
.opx-figcard .opx-box__title { margin: 0 0 0.8rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--blue, #0d36d0); }
.opx-figcard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.opx-fig { padding: 0.75rem; border-radius: 12px; background: #f6f7fb; }
.opx-fig small { display: block; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.opx-fig b { font-size: 1.5rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.opx-fig.is-main { background: var(--wp--preset--color--ink, #01182a); color: #fff; }
.opx-fig.is-main small { color: rgba(254, 255, 250, 0.7); }
.opx-fig__delta { display: inline-block; margin: 0 0 0.75rem !important; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.opx-fig__delta.is-up { background: rgba(200, 50, 63, 0.08); color: #b4232f; }
.opx-fig__delta.is-down { background: rgba(13, 54, 208, 0.08); color: var(--wp--preset--color--blue, #0d36d0); }
.opx-vbars { margin: 0.5rem 0 0.75rem; }
.opx-vbars figcaption { margin-bottom: 0.5rem; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.8125rem; }
.opx-vbars__cols { display: flex; gap: 1rem; }
.opx-vbar { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* Zone des barres (hauteur fixe, posées sur la ligne de base), puis la légende dessous. */
.opx-vbar__plot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; height: 150px; padding-top: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6); }
.opx-vbar b { margin-bottom: 0.25rem; color: var(--wp--preset--color--ink, #01182a); font-size: 0.8125rem; }
.opx-vbar i { display: block; width: 100%; max-width: 70px; border-radius: 8px 8px 0 0; background: #cbd3ee; }
.opx-vbar.is-last i { background: linear-gradient(180deg, var(--wp--preset--color--blue, #0d36d0), #3a5cf0); }
.opx-vbar > span { margin-top: 0.45rem; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.75rem; text-align: center; line-height: 1.3; }

/* Définition */
.opx-def { margin: 1rem 0 1.25rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--wp--preset--color--blue, #0d36d0); border-radius: 0 14px 14px 0; background: #eef1fc; font-size: 0.97rem; }
.opx-def__term { margin: 0 0 0.15rem !important; color: var(--wp--preset--color--blue, #0d36d0); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.opx-def__text { margin: 0 !important; }

/* Chaîne de cause à effet */
.opx-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.opx-chain--3 { grid-template-columns: repeat(3, 1fr); }
.opx-chain li { padding: 0.85rem 0.75rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 14px; background: #fff; font-size: 0.875rem; }
.opx-chain li:nth-child(2) { border-color: var(--wp--preset--color--ink, #01182a); background: var(--wp--preset--color--ink, #01182a); color: #fff; }
.opx-chain small { display: block; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.7rem; font-weight: 700; }
.opx-chain li:nth-child(2) small { color: var(--wp--preset--color--cyan, #1fcdff); }
.opx-chain b { display: block; font-size: 0.95rem; }
@media (max-width: 640px) { .opx-chain, .opx-chain--3 { grid-template-columns: 1fr 1fr; } }

/* Avis rapportés */
.opx-views { margin: 1rem 0 1.5rem; }
.opx-views__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.opx-view { padding: 1rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 14px; background: #fff; font-size: 0.95rem; }
.opx-view p { margin: 0 !important; }
.opx-view__who { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.opx-view__who b { display: block; font-size: 0.875rem; }
.opx-view__who span span { color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.75rem; }
.opx-view__av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #eef1fc; color: var(--wp--preset--color--blue, #0d36d0); font-size: 0.8rem; font-weight: 800; }
.opx-views__note { margin: 0.5rem 0 0 !important; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.8125rem; }

/* À surveiller */
.opx-watch { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 16px; background: #fff; }
.opx-watch .opx-box__title { margin: 0 0 0.4rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--blue, #0d36d0); }
.opx-watch ul { margin: 0; padding: 0; list-style: none; }
.opx-watch li { display: grid; grid-template-columns: 130px 1fr; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6); font-size: 0.95rem; }
.opx-watch li:last-child { border-bottom: 0; }
.opx-watch__when { color: var(--wp--preset--color--blue, #0d36d0); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 560px) { .opx-watch li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* En bref */
.opx-bl { margin: 1.75rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--wp--preset--color--market-gold, #ffb800); border-radius: 0 16px 16px 0; background: rgba(255, 184, 0, 0.1); }
.opx-bl__title { margin: 0 0 0.35rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.opx-bl p:last-child { margin: 0 !important; }

/* À lire aussi */
a.opx-ra { display: flex; gap: 0.9rem; align-items: center; margin: 1.5rem 0; padding: 0.75rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 14px; background: #fff; color: var(--wp--preset--color--ink, #01182a); text-decoration: none; }
a.opx-ra:hover { border-color: var(--wp--preset--color--blue, #0d36d0); }
.opx-ra__th { flex: none; width: 88px; height: 60px; border-radius: 10px; background: linear-gradient(135deg, #0d36d0, #1fcdff) center / cover; }
.opx-ra small { display: block; color: var(--wp--preset--color--blue, #0d36d0); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.opx-ra b { font-size: 0.97rem; }

/* Appel au wire discret, au milieu de l'article */
.opx-wire-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin: 1.75rem 0; padding: 0.85rem 1.1rem; border-radius: 14px; background: linear-gradient(90deg, #01182a, #06205e); color: #fff; font-size: 0.9rem; }
.opx-wire-inline a { padding: 0.55rem 1rem; border-radius: 999px; background: #fefffa; color: var(--wp--preset--color--blue, #0d36d0) !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }

/* Sources en étiquettes */
p.opx-sources a { display: inline-block; margin: 0 0.15rem; padding: 0.15rem 0.6rem; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink, #01182a); font-weight: 700; text-decoration: none; }

/* ─── Habillage des articles : en-tête, colonne, progression, partage ── */
.opx-art { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 48px; justify-content: center; }
.opx-art > .opx-art__main { min-width: 0; }
@media (max-width: 1000px) { .opx-art { grid-template-columns: minmax(0, 720px); } .opx-rail__toc, .opx-rail .opx-share { display: none !important; } }
.opx-rail { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px); align-self: start; font-size: 0.8125rem; }
.opx-rail__toc p { margin: 0 0 0.6rem; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.opx-rail__toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--wp--preset--color--platinum, #e4e4e6); }
.opx-rail__toc a { display: block; margin-left: -2px; padding: 0.35rem 0 0.35rem 0.85rem; border-left: 2px solid transparent; color: var(--wp--preset--color--ink-muted, #4f5b66); text-decoration: none; line-height: 1.35; }
.opx-rail__toc a.is-on { border-left-color: var(--wp--preset--color--blue, #0d36d0); color: var(--wp--preset--color--blue, #0d36d0); font-weight: 600; }
.opx-rail .opx-share { margin-top: 1.5rem; }
.opx-progress { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 100; height: 4px; background: rgba(13, 54, 208, 0.1); pointer-events: none; }
.opx-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wp--preset--color--blue, #0d36d0), var(--wp--preset--color--cyan, #1fcdff)); transform: scaleX(0); transform-origin: left; }
.opx-share { display: flex; gap: 0.4rem; }
.opx-share__btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--wp--preset--color--platinum, #e4e4e6); border-radius: 50%; background: #fff; color: var(--wp--preset--color--ink, #01182a); font: inherit; font-size: 0.8rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.opx-share__btn:hover { border-color: currentColor; transform: translateY(-1px); }
.opx-share__btn { transition: transform .15s ease, border-color .15s ease; }
.opx-share__btn svg { display: block; }
/* Couleurs de chaque réseau. */
.opx-share__btn--link { color: var(--wp--preset--color--ink-muted, #4f5b66); }
.opx-share__btn--x { color: #000; }
.opx-share__btn--telegram { color: #26a5e4; }
.opx-share__btn--whatsapp { color: #25d366; }
.opx-share__btn--link.is-done { color: #0b7f55; border-color: #0b7f55; }
.opx-share__btn--link.is-done > svg { display: none; }
.opx-share__btn--link.is-done .opx-share__done { display: block !important; }
.opx-share__done svg { display: block; }
.opx-head { margin: 0.25rem 0 0.5rem; }
.opx-head__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.75rem; }
.opx-chip { padding: 0.2rem 0.65rem; border-radius: 999px; background: #eef1fc; color: var(--wp--preset--color--blue, #0d36d0) !important; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.opx-head__dek { margin: 0 0 1rem !important; color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 1.15rem; line-height: 1.55; }
.opx-head__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--wp--preset--color--platinum, #e4e4e6); color: var(--wp--preset--color--ink-muted, #4f5b66); font-size: 0.8125rem; }
.opx-head__meta b { color: var(--wp--preset--color--ink, #01182a); }
.opx-head__share { margin-left: auto; }
@media (min-width: 1001px) { .opx-head__share { display: none; } }

/* Derniers articles, sous l'article */
.opx-latest { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--platinum, #e4e4e6); }
.opx-latest__head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.opx-latest__head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.opx-latest__more { margin: 0; font-size: 0.875rem; }

/* Ligne d'affiliation en tête des articles sur un courtier (content/articles/). */
.opx-disclosure { margin: 0 0 1rem !important; font-size: .7rem !important; line-height: 1.4; color: var(--wp--preset--color--ink-muted, #4f5b66); }
.opx-disclosure small { font-size: inherit; }
.opx-disclosure a { color: inherit; }
