/* ============================================================
 * AS Meilleure Plateforme — Classement crowdfunding (thème sombre)
 * Hérite des design tokens AS Core (--as-*) via la dépendance
 * 'as-core-css'. Tout est scopé sous .as-mp pour rester compatible Divi.
 * ============================================================ */

.as-mp {
	--mp-red: #ef5f74;
	--mp-orange: #f0994a;
	--mp-lgreen: #d8b84a;
	--mp-dgreen: #7bd07a;
	--mp-green: #34d39a;

	font-family: var(--as-font-body);
	color: var(--as-ink);
	/* Panneau sombre unique (comme .as-tdur-wrap) : évite que le fond blanc du
	 * thème traverse entre les sections et rende les titres clairs illisibles. */
	background: var(--as-bg);
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 22px 24px 40px;
	line-height: 1.55;
}

.as-mp *,
.as-mp *::before,
.as-mp *::after { box-sizing: border-box; }

/* L'attribut [hidden] doit toujours l'emporter sur un display: flex/grid local
 * (sinon la modale du comparateur et la barre de comparaison s'affichent au chargement). */
.as-mp [hidden] { display: none !important; }

/* Couleurs forcées : le thème Divi surcharge sinon la couleur des titres/liens
 * standards (h2, a) et les rend illisibles sur fond sombre. */
.as-mp h1, .as-mp h2, .as-mp h3, .as-mp h4, .as-mp h5, .as-mp h6 { font-family: var(--as-font-head); color: var(--as-ink) !important; }
.as-mp a { color: var(--as-accent); text-decoration: none; }
.as-mp img { max-width: 100%; height: auto; }

.as-mp-h2 { font-size: 22px; margin: 0 0 14px; }
.as-mp-h3 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.as-mp-fineprint { font-size: 12px; color: var(--as-muted); margin: 8px 0 0; }
/* Note de lecture qui CORRIGE un contresens : un axe du radar au plancher ne
 * dit pas « mauvaise plateforme », il dit « rien de publié ». Elle doit se
 * remarquer sans crier — filet ambre et fond très léger. */
.as-mp-fineprint--alerte {
	color: var(--as-ink-2);
	background: rgba(240, 196, 106, 0.08);
	border-left: 3px solid var(--as-autre);
	border-radius: 0 var(--as-radius-sm) var(--as-radius-sm) 0;
	padding: 8px 12px;
	line-height: 1.5;
	text-align: left;
}
.as-mp-fineprint--alerte strong { color: var(--as-ink); }

