/* Scan Membres — couleurs pilotées par --sm-accent / --sm-bg / --sm-card / --sm-text (réglages du plugin) */

.sm-modal, .sm-profile, .sm-toast, .sm-hbtn, .sm-hmenu {
	--sm-line: color-mix(in srgb, var(--sm-text) 12%, transparent);
	--sm-soft: color-mix(in srgb, var(--sm-text) 6%, transparent);
	--sm-muted: color-mix(in srgb, var(--sm-text) 60%, transparent);
	box-sizing: border-box;
}
.sm-modal *, .sm-profile *, .sm-hbtn * { box-sizing: border-box; }
html.sm-lock { overflow: hidden; }

/* ---------- Popup ---------- */
.sm-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 16px; }
.sm-modal.is-open { display: flex; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sm-dialog {
	position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--sm-card); color: var(--sm-text); border-radius: 18px; padding: 28px 26px 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--sm-line);
	animation: smIn .22s ease;
}
@keyframes smIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sm-x {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: var(--sm-soft); color: var(--sm-text); font-size: 22px; line-height: 1; cursor: pointer;
}
.sm-x:hover { background: var(--sm-line); }
.sm-head { text-align: center; margin-bottom: 18px; }
.sm-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--sm-text); }
/* v1.25.31 : le logo affiche déjà le nom du site, donc le <h2> "COMIX" en double dessous est masqué
   visuellement (mais reste dans le DOM pour les lecteurs d'écran / accessibilité du dialogue). */
.sm-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.sm-sub { margin: 0; font-size: 13.5px; color: var(--sm-muted); }

.sm-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--sm-soft); border-radius: 12px; }
.sm-tabs button {
	flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--sm-muted);
	font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s;
}
.sm-tabs button.is-active { background: var(--sm-accent); color: #fff; }

/* ---------- Formulaires ---------- */
.sm-form { display: none; flex-direction: column; gap: 14px; }
.sm-form.is-active { display: flex; }
.sm-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sm-field span { font-size: 13px; font-weight: 600; color: var(--sm-text); }
.sm-field em { font-style: normal; font-weight: 400; color: var(--sm-muted); font-size: 12px; }
.sm-field input, .sm-field textarea {
	width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sm-line);
	background: var(--sm-soft); color: var(--sm-text); font-size: 15px; font-family: inherit; outline: none; transition: .15s;
	box-shadow: none;
}
.sm-field textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.sm-field input:focus, .sm-field textarea:focus {
	border-color: var(--sm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 28%, transparent);
}
.sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-ts { display: flex; justify-content: center; min-height: 0; }

.sm-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px;
	border: 0; border-radius: 12px; background: var(--sm-accent); color: #fff; font-size: 15px; font-weight: 700;
	cursor: pointer; transition: .15s; font-family: inherit;
}
.sm-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sm-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.sm-btn.is-loading { color: transparent; }
.sm-btn.is-loading::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: smSpin .7s linear infinite;
}
.sm-btn-inline { width: auto; padding: 0 22px; }
@keyframes smSpin { to { transform: rotate(360deg); } }