/* ---------- Badges de note « doux » (fond translucide + texte coloré) ---------- */
.as-mp-note {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--as-font-head); font-weight: 700; font-size: 13.5px;
	min-width: 44px; padding: 4px 11px; border-radius: var(--as-radius-pill);
	line-height: 1; border: 1px solid transparent;
}
.as-mp-note--green, .as-mp-note--light-green, .as-mp-note--dark-green {
	background: rgba(52,211,154,.13); color: #43d29a; border-color: rgba(52,211,154,.26);
}
.as-mp-note--orange { background: rgba(240,162,74,.15); color: #f0a24a; border-color: rgba(240,162,74,.30); }
.as-mp-note--red    { background: rgba(239,95,116,.15); color: #ef6d80; border-color: rgba(239,95,116,.30); }
.as-mp-note--gray   { background: var(--as-line-2); color: var(--as-ink-2); }
.as-mp-note--sm { min-width: 38px; font-size: 12px; padding: 3px 8px; }

/* ---------- Anneau de note (Trustpilot) ---------- */
.as-mp-ring {
	--pct: 0; --ring-c: #34d39a;
	position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%;
	background: conic-gradient(var(--ring-c) calc(var(--pct) * 1%), var(--as-line) 0);
	display: grid; place-items: center;
}
.as-mp-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--as-card); }
.as-mp-ring__val { position: relative; z-index: 1; font-family: var(--as-font-head); font-weight: 700; font-size: 16px; color: var(--as-ink); line-height: 1; text-align: center; }
.as-mp-ring__val small { display: block; font-size: 9px; font-weight: 600; color: var(--as-muted); margin-top: 2px; }
.as-mp-ring--green  { --ring-c: #34d39a; }
.as-mp-ring--orange { --ring-c: #f0a24a; }
.as-mp-ring--red    { --ring-c: #ef5f74; }
.as-mp-ring--xl { width: 92px; height: 92px; }
.as-mp-ring--xl::before { inset: 7px; }
.as-mp-ring--xl .as-mp-ring__val { font-size: 24px; }
.as-mp-ring--xl .as-mp-ring__val small { font-size: 11px; }

/* ---------- Étoiles jaunes (remplissage fractionnaire) ---------- */
.as-mp-stars2 { position: relative; display: inline-block; width: max-content; font-size: 15px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.as-mp-stars2__bg { color: var(--as-line-2); }
.as-mp-stars2__fg { position: absolute; top: 0; left: 0; width: var(--fill, 0%); overflow: hidden; color: #f5b638; white-space: nowrap; }

/* ---------- Boutons ---------- */
.as-mp-btn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	font-family: var(--as-font-body); font-size: 13.5px; font-weight: 700;
	border-radius: var(--as-radius-pill); padding: 9px 16px; border: 1px solid transparent;
	transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.as-mp-btn--primary { background: var(--as-accent); color: #0e1525; }
.as-mp-btn--primary:hover { filter: brightness(1.08); }
.as-mp-btn--ghost { background: transparent; color: var(--as-ink-2); border-color: var(--as-line-2); }
.as-mp-btn--ghost:hover { background: var(--as-card-2); color: var(--as-ink); }

.as-mp-chiptxt { font-size: 12px; color: var(--as-muted); background: var(--as-card-2); padding: 3px 10px; border-radius: var(--as-radius-pill); }

/* ============================================================
 * HERO
 * ============================================================ */
.as-mp-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(160deg, #141d33 0%, #0e1525 70%);
	border: 1px solid var(--as-line); border-radius: var(--as-radius);
	padding: 34px 30px 30px; margin: 0 0 18px;
}
.as-mp-hero__glow {
	position: absolute; inset: -40% 40% auto -10%; height: 340px;
	background: radial-gradient(closest-side, rgba(124,141,240,.28), transparent);
	filter: blur(10px); pointer-events: none;
}
.as-mp-hero__inner { position: relative; }
.as-mp-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--as-accent); background: var(--as-accent-bg);
	padding: 5px 13px; border-radius: var(--as-radius-pill);
}
.as-mp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mp-green); box-shadow: 0 0 0 0 rgba(52,211,154,.6); animation: as-mp-pulse 1.8s infinite; }
@keyframes as-mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,154,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,154,0); } }
.as-mp-hero__title { font-size: 34px; line-height: 1.1; margin: 14px 0 10px; }
.as-mp-hero__lead { font-size: 16px; color: var(--as-ink-2); max-width: 720px; margin: 0 0 22px; }

.as-mp-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.as-mp-stat {
	flex: 1 1 150px; background: rgba(255,255,255,.03); border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm); padding: 16px 18px;
}
.as-mp-stat__num { display: block; font-family: var(--as-font-head); font-weight: 800; font-size: 30px; color: #fff; letter-spacing: .01em; }
.as-mp-stat__lbl { display: block; font-size: 12.5px; color: var(--as-muted); margin-top: 2px; }

.as-mp-hero__pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-mp-hero__pills li { position: relative; padding-left: 24px; font-size: 14px; color: var(--as-ink-2); }
.as-mp-hero__pills li::before { content: "✓"; position: absolute; left: 0; color: var(--mp-green); font-weight: 800; }
.as-mp-hero__pills strong { color: var(--as-ink); }

/* ============================================================
 * BREADCRUMB (hérite .as-breadcrumb du socle) — léger ajustement d'espace
 * ============================================================ */
.as-mp .as-breadcrumb { margin: 4px 0 18px; }

/* ============================================================
 * CONTRÔLES (filtres, tri, pondération)
 * ============================================================ */
.as-mp-controls { background: var(--as-card); border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: 16px 18px; margin-bottom: 18px; }
.as-mp-controls__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.as-mp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.as-mp-chip {
	cursor: pointer; font-family: var(--as-font-body); font-size: 12.5px; font-weight: 600;
	color: var(--as-muted); background: var(--as-card-2); border: 1px solid var(--as-line);
	border-radius: var(--as-radius-pill); padding: 7px 14px; transition: all .15s ease;
}
.as-mp-chip:hover { color: var(--as-ink); border-color: var(--as-line-2); }
.as-mp-chip.is-active { background: var(--as-accent); color: #0e1525; border-color: transparent; }
.as-mp-controls__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.as-mp-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--as-muted); }
.as-mp-sort__select {
	font-family: var(--as-font-body); font-size: 13px; color: var(--as-ink);
	background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm);
	padding: 7px 12px; cursor: pointer;
}

/* Panneau pondération */
.as-mp-weights { margin-top: 16px; border-top: 1px solid var(--as-line); padding-top: 16px; }
.as-mp-weights__intro { font-size: 13.5px; color: var(--as-ink-2); margin: 0 0 12px; }
.as-mp-weights__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--as-muted); }
.as-mp-weights__group { margin-bottom: 14px; }
.as-mp-weights__group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--as-muted); margin: 0 0 10px; }
.as-mp-weights__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.as-mp-crit { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 10px 12px; opacity: 1; transition: opacity .15s ease; }
.as-mp-crit.is-off { opacity: .45; }
.as-mp-crit__head { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; }
.as-mp-crit__check { margin-top: 3px; accent-color: var(--as-accent); }
.as-mp-crit__name { color: var(--as-ink); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.as-mp-crit__weight { display: flex; gap: 6px; margin-top: 9px; }
.as-mp-wbtn {
	flex: 1; cursor: pointer; font-family: var(--as-font-head); font-size: 12px; font-weight: 700;
	color: var(--as-muted); background: transparent; border: 1px solid var(--as-line); border-radius: 8px; padding: 5px 0;
}
.as-mp-wbtn.is-active { background: var(--as-accent-bg); color: var(--as-accent); border-color: var(--as-accent); }
.as-mp-weights__foot { margin-top: 8px; }

/* Info-bulles */
.as-mp-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--as-line-2); color: var(--as-ink-2); font-size: 10px; font-weight: 700; cursor: help; font-style: normal; }
.as-mp-info__bulle {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	width: 230px; background: #0b1120; color: var(--as-ink-2); border: 1px solid var(--as-line-2);
	border-radius: 8px; padding: 9px 11px; font-size: 12px; font-weight: 400; line-height: 1.4;
	opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 30; pointer-events: none;
}
.as-mp-info:hover .as-mp-info__bulle, .as-mp-info:focus .as-mp-info__bulle { opacity: 1; visibility: visible; }

/* ============================================================
 * LEADERBOARD
 * ============================================================ */
.as-mp-board { margin-bottom: 26px; }
.as-mp-board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.as-mp-board__title { font-size: 22px; margin: 0; }
.as-mp-board__hint { font-size: 12.5px; color: var(--as-muted); margin: 0; }
.as-mp-board__list { display: flex; flex-direction: column; gap: 8px; }

.as-mp-row {
	display: grid; align-items: center; gap: 14px;
	grid-template-columns: 30px 22px minmax(0, 1.2fr) auto auto auto;
	background: var(--as-card); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm);
	padding: 12px 16px; transition: border-color .15s ease, transform .12s ease;
}
/* Lignes SANS case « comparer » (modules embarqués home / baromètre, rendus avec
   compare=false, donc sans .as-mp-row__pick) : la colonne 22px réservée à la
   checkbox n'a plus lieu d'être. Sans ce correctif, le nom et son tag catégorie
   sont poussés dans cette colonne étroite et débordent sur l'anneau de note.
   Ciblage exact via :has() (absence de la checkbox), borné au desktop pour ne
   pas percuter la grille compacte < 720 px. */