.sm-link { align-self: center; font-size: 13px; color: var(--sm-muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.sm-link:hover { color: var(--sm-accent); }
.sm-link-btn { display: block; margin: 14px auto 0; font-family: inherit; }
.sm-card .sm-link { display: block; text-align: center; margin-top: 14px; }

.sm-msg { min-height: 0; font-size: 13px; line-height: 1.4; }
.sm-msg:empty { display: none; }
.sm-msg.is-err { color: #ff6b6b; background: rgba(255, 90, 90, .1); padding: 10px 12px; border-radius: 10px; }
.sm-msg.is-ok { color: #4ade80; background: rgba(74, 222, 128, .1); padding: 10px 12px; border-radius: 10px; }

/* ---------- Bouton d'en-tête ---------- */
.sm-hbtn {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; margin-left: 10px;
	border: 0; border-radius: 10px; background: var(--sm-accent); color: #fff !important; font-size: 14px; font-weight: 700;
	cursor: pointer; text-decoration: none !important; vertical-align: middle; font-family: inherit; line-height: 1;
	transition: .15s; white-space: nowrap;
}
.sm-hbtn:hover { filter: brightness(1.12); }
.sm-hbtn-user { padding: 0 14px 0 4px; background: color-mix(in srgb, var(--sm-accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--sm-accent) 55%, transparent); }
.sm-hbtn-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.sm-hbtn-user span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.sm-hbtn.sm-floating { position: fixed; top: 12px; right: 12px; z-index: 99998; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
@media (max-width: 640px) { .sm-hbtn-user span { display: none; } .sm-hbtn-user { padding-right: 4px; } }

/* ---------- Badges ---------- */
.sm-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.sm-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
	line-height: 1.6; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap;
}
.sm-badge i { font-style: normal; font-size: 11px; }
.sm-lvl {
	display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.6;
	color: #fff; background: var(--sm-accent, #8b5cf6);
}
.sm-badges-lg { margin-left: 0; gap: 6px; }
.sm-badges-lg .sm-badge { font-size: 12.5px; padding: 3px 11px; }

/* ---------- Profil ---------- */
.sm-profile { max-width: 880px; margin: 0 auto; color: var(--sm-text); font-family: inherit; }
.sm-card, .sm-hero {
	background: var(--sm-card); border-radius: 18px; border: 1px solid var(--sm-line); margin-bottom: 18px; overflow: hidden;
}
.sm-card { padding: 22px; }
.sm-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--sm-text); }
.sm-center { text-align: center; padding: 40px 22px; }
.sm-center p { color: var(--sm-muted); margin: 0 0 18px; }
.sm-empty, .sm-muted { color: var(--sm-muted); font-size: 13px; }

.sm-cover { height: 110px; background: linear-gradient(135deg, var(--sm-accent), color-mix(in srgb, var(--sm-accent) 35%, #000)); }
.sm-hero-body { display: flex; gap: 18px; align-items: flex-end; padding: 0 22px; margin-top: -46px; }
.sm-avatar-wrap { position: relative; flex: none; }
.sm-avatar {
	display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--sm-card);
	border: 4px solid var(--sm-card); box-shadow: 0 0 0 2px var(--sm-accent);
}
.sm-avatar-edit {
	position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--sm-accent); color: #fff; cursor: pointer; font-size: 14px; border: 3px solid var(--sm-card);
}
.sm-id { min-width: 0; padding-bottom: 4px; }
.sm-name { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--sm-text); word-break: break-word; }
.sm-bio { margin: 10px 0 0; font-size: 14px; color: var(--sm-muted); white-space: pre-line; word-break: break-word; }

.sm-level { padding: 18px 22px 4px; }
.sm-level-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.sm-bar { height: 10px; border-radius: 999px; background: var(--sm-soft); overflow: hidden; }
.sm-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sm-accent), color-mix(in srgb, var(--sm-accent) 55%, #fff)); transition: width .6s ease; }

.sm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 22px 22px; }
.sm-stats div { background: var(--sm-soft); border-radius: 12px; padding: 12px 10px; text-align: center; min-width: 0; }
.sm-stats b { display: block; font-size: 17px; font-weight: 800; color: var(--sm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-stats span { font-size: 12px; color: var(--sm-muted); }

.sm-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sm-bcard {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px;
	border-radius: 14px; background: var(--sm-soft); border: 1px solid var(--sm-line); opacity: .45; filter: grayscale(1); transition: .2s;
}
.sm-bcard.is-on { opacity: 1; filter: none; background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.sm-bicon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.sm-bcard b { font-size: 14px; color: var(--sm-text); }
.sm-bcard span { font-size: 11.5px; color: var(--sm-muted); line-height: 1.35; }

.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sm-two .sm-card { margin-bottom: 0; }
.sm-profile .sm-form { margin: 0; }

@media (max-width: 720px) {
	.sm-two { grid-template-columns: 1fr; }
	.sm-hero-body { flex-direction: column; align-items: center; text-align: center; }
	.sm-id { text-align: center; }
	.sm-badges-lg { justify-content: center; }
	.sm-stats { grid-template-columns: 1fr; }
	.sm-stats div { display: flex; justify-content: space-between; align-items: center; text-align: left; }
}

/* ---------- Toast ---------- */
.sm-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 1000000; transform: translate(-50%, 20px); opacity: 0;
	padding: 12px 20px; border-radius: 12px; background: var(--sm-card); color: var(--sm-text); font-size: 14px; font-weight: 600;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--sm-line); transition: .25s; max-width: calc(100vw - 32px);
}
.sm-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.sm-toast.is-err { box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px #ff6b6b; }

/* ---------- Connexion Google ---------- */
.sm-social { margin-bottom: 16px; }
#sm-google { display: flex; justify-content: center; min-height: 0; }
.sm-or { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--sm-muted); font-size: 12px; }
.sm-or::before, .sm-or::after { content: ""; flex: 1; height: 1px; background: var(--sm-line); }

/* ---------- Premium / Supporter ---------- */
.sm-prem-head { text-align: center; }
.sm-prem-head h2 { margin: 6px 0 6px; font-size: 26px; font-weight: 800; color: var(--sm-text); }
.sm-prem-head p { margin: 0; }
.sm-prem-gem { font-size: 44px; line-height: 1; }
.sm-status { margin-top: 14px !important; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--sm-soft); }
.sm-status.is-on { background: rgba(56, 189, 248, .12); color: #38bdf8; }

.sm-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sm-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--sm-text); }
.sm-perks li::before { content: "✓"; color: var(--sm-accent); font-weight: 800; }

.sm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 20px; }
.sm-plan { position: relative; display: block; cursor: pointer; margin: 0; }
.sm-plan input { position: absolute; opacity: 0; pointer-events: none; }
.sm-plan-in {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px 16px;
	border-radius: 14px; border: 2px solid var(--sm-line); background: var(--sm-soft); text-align: center; transition: .15s; color: var(--sm-text);
}
.sm-plan:hover .sm-plan-in { border-color: color-mix(in srgb, var(--sm-accent) 60%, transparent); }
.sm-plan input:checked + .sm-plan-in { border-color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); }
.sm-plan strong { font-size: 24px; font-weight: 800; }
.sm-plan small { color: var(--sm-muted); font-size: 12px; }
.sm-save {
	position: absolute; top: -10px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 9px;
	border-radius: 999px; background: var(--sm-accent); color: #fff;
}
#sm-pp { max-width: 420px; min-height: 50px; margin: 0 auto 12px; }
.sm-fine { text-align: center; margin: 8px 0 0; }
.sm-premium .sm-msg { margin-bottom: 10px; text-align: center; }
.sm-premium .sm-card h3 { text-align: left; }
.sm-prem-mini { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sm-prem-mini h3 { margin: 0 0 4px; }
.sm-prem-mini p { margin: 0; }
@media (max-width: 560px) { .sm-plans { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Page Premium v2 ---------- */
.sm-prem-hero { position: relative; text-align: center; padding: 36px 22px 30px; background: var(--sm-card); }
.sm-prem-glow {
	position: absolute; inset: -40% -10% auto -10%; height: 90%; pointer-events: none;
	background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--sm-accent) 38%, transparent), transparent 70%);
}
.sm-prem-inner { position: relative; }
.sm-prem-hero .sm-prem-gem { font-size: 52px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(56, 189, 248, .45)); }
.sm-prem-hero h2 { margin: 10px 0 6px; font-size: 30px; font-weight: 800; color: var(--sm-text); letter-spacing: -.01em; }
.sm-prem-sub { margin: 0 auto; max-width: 460px; font-size: 15px; color: var(--sm-muted); }
.sm-prem-hero .sm-status { display: inline-block; margin-top: 16px !important; }

.sm-demo-wrap { margin: 22px auto 0; max-width: 360px; text-align: left; }
.sm-demo-cap { display: block; margin-bottom: 8px; text-align: center; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-muted); }
.sm-demo {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px;
	background: var(--sm-soft); border: 1px solid var(--sm-line);
}
.sm-demo-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.sm-demo-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--sm-text); }
.sm-demo-text { margin-top: 4px; font-size: 14px; color: var(--sm-muted); }

.sm-perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sm-perk {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.4;
	background: var(--sm-soft); border: 1px solid var(--sm-line); color: var(--sm-text);
}
.sm-perk-ic { font-size: 22px; line-height: 1.1; flex: none; }

.sm-plan-in { padding-top: 26px; }
.sm-plan-save { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: #4ade80; }
.sm-login-cta { margin: 4px 0 6px; }
.sm-login-cta p { margin: 0 0 12px; }
.sm-login-cta .sm-btn { width: 100%; max-width: 420px; }

.sm-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--sm-text); }
.sm-compare th, .sm-compare td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--sm-line); background: transparent; }
.sm-compare th:first-child, .sm-compare td:first-child { text-align: left; width: 52%; }
.sm-compare thead th { font-size: 13px; color: var(--sm-muted); font-weight: 700; border-bottom-width: 2px; }
.sm-compare .is-sup { color: #38bdf8; font-weight: 800; background: rgba(56, 189, 248, .07); }
.sm-compare .no { color: var(--sm-muted); }
.sm-compare tbody tr:last-child td { border-bottom: 0; }

.sm-faq details { border-bottom: 1px solid var(--sm-line); padding: 2px 0; }
.sm-faq details:last-child { border-bottom: 0; }
.sm-faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font-weight: 700; font-size: 15px; color: var(--sm-text); }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--sm-accent); transition: .15s; }
.sm-faq details[open] summary::after { content: "–"; }
.sm-faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--sm-muted); }

@media (max-width: 560px) {
	.sm-prem-hero h2 { font-size: 25px; }
	.sm-compare th:first-child, .sm-compare td:first-child { width: 46%; }
	.sm-compare th, .sm-compare td { padding: 10px 6px; font-size: 13.5px; }
}


/* ---------- Blindage contre les styles du thème (images, paragraphes, titres) ---------- */
.sm-premium .sm-prem-inner,
.sm-premium .sm-prem-inner > * { text-align: center !important; }
.sm-premium .sm-prem-hero h2 { margin: 10px 0 8px !important; padding: 0 !important; line-height: 1.2 !important; }
.sm-premium .sm-prem-sub { margin: 0 auto !important; max-width: 460px; font-size: 15px !important; line-height: 1.5 !important; }
.sm-premium .sm-demo-wrap { max-width: 380px; margin: 22px auto 0 !important; }
.sm-premium .sm-demo { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px; text-align: left !important; }
.sm-premium .sm-demo * { text-align: left !important; }
.sm-premium .sm-demo .sm-demo-av { width: 42px !important; height: 42px !important; min-width: 42px !important; max-width: 42px !important; max-height: 42px !important; border-radius: 50% !important; flex: none !important; margin: 0 !important; padding: 0 !important; display: block !important; }
.sm-premium .sm-demo-body { flex: 1 1 auto; min-width: 0; }
.sm-premium .sm-demo-name { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 !important; }
.sm-premium .sm-demo-text { margin: 3px 0 0 !important; font-size: 14px !important; line-height: 1.4 !important; }
.sm-premium .sm-perk span, .sm-premium .sm-perk { text-align: left !important; }
.sm-profile .sm-avatar { width: 96px !important; height: 96px !important; max-width: none !important; border-radius: 50% !important; }
.sm-hbtn-user img { width: 30px !important; height: 30px !important; max-width: none !important; border-radius: 50% !important; margin: 0 !important; }