@media (min-width: 721px) {
	.as-mp-row:not(:has(.as-mp-row__pick)) {
		grid-template-columns: 30px minmax(0, 1.2fr) auto auto auto;
	}
}
.as-mp-row__rating { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.as-mp-rating-meta { display: flex; flex-direction: column; gap: 5px; }
.as-mp-rating-count { font-size: 12px; color: var(--as-muted); }
.as-mp-row:hover { border-color: var(--as-accent); transform: translateY(-1px); }
.as-mp-row.is-hidden { display: none; }
.as-mp-row__rank { font-family: var(--as-font-head); font-weight: 700; font-size: 17px; color: var(--as-muted); text-align: center; }
.as-mp-row:first-child .as-mp-row__rank,
.as-mp-row[data-rank-top] .as-mp-row__rank { color: var(--mp-green); }
.as-mp-row__pick { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.as-mp-row__pick input { accent-color: var(--as-accent); width: 16px; height: 16px; }
.as-mp-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.as-mp-row__logo { width: 46px; height: 46px; flex: none; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.as-mp-row__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-mp-row__logofall { font-family: var(--as-font-head); font-weight: 700; color: var(--as-accent); background: var(--as-accent-bg); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.as-mp-row__id { min-width: 0; }
.as-mp-row__name { display: block; font-family: var(--as-font-head); font-weight: 600; font-size: 15px; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-mp-row__id .as-tag { margin-top: 4px; }
.as-mp-row__scores { display: flex; align-items: center; gap: 14px; }
.as-mp-row__score { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.as-mp-row__score small { font-size: 10px; color: var(--as-muted); text-transform: uppercase; letter-spacing: .03em; }
.as-mp-row__cta { font-family: var(--as-font-head); font-weight: 600; font-size: 13px; color: var(--as-accent); white-space: nowrap; }

/* Badges de distinction (dans la fiche uniquement, sans picto) */
.as-mp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--as-radius-pill); white-space: nowrap; }
.as-mp-badge--gold { background: rgba(240,196,106,.16); color: #f0c46a; }
.as-mp-badge--taux { background: rgba(52,211,154,.14); color: #43d29a; }
.as-mp-badge--vol  { background: rgba(124,141,240,.16); color: var(--as-accent); }
.as-mp-badge--risk { background: rgba(127,178,229,.16); color: var(--as-immo); }
.as-mp-badge--inv  { background: rgba(240,196,106,.16); color: #f0c46a; }

/* Barre de comparaison flottante */
.as-mp-compare-bar {
	position: sticky; bottom: 14px; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	background: #0b1120; border: 1px solid var(--as-accent); border-radius: var(--as-radius-pill);
	padding: 10px 16px; margin-top: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.as-mp-compare-bar__txt { font-size: 13px; color: var(--as-ink-2); }
.as-mp-compare-bar__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.as-mp-compare-bar__chips .as-mp-cchip { font-size: 12px; background: var(--as-card-2); color: var(--as-ink); padding: 3px 10px; border-radius: var(--as-radius-pill); display: inline-flex; gap: 6px; align-items: center; }
.as-mp-compare-bar__chips .as-mp-cchip button { background: none; border: none; color: var(--as-muted); cursor: pointer; font-size: 14px; line-height: 1; }
.as-mp-compare-bar .as-mp-btn { padding: 7px 14px; }

/* ============================================================
 * SWITCHER STICKY
 * ============================================================ */
.as-mp-switcher {
	position: sticky; top: var(--mp-switcher-top, 8px); z-index: 35; display: flex; align-items: center; gap: 10px;
	background: rgba(14,21,37,.95); backdrop-filter: blur(8px);
	border: 1px solid var(--as-line); border-radius: var(--as-radius-pill);
	padding: 8px 10px; margin: 6px 0 20px;
}
.as-mp-switcher__top { flex: none; cursor: pointer; font-family: var(--as-font-head); font-size: 12px; font-weight: 600; color: var(--as-ink-2); background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-pill); padding: 6px 12px; white-space: nowrap; }
.as-mp-switcher__top:hover { color: var(--as-ink); border-color: var(--as-line-2); }
/* Scroll horizontal SANS scrollbar visible + dégradé de bord pour indiquer le défilement. */
.as-mp-switcher__scroll {
	display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.as-mp-switcher__scroll::-webkit-scrollbar { display: none; height: 0; }
.as-mp-switcher__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; color: var(--as-muted); background: var(--as-card-2); border: 1px solid transparent; border-radius: var(--as-radius-pill); padding: 6px 12px; transition: all .15s ease; }
.as-mp-switcher__item:hover { color: var(--as-ink); }
.as-mp-switcher__item.is-active { background: var(--as-accent-bg); color: var(--as-accent); border-color: var(--as-accent); }
.as-mp-switcher__rank { font-family: var(--as-font-head); font-weight: 700; font-size: 11px; opacity: .75; }

/* ============================================================
 * FICHE PLATEFORME (carte)
 * ============================================================ */
.as-mp-cards { display: flex; flex-direction: column; gap: 30px; }
/* La fiche est un GROUPE de box distinctes (header, offre, présentation, onglets),
 * conformément à la charte AS où chaque section a sa propre box. */
.as-mp-card { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--mp-switcher-top, 8px) + 66px); }
.as-mp-card.is-hidden { display: none; }
.as-mp-card > * { background: var(--as-card); border: 1px solid var(--as-line); border-radius: var(--as-radius); }

.as-mp-card__head { display: grid; grid-template-columns: auto 64px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; }
.as-mp-card__rank { text-align: center; }
.as-mp-card__rank-num { display: block; font-family: var(--as-font-head); font-weight: 800; font-size: 30px; color: var(--as-accent); }
.as-mp-card__rank-lbl { display: block; font-size: 10px; color: var(--as-muted); text-transform: uppercase; letter-spacing: .03em; }
.as-mp-card__logo { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.as-mp-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-mp-card__id { min-width: 0; }
.as-mp-card__name { font-size: 24px; margin: 0 0 6px; }
.as-mp-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.as-mp-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.as-mp-card__notes { text-align: center; }
.as-mp-card__note-main { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.as-mp-card__note-lbl { font-size: 11px; color: var(--as-muted); text-transform: uppercase; letter-spacing: .03em; }
.as-mp-card__note-sub { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 11.5px; color: var(--as-muted); }
.as-mp-card__note-sub span { display: flex; align-items: center; gap: 5px; }

/* Offre partenaire */
.as-mp-card__offer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(124,141,240,.12), rgba(155,140,240,.06)) !important; border-color: var(--as-line-2) !important; padding: 14px 18px; margin: 0; }
.as-mp-card__offer-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.09); padding: 4px 10px; border-radius: var(--as-radius-pill); white-space: nowrap; }
.as-mp-card__offer-body { flex: 1; min-width: 200px; font-size: 14px; color: var(--as-ink-2); }
.as-mp-card__offer-body,
.as-mp-card__offer-body * { color: #fff !important; }
.as-mp-card__offer-body a { font-weight: 700; }
.as-mp-card__offer-body a:hover { color: #f8dfc4 !important; }
/* Listes à puces stockées dans code_bonus : puces ➤ dorées, même mécanique
 * que les puces de l'offre premium mutualisée (.as-partner-bullets,
 * as-core.css) — li en flux normal, flèche en absolu. Rendu partout où le
 * bloc offre est affiché (classement + module mutualisé). */
.as-mp-card__offer-body ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0;
}
.as-mp-card__offer-body ul li {
	position: relative;
	display: block;
	padding: 0 0 0 20px;
	margin: 0;
}
.as-mp-card__offer-body ul li::before {
	content: "➤";
	position: absolute;
	left: 0;
	top: .22em;
	color: var(--as-autre);
	font-size: 10px;
	line-height: 1.55;
	font-variant-emoji: text;
}
.as-mp-card__offer-body ol {
	margin: 6px 0 0;
	padding: 0 0 0 20px;
}
/* Variante AUTONOME du bloc offre (module mutualisé as_mp_render_offre_module,
 * consommé hors du classement — ex. fiche projet [projet] d'AS Forum) : hors
 * d'une .as-mp-card, le bloc porte lui-même le fond carte sombre, la bordure
 * et le rayon que `.as-mp-card > *` fournit aux cartes du classement. */
.as-mp-card__offer.as-mp-offer--standalone {
	background:
		linear-gradient(120deg, rgba(124,141,240,.12), rgba(155,140,240,.06)),
		var(--as-card) !important;
	border: 1px solid var(--as-line-2);
	border-radius: var(--as-radius);
}

.as-mp-card__intro { margin: 0; padding: 16px 20px; font-size: 14.5px; color: var(--as-ink-2); }
.as-mp-card__intro p { margin: 0 0 10px; }
.as-mp-card__intro p:last-child { margin-bottom: 0; }

/* Onglets internes */
.as-mp-tabs { margin: 0; padding: 16px 20px; }
.as-mp-tabs__nav { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--as-line); margin-bottom: 18px; }
.as-mp-tab {
	cursor: pointer; font-family: var(--as-font-body); font-size: 13px; font-weight: 600; color: var(--as-muted);
	background: transparent; border: none; border-bottom: 2px solid transparent; padding: 9px 14px; transition: color .15s ease, border-color .15s ease;
}
.as-mp-tab:hover { color: var(--as-ink-2); }
.as-mp-tab.is-active { color: var(--as-ink); border-bottom-color: var(--as-accent); }
.as-mp-pane { display: none; }
.as-mp-pane.is-active { display: block; animation: as-mp-fade .2s ease; }
@keyframes as-mp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Notes détaillées */
.as-mp-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.as-mp-notes-col { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px 18px; }
.as-mp-critlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.as-mp-critlist li { display: grid; grid-template-columns: minmax(0,1fr) 90px 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--as-ink-2); }
.as-mp-critlist__lbl { display: inline-flex; align-items: center; gap: 6px; }
.as-mp-critlist__bar { height: 6px; background: var(--as-card-2); border-radius: 4px; overflow: hidden; }
.as-mp-critlist__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--as-accent), var(--as-accent-2)); border-radius: 4px; }

/* Sous-blocs de la colonne de droite (critères généraux, points supplémentaires) :
   filet de séparation pour qu'ils ne se lisent pas dans la continuité de la liste
   des indicateurs de performance, qui n'a ni le même périmètre ni la même source. */
.as-mp-subbloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--as-line); }
/* Critère qu'aucun investisseur n'a noté : présent mais visiblement en retrait. */
.as-mp-critlist li.is-non-note .as-mp-critlist__lbl { color: var(--as-muted); }
.as-mp-critlist li.is-non-note .as-mp-critlist__bar { background: var(--as-line-2); }
.as-mp-critlist--pts li { grid-template-columns: minmax(0,1fr) 62px; }
.as-mp-critlist__pts { text-align: right; font-weight: 700; font-size: 12.5px; }
.as-mp-critlist__pts.is-on { color: #43d29a; }
.as-mp-critlist__pts.is-off { color: var(--as-muted); font-weight: 600; }

/* Radars */
.as-mp-radars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.as-mp-radar { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px; margin: 0; }
.as-mp-radar figcaption { font-family: var(--as-font-head); font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--as-ink); }
.as-mp-radar-canvas { width: 100% !important; height: 280px !important; }

/* Avis */
.as-mp-avis__block { margin-bottom: 18px; background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px 18px; }
.as-mp-ibar { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 52px; align-items: center; gap: 14px; margin-bottom: 10px; font-size: 13px; }
.as-mp-ibar__lbl { color: var(--as-ink-2); }
.as-mp-ibar__track { height: 11px; background: var(--as-bg-2); border-radius: 6px; overflow: hidden; }
.as-mp-ibar__track span { display: block; height: 100%; border-radius: 5px; }
.as-mp-ibar__pct { font-family: var(--as-font-head); font-size: 12.5px; color: var(--as-ink); text-align: right; }