/* ---------- Menu utilisateur dans l'en-tête ---------- */
.sm-hmenu { position: relative; display: inline-block; margin-left: 10px; vertical-align: middle; }
.sm-hmenu .sm-hbtn { margin-left: 0; }
.sm-hdrop {
	display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; z-index: 99999; padding: 6px;
	background: var(--sm-card); color: var(--sm-text); border: 1px solid var(--sm-line); border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.sm-hmenu.is-open .sm-hdrop { display: block; }
.sm-hitem {
	display: block; width: 100%; padding: 10px 12px; margin: 0; border: 0; border-radius: 8px; background: transparent;
	color: var(--sm-text) !important; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none !important;
	cursor: pointer; font-family: inherit; line-height: 1.3;
}
.sm-hitem:hover { background: var(--sm-soft); }
.sm-hout { color: #ff7b7b !important; border-top: 1px solid var(--sm-line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.sm-floating { position: fixed; top: 12px; right: 12px; z-index: 99998; }

/* ---------- Bouton Se déconnecter sur le profil ---------- */
.sm-cover { position: relative; }
.sm-cover-btn {
	position: absolute; top: 12px; right: 12px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px;
	background: rgba(0, 0, 0, .38); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sm-cover-btn:hover { background: rgba(0, 0, 0, .58); }

.sm-premium .sm-fine,
.sm-premium .sm-login-cta,
.sm-premium .sm-login-cta p,
.sm-premium .sm-center,
.sm-premium .sm-center p { text-align: center !important; }
.sm-premium .sm-fine { margin: 10px 0 0 !important; font-size: 12.5px !important; line-height: 1.5 !important; }
.sm-premium .sm-login-cta p { font-size: 14px !important; margin: 0 0 12px !important; }

/* Emoji / icône du badge : le thème applique une police d'icônes aux <i>, on utilise un <span>. */
.sm-badge .sm-bi { font-style: normal; font-size: 11px; line-height: 1; font-family: inherit; }

/* ---------- wpDiscuz : badges sous l'avatar ---------- */
/* Bureau : pile verticale centrée sous l'avatar. Chaque pastille prend la largeur de son texte (jamais coupée)
   et déborde de façon symétrique si la colonne est étroite. Mobile : rangée alignée à gauche. */
.sm-wpd-badges { display: block !important; position: relative !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; clear: both; overflow: visible !important; }
#wpdcom .sm-badges,
.wpd-comment .sm-badges,
.sm-wpd-badges .sm-badges {
	display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
	gap: 4px !important; position: relative !important; left: 50% !important; transform: translateX(-50%) !important;
	width: max-content !important; max-width: none !important; margin: 6px 0 0 !important; padding: 0 !important; float: none !important;
}
#wpdcom .sm-badge,
.wpd-comment .sm-badge,
.sm-wpd-badges .sm-badge {
	display: inline-flex !important; flex: none !important; align-items: center !important; gap: 4px !important;
	width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 2px 9px !important;
	font-size: 11px !important; font-weight: 700 !important; line-height: 1.5 !important; letter-spacing: 0 !important;
	text-transform: none !important; white-space: nowrap !important; box-shadow: none !important;
}
#wpdcom .sm-badge .sm-bi,
.wpd-comment .sm-badge .sm-bi,
.sm-wpd-badges .sm-badge .sm-bi { font-size: 11px !important; line-height: 1 !important; }
#wpdcom .sm-lvl,
.wpd-comment .sm-lvl,
.sm-wpd-badges .sm-lvl {
	display: inline-block !important; flex: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 2px 9px !important;
	font-size: 11px !important; font-weight: 700 !important; line-height: 1.5 !important; letter-spacing: 0 !important;
	white-space: nowrap !important; border-radius: 999px !important; text-transform: none !important;
}
@media (max-width: 600px) {
	#wpdcom .sm-badges,
	.wpd-comment .sm-badges,
	.sm-wpd-badges .sm-badges {
		flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: flex-start !important;
		left: 0 !important; transform: none !important; width: auto !important; max-width: 100% !important; margin: 6px 0 4px !important;
	}
}

/* ---------- v1.5 : bannière, abonnements, notifications ---------- */
.sm-cover { background-size: cover !important; background-position: center !important; }
.sm-cover-tools { position: absolute; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: calc(100% - 24px); }
.sm-cover-tools .sm-cover-btn { position: static; display: inline-flex; align-items: center; margin: 0; }
.sm-cover-tools .sm-cover-btn[hidden] { display: none !important; }

.sm-follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; }
.sm-fcount { color: var(--sm-text) !important; text-decoration: none !important; font-size: 14px; opacity: .85; }
.sm-fcount b { font-size: 16px; color: var(--sm-text); }
.sm-fcount:hover { opacity: 1; }
.sm-btn-follow { width: auto !important; margin: 0 !important; }
.sm-btn-follow.is-on { background: transparent !important; color: var(--sm-text) !important; border: 1px solid var(--sm-line) !important; }

.sm-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sm-mcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--sm-soft); color: var(--sm-text) !important; text-decoration: none !important; font-weight: 600; font-size: 14px; min-width: 0; }
.sm-mcard img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.sm-mcard span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-pager { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.sm-pager .sm-link { color: var(--sm-accent) !important; text-decoration: none !important; font-weight: 600; font-size: 14px; }

.sm-hmenu { display: inline-flex; align-items: center; gap: 8px; }
.sm-bell {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; margin: 0;
	border-radius: 50%; border: 1px solid var(--sm-line); background: transparent; color: var(--sm-text); cursor: pointer;
}
.sm-bell:hover { background: var(--sm-soft); }
.sm-bell-n {
	position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box;
}
.sm-bell-n[hidden] { display: none !important; }
.sm-notifs {
	display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto;
	z-index: 99999; padding: 6px; background: var(--sm-card); color: var(--sm-text); border: 1px solid var(--sm-line); border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .5); font-size: 14px;
}
.sm-hmenu.is-notif .sm-notifs { display: block; }
.sm-notifs-h { padding: 8px 10px; font-weight: 700; }
.sm-notifs-empty { padding: 14px 10px; opacity: .7; }
.sm-notif { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--sm-text) !important; text-decoration: none !important; }
.sm-notif:hover { background: var(--sm-soft); }
.sm-notif.is-new { background: color-mix(in srgb, var(--sm-accent) 16%, transparent); }
.sm-notif img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.sm-notif span { display: flex; flex-direction: column; min-width: 0; }
.sm-notif b { font-weight: 600; line-height: 1.3; }
.sm-notif small { opacity: .65; font-size: 12px; }
.sm-bell { color: #6b7280 !important; border-color: rgba(128, 128, 128, .45) !important; background: rgba(255, 255, 255, .6) !important; }
.sm-bell:hover { background: rgba(128, 128, 128, .18) !important; }
.sm-profile .sm-name { color: var(--sm-text) !important; }

/* ---------- v1.5.1 : page Premium nouveau style ---------- */
.sm-premium { max-width: 1000px; }
.sm-premium .sm-pz-hero { text-align: center !important; padding: 34px 10px 18px; background: transparent; }
.sm-premium .sm-pz-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--sm-accent) 70%, #fff); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sm-accent) 40%, transparent); }
.sm-premium .sm-pz-hero h2 { margin: 18px 0 0 !important; padding: 0 !important; font-size: clamp(30px, 6vw, 48px) !important; line-height: 1.12 !important; font-weight: 900 !important; font-style: italic; letter-spacing: -.01em; color: var(--sm-text) !important; text-align: center !important; }
.sm-premium .sm-pz-g1 { background: linear-gradient(90deg, #f97316, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sm-premium .sm-pz-g2 { background: linear-gradient(90deg, #a855f7, #f472b6, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sm-premium .sm-pz-hero .sm-status { margin: 18px auto 0 !important; display: inline-block; }

.sm-premium .sm-ticker { overflow: hidden; margin: 14px 0 22px; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sm-premium .sm-ticker-track { display: inline-flex; align-items: center; gap: 18px; animation: sm-tick 30s linear infinite; padding-left: 18px; }
.sm-premium .sm-ticker span { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sm-text); }
.sm-premium .sm-ticker i { font-style: normal; color: #ef4444; }
@keyframes sm-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sm-premium .sm-ticker-track { animation: none; } }

.sm-premium .sm-pz-card {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 28px; border-radius: 20px; margin-bottom: 22px;
	background: linear-gradient(135deg, color-mix(in srgb, #ef4444 22%, var(--sm-card)), var(--sm-card) 55%, color-mix(in srgb, var(--sm-accent) 20%, var(--sm-card)));
	border: 1px solid color-mix(in srgb, #ef4444 45%, transparent); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.sm-premium .sm-pz-left, .sm-premium .sm-pz-right { min-width: 0; }
.sm-premium .sm-pz-tag { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(239, 68, 68, .35); border: 1px solid rgba(239, 68, 68, .5); }
.sm-premium .sm-pz-left h3 { margin: 14px 0 16px !important; font-size: clamp(22px, 4vw, 30px) !important; line-height: 1.2 !important; font-weight: 800 !important; color: var(--sm-text) !important; text-align: left !important; }
.sm-premium .sm-pz-list { list-style: none !important; margin: 0 0 18px !important; padding: 0 !important; display: grid; gap: 10px; }
.sm-premium .sm-pz-list li { position: relative; margin: 0 !important; padding: 0 0 0 28px !important; font-size: 14.5px; line-height: 1.4; color: var(--sm-text); text-align: left !important; }
.sm-premium .sm-pz-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(239, 68, 68, .25); border: 1px solid rgba(239, 68, 68, .5); color: #fca5a5; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.sm-premium .sm-pz-left .sm-demo-wrap { margin: 6px 0 0 !important; max-width: 360px; }

.sm-premium .sm-pz-right { align-self: start; padding: 20px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--sm-line); text-align: center; }
.sm-premium .sm-pz-right h4 { margin: 0 0 6px; color: var(--sm-text); }
.sm-premium .sm-pz-radio { position: absolute; opacity: 0; pointer-events: none; }
.sm-premium .sm-pz-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--sm-line); }
.sm-premium .sm-pz-tabs label { flex: 1; margin: 0; padding: 9px 6px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--sm-muted); text-align: center; cursor: pointer; line-height: 1.2; transition: .15s; }
.sm-premium .sm-pz-tabs label em { display: block; font-style: normal; font-size: 10.5px; color: #4ade80; }
#sm-pk-1:checked ~ .sm-pz-tabs label[data-k="1"],
#sm-pk-3:checked ~ .sm-pz-tabs label[data-k="3"],
#sm-pk-12:checked ~ .sm-pz-tabs label[data-k="12"] { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.sm-premium .sm-pz-price { display: none; padding: 20px 0 4px; }
#sm-pk-1:checked ~ .sm-pz-price[data-k="1"],
#sm-pk-3:checked ~ .sm-pz-price[data-k="3"],
#sm-pk-12:checked ~ .sm-pz-price[data-k="12"] { display: block; }
.sm-premium .sm-pz-amount { font-size: clamp(40px, 8vw, 54px); font-weight: 900; line-height: 1; color: var(--sm-text); }
.sm-premium .sm-pz-per { margin-top: 6px; font-size: 13px; color: var(--sm-muted); }
.sm-premium .sm-pz-note { margin: 6px 0 16px !important; font-size: 12.5px !important; color: var(--sm-muted); text-align: center !important; }
.sm-premium .sm-pz-login { margin: 0 0 12px !important; text-align: center !important; }
.sm-premium .sm-pz-cta { width: 100% !important; margin: 0 !important; background: linear-gradient(135deg, #ef4444, #b91c1c) !important; }

.sm-premium .sm-pz-ad { text-align: center !important; padding: 34px 16px; margin: 0 0 22px; border-radius: 20px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--sm-accent) 28%, transparent), transparent 70%); }
.sm-premium .sm-pz-ad-ribbon { display: inline-block; padding: 14px 36px; border-radius: 6px; background: linear-gradient(90deg, rgba(148, 163, 184, .35), rgba(226, 232, 240, .85), rgba(148, 163, 184, .35)); color: #0f172a; font-size: clamp(18px, 4vw, 26px); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; transform: skewX(-6deg); }
.sm-premium .sm-pz-ad-t { margin: 22px auto 8px !important; max-width: 640px; font-size: clamp(18px, 3.6vw, 26px); font-weight: 800; line-height: 1.25; color: var(--sm-text); text-align: center !important; }
.sm-premium .sm-pz-ad-s { margin: 0 auto !important; max-width: 520px; font-size: 14px; line-height: 1.55; color: var(--sm-muted); text-align: center !important; }

@media (max-width: 760px) {
	.sm-premium .sm-pz-card { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
}
.sm-premium .sm-pz-ad { background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--sm-accent) 30%, transparent), transparent 70%), var(--sm-card) !important; border: 1px solid var(--sm-line); }
.sm-premium .sm-ticker { background: var(--sm-card); border-radius: 12px; padding: 12px 0; }
.wpd-comment:has(.sm-wpd-badges[data-sm-url]) .wpd-avatar,
.wpd-comment:has(.sm-wpd-badges[data-sm-url]) .wpd-comment-author { cursor: pointer; }

/* ---------- v1.5.3 : badges en ligne à côté du pseudo (wpDiscuz) ---------- */
#wpdcom .wpd-comment .sm-wpd-badges.is-inline,
.wpd-comment .sm-wpd-badges.is-inline { display: inline-flex !important; width: auto !important; clear: none !important; vertical-align: middle; margin: 0 8px !important; align-items: center; }
#wpdcom .wpd-comment .sm-wpd-badges.is-inline .sm-badges,
.wpd-comment .sm-wpd-badges.is-inline .sm-badges {
	flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: flex-start !important;
	left: auto !important; transform: none !important; width: auto !important; margin: 0 !important; gap: 6px !important;
}
#wpdcom .wpd-comment .sm-wpd-badges.is-inline .sm-badge,
#wpdcom .wpd-comment .sm-wpd-badges.is-inline .sm-lvl,
.wpd-comment .sm-wpd-badges.is-inline .sm-badge,
.wpd-comment .sm-wpd-badges.is-inline .sm-lvl {
	padding: 1px 7px !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .04em !important;
	text-transform: uppercase !important; border-radius: 6px !important; line-height: 1.6 !important;
}
#wpdcom .wpd-comment .sm-wpd-badges.is-inline .sm-badge .sm-bi,
.wpd-comment .sm-wpd-badges.is-inline .sm-badge .sm-bi { font-size: 10px !important; }
.wpd-comment:has(.sm-wpd-badges[data-sm-url]) .wpd-avatar,
.wpd-comment:has(.sm-wpd-badges[data-sm-url]) .wpd-comment-author { cursor: pointer; }
@media (max-width: 600px) {
	#wpdcom .wpd-comment .sm-wpd-badges.is-inline,
	.wpd-comment .sm-wpd-badges.is-inline {
		display: flex !important; flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important;
		justify-content: flex-start !important; margin: 4px 0 6px !important; text-align: left !important;
	}
}

/* ---------- v1.5.5 : profil et premium sans sidebar ---------- */
body.sm-nosidebar #sidebar,
body.sm-nosidebar .sidebar,
body.sm-nosidebar aside#secondary,
body.sm-nosidebar #secondary,
body.sm-nosidebar .widget-area,
body.sm-nosidebar .sidebar-wrapper,
body.sm-nosidebar .right-sidebar,
body.sm-nosidebar .tsidebar { display: none !important; }
body.sm-nosidebar #content .postbody,
body.sm-nosidebar .postbody,
body.sm-nosidebar #primary,
body.sm-nosidebar .content-area,
body.sm-nosidebar #main,
body.sm-nosidebar .site-main,
body.sm-nosidebar .main-content,
body.sm-nosidebar .entry-content { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.sm-nosidebar #content .wrapper { display: block !important; }
body.sm-nosidebar .sm-profile { margin-left: auto !important; margin-right: auto !important; }
body.sm-nosidebar .sm-profile { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
body.sm-nosidebar .sm-profile *, body.sm-nosidebar .sm-profile *::before, body.sm-nosidebar .sm-profile *::after { box-sizing: border-box; }

/* ---------- v1.5.9 : bouton Premium dans l'en-tête + placement ---------- */
.sm-hprem {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none !important;
	background: rgba(255, 255, 255, .14); color: #fff !important; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
}
.sm-hprem:hover { background: rgba(255, 255, 255, .24); }
.sm-hprem .sm-crown { font-size: 17px; line-height: 1; }
@media (max-width: 640px) {
	.sm-hprem { padding: 0; width: 38px; height: 38px; justify-content: center; border-radius: 50%; }
	.sm-hprem-t { display: none; }
	.sm-hmenu { gap: 6px; margin-left: 6px; }
	.sm-hmenu.sm-floating, .sm-hbtn.sm-floating { top: auto !important; bottom: 16px !important; left: 12px !important; right: auto !important; }
}

/* ---------- v1.5.11 : boutons dans l'en-tête, lisibles sur fond coloré ---------- */
.sm-hbtn.sm-inhdr, .sm-hmenu.sm-inhdr .sm-hbtn-user { background: rgba(255, 255, 255, .18) !important; border: 1px solid rgba(255, 255, 255, .4) !important; color: #fff !important; }
.sm-hbtn.sm-inhdr:hover { background: rgba(255, 255, 255, .3) !important; }
.sm-hmenu.sm-inhdr, .sm-hbtn.sm-inhdr { position: relative; z-index: 5; flex: none; }
.sm-hmenu.sm-inhdr .sm-bell { color: #fff !important; background: rgba(255, 255, 255, .18) !important; border-color: rgba(255, 255, 255, .4) !important; }

/* ---------- v1.5.13 : mode compact (mobile) ---------- */
.sm-hbtn .sm-hico { display: none; }
.sm-hbtn.sm-compact { padding: 0 !important; width: 38px; height: 38px; justify-content: center; border-radius: 50% !important; }
.sm-hbtn.sm-compact .sm-htxt { display: none; }
.sm-hbtn.sm-compact .sm-hico { display: inline-flex; }
.sm-hmenu.sm-compact { display: inline-flex !important; flex-wrap: nowrap !important; gap: 6px !important; align-items: center; }
.sm-hmenu.sm-compact .sm-hprem { padding: 0 !important; width: 36px; height: 36px; justify-content: center; border-radius: 50%; }
.sm-hmenu.sm-compact .sm-hprem-t, .sm-hmenu.sm-compact .sm-hbtn-user span { display: none !important; }
.sm-hmenu.sm-compact .sm-bell { width: 36px; height: 36px; }
.sm-hmenu.sm-compact .sm-hbtn-user { padding: 0 !important; width: 36px; height: 36px; justify-content: center; border-radius: 50% !important; }
.sm-hmenu.sm-compact .sm-hdrop, .sm-hmenu.sm-compact .sm-notifs { position: fixed; right: 8px; left: 8px; top: 64px; width: auto; max-width: none; }
.sm-hmenu.sm-hide-s, .sm-hbtn.sm-hide-s { display: none !important; }
.sm-hmenu.sm-pending, .sm-hbtn.sm-pending { visibility: hidden !important; }

.sm-dialog .sm-logo { display: block; margin: 0 auto 12px; max-width: 180px; max-height: 56px; width: auto; height: auto; object-fit: contain; }

/* Profil : le bloc nom + badges commence sous la bannière (il la chevauchait quand il y avait beaucoup de lignes). */
.sm-hero-body { align-items: flex-start; }
.sm-hero-body .sm-id { padding-top: 54px; padding-bottom: 4px; }
@media (max-width: 720px) {
	.sm-hero-body .sm-id { padding-top: 0; }
}

/* ===== Profil v2 (onglets, stats, succès, vitrine) ===== */
.sm-pf2 .sm-cover { height: 170px; }
.sm-pf2 .sm-hero-body { margin-top: -54px; gap: 22px; align-items: flex-start; }
.sm-pf2 .sm-hero-body .sm-id { padding-top: 62px; flex: 1 1 auto; }
.sm-pf2 .sm-avatar { width: 112px; height: 112px; }
.sm-pf2 .sm-name { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.sm-plvl { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-bottom: 10px; }
.sm-plvl .sm-bar { flex: 1 1 auto; min-width: 60px; }
.sm-lvl-pill { flex: none; padding: 3px 10px; border-radius: 6px; background: var(--sm-accent); color: #fff; font-size: 12px; font-weight: 800; }
.sm-plvl .sm-muted { flex: none; }
.sm-pf-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 22px 16px; }
.sm-pf-tabs a { padding: 9px 16px; border-radius: 999px; color: var(--sm-muted) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; border: 1px solid transparent; }
.sm-pf-tabs a:hover { color: var(--sm-text) !important; background: color-mix(in srgb, var(--sm-text) 8%, transparent); }
.sm-pf-tabs a.is-on { background: var(--sm-accent); color: #fff !important; }
.sm-pf-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.sm-pf-side, .sm-pf-main { min-width: 0; }
.sm-pf-main .sm-card:last-child { margin-bottom: 0; }
.sm-sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-sc { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--sm-card); border: 1px solid var(--sm-line); min-width: 0; }
.sm-sc i { font-style: normal; font-size: 18px; }
.sm-sc b { font-size: 22px; font-weight: 800; color: var(--sm-text); overflow-wrap: anywhere; line-height: 1.15; }
.sm-sc:last-child b { font-size: 14px; }
.sm-sc span { font-size: 12px; color: var(--sm-muted); }
.sm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sm-card-top h3 { margin: 0; }
.sm-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 14px; }
.sm-sh { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.sm-sh .sm-ach-ic { width: 62px; height: 62px; font-size: 28px; border-radius: 50%; }
.sm-card-act { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.sm-allbtn { padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--sm-text); background: color-mix(in srgb, var(--sm-accent) 18%, transparent); border: 2px solid color-mix(in srgb, var(--sm-accent) 65%, transparent); transition: .15s; }
.sm-allbtn:hover, .sm-allbtn.is-open { background: color-mix(in srgb, var(--sm-accent) 32%, transparent); }
#sm-all-ach[hidden] { display: none !important; }
.sm-sh b { font-size: 12.5px; color: var(--sm-text); }
.sm-sh small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rc); }
.sm-ach-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; font-size: 22px; background: color-mix(in srgb, var(--rc) 16%, transparent); border: 2px solid color-mix(in srgb, var(--rc) 65%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 28%, transparent); }
/* Badges de succès : médaillons riches (dégradé, anneau, halo selon la rareté). */
.sm-ach-ic { position: relative; border-radius: 50%; border: 3px solid transparent; font-size: 23px; text-shadow: 0 2px 4px rgba(0, 0, 0, .45);
	background: radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--rc) 55%, #fff) 0%, color-mix(in srgb, var(--rc) 70%, #1a1a24) 62%, color-mix(in srgb, var(--rc) 40%, #000) 100%) padding-box,
		linear-gradient(145deg, color-mix(in srgb, var(--rc) 40%, #fff), var(--rc) 55%, color-mix(in srgb, var(--rc) 45%, #000)) border-box;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent), 0 6px 18px color-mix(in srgb, var(--rc) 38%, transparent), inset 0 -6px 10px rgba(0, 0, 0, .28), inset 0 4px 8px rgba(255, 255, 255, .22); }
.sm-sh .sm-ach-ic { width: 76px; height: 76px; font-size: 34px; border-width: 4px; }
.sm-sh { gap: 6px; }
.sm-sh b { font-size: 13.5px; }
.sm-ach-ic::after { content: ""; position: absolute; top: 9%; left: 18%; width: 38%; height: 22%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }
.sm-r-epic, .sm-ach-ic[style*="a855f7"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 25%, transparent), 0 0 24px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 -6px 10px rgba(0, 0, 0, .28), inset 0 4px 8px rgba(255, 255, 255, .22); }
.sm-ach-ic[style*="f59e0b"] { border-color: transparent; background: radial-gradient(circle at 32% 24%, #fff3c4 0%, #f5b83a 45%, #8a5a00 100%) padding-box, conic-gradient(from 30deg, #fff3c4, #f59e0b, #b45309, #fcd34d, #fff3c4) border-box; box-shadow: 0 0 0 3px rgba(245, 158, 11, .28), 0 0 30px rgba(245, 158, 11, .6), inset 0 -6px 10px rgba(0, 0, 0, .3), inset 0 4px 8px rgba(255, 255, 255, .35); animation: sm-glow 2.6s ease-in-out infinite; }
@keyframes sm-glow { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .35), 0 0 42px rgba(245, 158, 11, .85), inset 0 -6px 10px rgba(0, 0, 0, .3), inset 0 4px 8px rgba(255, 255, 255, .35); } }
.sm-ach:not(.is-on) .sm-ach-ic { filter: grayscale(1) brightness(.75); box-shadow: none; animation: none; }
.sm-ach { border-radius: 14px; }
.sm-ach.is-on { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, transparent), color-mix(in srgb, var(--rc) 4%, transparent)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 22%, transparent); }
@media (prefers-reduced-motion: reduce) { .sm-ach-ic { animation: none !important; } }
.sm-achs { display: flex; flex-direction: column; gap: 8px; }
.sm-ach { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sm-line); border-left: 3px solid var(--rc); background: color-mix(in srgb, var(--rc) 6%, transparent); opacity: .55; }
.sm-ach.is-on { opacity: 1; background: color-mix(in srgb, var(--rc) 10%, transparent); }
.sm-ach:not(.is-on) .sm-ach-ic { filter: grayscale(1); box-shadow: none; }
.sm-ach-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-ach-t b { color: var(--rc); font-size: 14.5px; }
.sm-ach-t small { color: var(--sm-muted); font-size: 12px; }
.sm-bar-s { height: 5px; margin: 4px 0 0; }
.sm-rar { flex: none; padding: 3px 9px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); color: var(--rc); font-size: 11px; font-weight: 800; }
.sm-showedit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sm-line); }
.sm-showedit[hidden] { display: none; }
.sm-showpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.sm-showpick label { font-size: 13.5px; color: var(--sm-text); }
.sm-act { list-style: none; margin: 0; padding: 0; }
.sm-act li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sm-line); }
.sm-act li:first-child { border-top: 0; }
.sm-act a { display: block; color: var(--sm-text) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; overflow-wrap: anywhere; }
.sm-act small { display: block; color: var(--sm-muted); font-size: 12px; margin-top: 2px; }
.sm-act em { flex: none; font-style: normal; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--sm-accent) 22%, transparent); color: var(--sm-accent); font-size: 11.5px; font-weight: 800; }
.sm-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--sm-line); text-decoration: none !important; }
.sm-row:first-of-type { border-top: 0; }
.sm-row b { color: var(--sm-text); font-size: 14.5px; overflow-wrap: anywhere; }
.sm-row:hover b { color: var(--sm-accent); }
.sm-subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.sm-subtabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sm-line); color: var(--sm-muted) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.sm-subtabs a.is-on { background: color-mix(in srgb, var(--sm-accent) 20%, transparent); color: var(--sm-text) !important; border-color: var(--sm-accent); }
@media (max-width: 860px) {
	.sm-pf-grid { grid-template-columns: 1fr; }
	.sm-sc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
	.sm-pf2 .sm-cover { height: 130px; }
	.sm-pf2 .sm-hero-body .sm-id { padding-top: 0; }
	.sm-pf2 .sm-name { font-size: 24px; }
	.sm-pf-tabs { justify-content: center; padding: 8px 12px 14px; }
	.sm-pf-tabs a { padding: 8px 13px; }
	.sm-sc-grid { grid-template-columns: 1fr 1fr; }
	.sm-ach { flex-wrap: wrap; }
}
.sm-card-top .sm-link-btn { margin: 0 0 0 auto; width: auto; }
@media (max-width: 720px) {
	.sm-ach { flex-wrap: nowrap; gap: 10px; padding: 10px; }
	.sm-ach .sm-ach-ic { width: 44px; height: 44px; font-size: 20px; }
	.sm-rar { padding: 2px 6px; font-size: 10px; }
}