.as-mp-avis__dists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.as-mp-dist { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px 18px; }
.as-mp-dist__title { font-size: 14px; margin: 0 0 12px; color: var(--as-ink); font-family: var(--as-font-head); }
.as-mp-dist__title small { color: var(--as-muted); font-weight: 400; }
.as-mp-dist__row { display: grid; grid-template-columns: 92px minmax(0,1fr) 40px; align-items: center; gap: 10px; margin-bottom: 6px; }
.as-mp-dist__stars { color: #f0c46a; font-size: 13px; letter-spacing: 1px; }
.as-mp-dist__track { height: 9px; background: var(--as-card-2); border-radius: 5px; overflow: hidden; }
.as-mp-dist__fill { display: block; height: 100%; border-radius: 5px; }
.as-mp-fill--red { background: #ef5f74; } .as-mp-fill--orange { background: #f0a24a; }
.as-mp-fill--green, .as-mp-fill--light-green, .as-mp-fill--dark-green { background: #34d39a; }
.as-mp-dist__pct { font-size: 12px; color: var(--as-muted); text-align: right; }

/* Commentaires */
.as-mp-avis__comments { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px 18px; }
.as-mp-comment { border-top: 1px solid var(--as-line); padding: 14px 0; }
.as-mp-comment:first-of-type { border-top: none; padding-top: 4px; }
.as-mp-comment.is-hidden { display: none; }
.as-mp-comment__user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.as-mp-comment__user img { width: 40px; height: 40px; border-radius: 50%; }
.as-mp-comment__meta { display: flex; flex-direction: column; }
.as-mp-comment__name { font-weight: 700; font-size: 13.5px; color: var(--as-ink); }
.as-mp-comment__count { font-size: 11.5px; color: var(--as-muted); }
.as-mp-comment__notes { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--as-muted); margin-bottom: 8px; }
.as-mp-comment__notes span { display: inline-flex; align-items: center; gap: 6px; }
.as-mp-comment__txt { font-size: 14px; color: var(--as-ink-2); margin: 6px 0; }
.as-mp-comment__txt--support { color: var(--as-muted); font-style: italic; }
.as-mp-comment__date { font-size: 11.5px; color: var(--as-muted); }
[data-mp-morecomments] { margin-top: 12px; }

/* Chiffres clés */
.as-mp-kpis { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.as-mp-kpis__table, .as-mp-kpis__history { background: var(--as-card-2); border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px 18px; }
.as-mp-kpi-list { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.as-mp-kpi { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; background: var(--as-bg-2); }
.as-mp-kpi:nth-child(even) { background: transparent; }
.as-mp-kpi dt { font-size: 13px; color: var(--as-ink-2); margin: 0; }
.as-mp-kpi dd { font-family: var(--as-font-head); font-size: 14px; font-weight: 600; color: var(--as-ink); margin: 0; white-space: nowrap; }
.as-mp-spark { width: 100% !important; height: 200px !important; }

/* Pros / cons : rendu et styles centralisés dans AS Core. */
.as-mp-proscons + * { margin-top: 20px; }

/* Zone évaluation */
.as-mp-evalzone { }
.as-mp-eval-done { background: var(--as-card-2); border: 1px dashed var(--as-line-2); border-radius: var(--as-radius-sm); padding: 18px; text-align: center; color: var(--as-ink-2); font-size: 14px; }

/* ============================================================
 * COMPARATEUR (modal)
 * ============================================================ */
.as-mp-compare-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-start; justify-content: center; background: rgba(6,10,20,.72); padding: 40px 16px; overflow-y: auto; }
.as-mp-compare-modal__box { position: relative; width: 100%; max-width: 960px; background: var(--as-card); border: 1px solid var(--as-line-2); border-radius: var(--as-radius); padding: 26px; }
.as-mp-compare-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--as-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.as-mp-compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.as-mp-compare-table th, .as-mp-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--as-line); text-align: center; }
.as-mp-compare-table th:first-child, .as-mp-compare-table td:first-child { text-align: left; color: var(--as-muted); font-weight: 600; }
.as-mp-compare-table thead th { font-family: var(--as-font-head); color: var(--as-ink); font-size: 14px; }
.as-mp-compare-table .as-mp-best { background: rgba(52,211,154,.10); }

/* ============================================================
 * FAQ (hérite as-faq.css) + risques
 * ============================================================ */
.as-mp .as-faq { margin-top: 30px; }
.as-mp-risques { margin-top: 26px; font-size: 12px; color: var(--as-muted); border-top: 1px solid var(--as-line); padding-top: 16px; }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
	/* En layout sidebar, la colonne principale est étroite : on empile tôt. */
	.as-mp-row__scores { display: none; }
}
@media (max-width: 900px) {
	.as-mp-notes-grid, .as-mp-radars, .as-mp-avis__dists, .as-mp-kpis, .as-mp-proscons { grid-template-columns: 1fr; }
	.as-mp-card__head { grid-template-columns: auto 56px 1fr; }
	.as-mp-card__notes { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 720px) {
	.as-mp-hero__title { font-size: 27px; }
	.as-mp-hero { padding: 26px 18px 22px; }
	.as-mp { padding: 16px 14px 32px; }
	/* Ligne compacte : rang · plateforme · anneau (checkbox + méta étoiles masquées). */
	.as-mp-row { grid-template-columns: 22px minmax(0,1fr) auto; gap: 11px; padding: 10px 12px; }
	.as-mp-row__pick { display: none; }
	.as-mp-hide-sm { display: none !important; }
	.as-mp-rating-meta { display: none; }
	.as-mp-row__cta { display: none; }
	.as-mp-row__rating { justify-self: end; }
	.as-mp-ring { width: 52px; height: 52px; }
	.as-mp-ring__val { font-size: 13px; }
	.as-mp-ring__val small { font-size: 8px; }
	.as-mp-row__logo { width: 40px; height: 40px; }
	.as-mp-row__name { white-space: normal; }
	.as-mp-controls__row { flex-direction: column; align-items: stretch; }
	.as-mp-weights__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.as-mp-card { padding: 16px; }
	.as-mp-card__head { grid-template-columns: auto 1fr; }
	.as-mp-card__logo { display: none; }
}

/* Blocs mutualisés avertissement / sources : alignement avec les fiches avis. */
.as-mp-risques,
.as-mp-sources {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 14px 0 0;
	padding: 18px 20px;
	font-size: clamp(14px, 1.35vw, 17px);
	line-height: 1.6;
	color: var(--as-muted);
	background: var(--as-bg-2);
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm);
}
.as-mp-risques strong,
.as-mp-sources strong {
	color: var(--as-ink-2);
	font-weight: 800;
}