.sm-rn { display: flex; flex-direction: column; gap: 12px; }
.sm-rn-i { display: flex; align-items: center; gap: 12px; }
.sm-rn-img { flex: none; width: 46px; height: 62px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--sm-text) 10%, transparent); display: flex; align-items: center; justify-content: center; text-decoration: none !important; }
.sm-rn-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-rn-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sm-rn-t a { color: var(--sm-text) !important; text-decoration: none !important; }
.sm-rn-t b { font-size: 14.5px; overflow-wrap: anywhere; }
.sm-rn-t small { color: var(--sm-muted); font-size: 12px; }
.sm-rn-go { flex: none; width: auto; padding: 8px 14px; font-size: 13px; }
.sm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--sm-text); }
.sm-check input { margin-top: 3px; }
@media (max-width: 860px) { .sm-sc-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cadre du thème retiré autour de nos pages (profil, messages, communauté, Premium). */
.sm-unframe { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }
body.sm-nosidebar .wp-block-post-title, body.sm-nosidebar h1.entry-title, body.sm-nosidebar .page-title { display: none !important; }

/* Profil v2 : mise en page mobile (centrée, onglets sur une seule ligne défilante). */
@media (max-width: 720px) {
	.sm-pf2 .sm-hero-body { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
	.sm-pf2 .sm-hero-body .sm-id { width: 100%; padding-left: 14px; padding-right: 14px; display: flex; flex-direction: column; align-items: center; }
	.sm-pf2 .sm-name { margin: 4px 0 10px; text-align: center; }
	.sm-plvl { width: 100%; max-width: none; }
	.sm-pf2 .sm-follow-row { justify-content: center; }
	.sm-pf2 .sm-bio { margin: 6px 0 0; }
	.sm-pf-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 4px; margin: 0 12px 14px; padding: 6px; border: 1px solid var(--sm-line); border-radius: 999px; background: color-mix(in srgb, var(--sm-text) 4%, transparent); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sm-pf-tabs::-webkit-scrollbar { display: none; }
	.sm-pf-tabs a { flex: none; white-space: nowrap; padding: 9px 16px; }
}


/* ---------- Sous-menus de l'en-tête : panneau sombre arrondi + icônes (Réglages → Sous-menus du site) ---------- */
ul.sm-subm { background: #1a1a24 !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 14px !important; padding: 8px !important; min-width: 210px !important; box-shadow: 0 16px 44px rgba(0, 0, 0, .5) !important; overflow: hidden; }
ul.sm-subm > li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; width: auto !important; float: none !important; list-style: none !important; }
ul.sm-subm > li > a { display: flex !important; align-items: center; gap: 14px; padding: 12px 16px !important; margin: 0 !important; border-radius: 10px; background: transparent !important; color: #e6e6ee !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.2 !important; text-transform: none !important; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
ul.sm-subm > li > a:hover, ul.sm-subm > li.current-menu-item > a { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
ul.sm-subm .sm-sub-ic { flex: none; display: inline-flex; width: 22px; justify-content: center; }
ul.sm-subm .sm-sub-ic svg { display: block; }

/* Dans le menu plein écran / accordéon mobile : pas de panneau flottant, des lignes pleine largeur qui reprennent le style du menu. */
ul.sm-subm.sm-subm-flat { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0 !important; padding: 0 !important; overflow: visible !important; }
ul.sm-subm.sm-subm-flat > li > a { padding: 14px 16px !important; color: inherit !important; font-size: inherit !important; font-weight: inherit !important; white-space: normal; }
ul.sm-subm.sm-subm-flat > li > a:hover { background: rgba(255, 255, 255, .06) !important; }
ul.sm-subm.sm-subm-flat .sm-sub-ic { width: 26px; }
ul.sm-subm.sm-subm-flat .sm-sub-ic svg { width: 22px; height: 22px; }

/* Menu hamburger du thème : panneau compact sous l'en-tête au lieu du plein écran (mobile) */
nav.sm-drawer { top: var(--sm-drawer-top, 56px) !important; bottom: auto !important; left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: calc(100vh - var(--sm-drawer-top, 56px) - 14px) !important; max-height: calc(100dvh - var(--sm-drawer-top, 56px) - 14px) !important; overflow-y: auto !important; border-radius: 16px !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: 0 18px 50px rgba(0,0,0,.55) !important; padding-bottom: 8px !important; margin: 0 !important; }
nav.sm-drawer > span, nav.sm-drawer ul.menu { height: auto !important; min-height: 0 !important; }
html.sm-drawer-open .shme, html.sm-drawer-open .shme * { position: relative; z-index: 2147483000; }

.sm-avatar-wrap.is-sup .sm-avatar { box-shadow: 0 0 0 3px #f5b83a, 0 0 18px rgba(245,184,58,.55); }
.sm-avatar-wrap.is-sup::after { content: "👑"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); pointer-events: none; }
nav.sm-drawer, nav.sm-drawer * { transition: none !important; animation: none !important; }