/* ============================================================
 * MODULE MUTUALISÉ — leaderboard sur page hôte (.as-mp-embed)
 * Racine allégée pour as_mp_render_classement_module() : expose la
 * palette --mp-* consommée par les lignes .as-mp-row sans imposer le
 * panneau pleine page .as-mp (la page hôte fournit son propre cadre
 * sombre). Utilisée par /barometre-crowdfunding/ (AS Classement).
 * ============================================================ */
.as-mp-embed {
	--mp-red: #ef5f74;
	--mp-orange: #f0994a;
	--mp-lgreen: #d8b84a;
	--mp-dgreen: #7bd07a;
	--mp-green: #34d39a;
}
.as-mp-embed a { color: var(--as-accent); text-decoration: none; }

/* ============================================================
 * MODULE MUTUALISÉ — offres des meilleures plateformes
 * (as_mp_render_offres_top(), rendu dans .as-mp-embed sur une
 * page hôte). Le bloc d'offre lui-même reste celui du classement
 * (.as-mp-card__offer) : on ne stylise ici que la grille et
 * l'en-tête « rang + logo + nom » de chaque carte.
 * ============================================================ */
.as-mp-topoffres__title {
	font-family: var(--as-font-head);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--as-ink);
	margin: 0 0 6px;
}
.as-mp-topoffres__hint {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--as-muted);
}
.as-mp-topoffres__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 12px;
}
.as-mp-topoffres__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--as-card);
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius);
	padding: 14px;
}
.as-mp-topoffres__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.as-mp-topoffres__rank {
	font-family: var(--as-font-head);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--as-muted);
	flex-shrink: 0;
}
.as-mp-topoffres__logo {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 3px;
	background: #fff;
	border: 1px solid var(--as-line-2);
	border-radius: 10px;
}
.as-mp-topoffres__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-mp-topoffres__logofall {
	font-family: var(--as-font-head);
	font-weight: 700;
	font-size: 14px;
	color: #0e1525;
}
.as-mp-topoffres__name {
	font-family: var(--as-font-head);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--as-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.as-mp-topoffres__head:hover .as-mp-topoffres__name { color: var(--as-accent); }
/* Le bloc offre occupe toute la largeur de la carte hôte : hors .as-mp-card,
   il n'hérite d'aucune bordure, on la lui redonne (la couleur reste celle
   imposée par .as-mp-card__offer). */
.as-mp-topoffres__item .as-mp-card__offer {
	margin-top: auto;
	border: 1px solid var(--as-line-2);
	border-radius: var(--as-radius-sm);
	padding: 12px 14px;
}

@media (max-width: 640px) {
	.as-mp-topoffres__grid { grid-template-columns: 1fr; }
}
