/* HM Avis Google — widgets front. Aucune dépendance externe. */

.hmag {
	--hmag-accent: #1a73e8;
	--hmag-star: #f6bb06;
	--hmag-star-off: color-mix(in srgb, var(--hmag-muted) 28%, transparent);
	--hmag-bg: transparent;
	--hmag-card: #ffffff;
	--hmag-text: #1f2328;
	--hmag-muted: #5f6368;
	--hmag-border: #e3e5e8;
	--hmag-radius: 12px;
	--hmag-gap: 16px;
	--hmag-fs: 15px;
	--hmag-pad: 20px;
	--hmag-lines: 4;
	--hmag-cols-d: 3;
	--hmag-cols-t: 2;
	--hmag-cols-m: 1;
	--hmag-cols: var(--hmag-cols-m);
	--hmag-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
	--hmag-shadow-hover: 0 6px 24px rgba(16, 24, 40, .12);

	container-type: inline-size;
	container-name: hmag;
	box-sizing: border-box;
	position: relative;
	color: var(--hmag-text);
	background: var(--hmag-bg);
	font-size: var(--hmag-fs);
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.hmag *, .hmag *::before, .hmag *::after { box-sizing: border-box; }
.hmag a { color: inherit; text-decoration: none; }
.hmag button { font: inherit; color: inherit; cursor: pointer; }
.hmag-font--system { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.hmag-font--serif { font-family: Georgia, "Times New Roman", serif; }

@container hmag (min-width: 560px) { .hmag > *, .hmag-split { --hmag-cols: var(--hmag-cols-t); } }
@container hmag (min-width: 900px) { .hmag > *, .hmag-split { --hmag-cols: var(--hmag-cols-d); } }

/* ---------- Thèmes ---------- */
.hmag-theme--light { --hmag-card: #ffffff; }
.hmag-theme--light-card { --hmag-card: #ffffff; --hmag-border: transparent; }
.hmag-theme--bordered { --hmag-card: #ffffff; --hmag-border: #dadce0; --hmag-shadow: none; --hmag-shadow-hover: 0 0 0 1px var(--hmag-accent); }
.hmag-theme--soft { --hmag-card: color-mix(in srgb, var(--hmag-accent) 7%, #ffffff); --hmag-border: transparent; --hmag-shadow: none; }
.hmag-theme--minimal { --hmag-card: transparent; --hmag-border: transparent; --hmag-shadow: none; --hmag-shadow-hover: none; --hmag-pad: 8px; }
.hmag-theme--dark,
.hmag-theme--dark-card { --hmag-text: #eef0f3; --hmag-muted: #a8b0bb; --hmag-border: #343a42; --hmag-star-off: rgba(255,255,255,.18); }
.hmag-theme--dark { --hmag-bg: #15181c; --hmag-card: #15181c; --hmag-shadow: none; }
.hmag-theme--dark-card { --hmag-bg: transparent; --hmag-card: #1f242a; --hmag-border: transparent; --hmag-shadow: 0 4px 18px rgba(0,0,0,.35); }
.hmag-theme--dark { padding: 20px; border-radius: var(--hmag-radius); }
.hmag-shadow--none { --hmag-shadow: none; --hmag-shadow-hover: none; }
.hmag-shadow--strong { --hmag-shadow: 0 10px 30px rgba(16, 24, 40, .16); }

/* ---------- Étoiles (une seule forme SVG en masque, remplissage partiel) ---------- */
.hmag-stars {
	--hmag-fill: 100%;
	display: inline-block; flex: 0 0 auto; vertical-align: middle; width: 5.5em; height: 1.1em; font-size: 1em;
	background: linear-gradient(90deg, var(--hmag-star) var(--hmag-fill), var(--hmag-star-off) var(--hmag-fill));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.17 6.56.82-4.82 4.6 1.2 6.66L12 17.6l-5.88 3.15 1.2-6.66-4.82-4.6 6.56-.82z'/%3E%3C/svg%3E") 0 0 / 1.1em 1.1em repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.17 6.56.82-4.82 4.6 1.2 6.66L12 17.6l-5.88 3.15 1.2-6.66-4.82-4.6 6.56-.82z'/%3E%3C/svg%3E") 0 0 / 1.1em 1.1em repeat-x;
}
.hmag-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.hmag-icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: middle; }

/* ---------- Plateforme ---------- */
.hmag-platform { font-weight: 600; letter-spacing: -.01em; color: var(--hmag-muted); font-size: .95em; }
.hmag-platform.is-small { font-size: .78em; }
.hmag-platform-icon { display: inline-block; vertical-align: middle; width: auto; }

/* ---------- Boutons ---------- */
.hmag-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--hmag-accent);
	background: var(--hmag-accent); color: #fff !important; font-weight: 600; font-size: .9em;
	transition: filter .15s, transform .15s; white-space: nowrap;
}
.hmag-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hmag-btn--ghost { background: transparent; color: var(--hmag-accent) !important; }

/* ---------- En-tête / résumé ---------- */
.hmag-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: calc(var(--hmag-gap) + 4px); }
.hmag-header__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hmag-header__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hmag-header__name { font-weight: 700; font-size: 1.1em; }
.hmag-header__label { font-weight: 800; font-size: 1.15em; letter-spacing: .02em; }
.hmag-header__rating { display: flex; align-items: center; gap: 8px; }
.hmag-header__rating .hmag-stars { font-size: 1.25em; }
.hmag-header__score { font-weight: 700; font-size: 1.3em; }
.hmag-header__count { color: var(--hmag-muted); font-size: .9em; }
.hmag-header__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.hmag-header--side { flex-direction: column; align-items: center; text-align: center; justify-content: center; margin: 0; }
.hmag-header--side .hmag-header__main { align-items: center; }
.hmag-header--side .hmag-header__actions { margin: 4px 0 0; justify-content: center; }
.hmag-align--center .hmag-header--top { justify-content: center; text-align: center; }
.hmag-align--center .hmag-header--top .hmag-header__actions { margin-left: 0; }

.hmag-split { display: grid; grid-template-columns: 1fr; gap: var(--hmag-gap); align-items: center; }
.hmag-split .hmag-header--side { margin-bottom: 4px; }
@container hmag (min-width: 700px) {
	.hmag-split { grid-template-columns: 210px minmax(0, 1fr); }
	.hmag-split .hmag-header--side { margin: 0; }
	.hmag-split--sticky { align-items: start; }
	.hmag-split--sticky .hmag-header--side { position: sticky; top: 24px; }
}

/* Répartition des notes */
.hmag-dist { display: grid; gap: 3px; min-width: 200px; flex: 1 1 220px; max-width: 360px; font-size: .85em; }
.hmag-dist__row { display: grid; grid-template-columns: 2.4em 1fr 2.6em; align-items: center; gap: 8px; }
.hmag-dist__star { display: inline-flex; align-items: center; gap: 2px; color: var(--hmag-muted); }
.hmag-dist__icon { fill: var(--hmag-star); width: .9em; height: .9em; }
.hmag-dist__bar { height: 8px; border-radius: 99px; background: var(--hmag-star-off); overflow: hidden; }
.hmag-dist__bar span { display: block; height: 100%; background: var(--hmag-star); border-radius: inherit; }
.hmag-dist__n { color: var(--hmag-muted); text-align: right; }

/* ---------- Carte d'avis ---------- */
.hmag-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	background: var(--hmag-card); border: var(--hmag-card-bw, 1px) solid var(--hmag-border); border-radius: var(--hmag-radius);
	padding: var(--hmag-pad); box-shadow: var(--hmag-shadow); min-width: 0;
	transition: box-shadow .2s, transform .2s;
}
.hmag-hover .hmag-card:hover { box-shadow: var(--hmag-shadow-hover); transform: translateY(-2px); }
.hmag-card.is-pinned { border-color: color-mix(in srgb, var(--hmag-accent) 45%, transparent); }
.hmag-card__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hmag-card__head--center { flex-direction: column; text-align: center; gap: 8px; }
.hmag-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hmag-card__head--center .hmag-card__who { align-items: center; flex: none; }
.hmag-card__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmag-card__name a:hover { text-decoration: underline; }
.hmag-date { color: var(--hmag-muted); font-size: .82em; }
.hmag-card__platform { margin-left: auto; flex: 0 0 auto; align-self: flex-start; }
.hmag-card__platform-bottom { text-align: center; margin-top: auto; }
.hmag-card__stars { display: flex; align-items: center; gap: 6px; }
.hmag-card--big .hmag-card__stars, .hmag-card--quote .hmag-card__stars { justify-content: center; }
.hmag-verified { display: inline-flex; color: var(--hmag-accent); }
.hmag-verified .hmag-icon { width: 1em; height: 1em; }

.hmag-card__text { position: relative; overflow-wrap: anywhere; }
.hmag-text--readmore .hmag-card__text:not(.is-open) .hmag-card__content,
.hmag-text--popup .hmag-card__text .hmag-card__content {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--hmag-lines); line-clamp: var(--hmag-lines); overflow: hidden;
}
.hmag-modal .hmag-card__text .hmag-card__content { display: block !important; -webkit-line-clamp: unset !important; }
.hmag-text--scroll .hmag-card__text { max-height: calc(var(--hmag-lines) * 1.55em); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.hmag-card--big .hmag-card__text, .hmag-card--quote .hmag-card__text { text-align: center; }
.hmag-card--quote { border: 0; background: transparent; box-shadow: none !important; transform: none !important; }
.hmag-card--quote .hmag-card__content { font-size: 1.15em; font-style: italic; }
.hmag-card--quote .hmag-card__content::before { content: "“"; } .hmag-card--quote .hmag-card__content::after { content: "”"; }
.hmag-readmore, .hmag-translate { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--hmag-accent) !important; font-weight: 600; font-size: .88em; }
.hmag-card--big .hmag-readmore, .hmag-card--quote .hmag-readmore { align-self: center; }
.hmag-readmore:hover, .hmag-translate:hover { text-decoration: underline; }
.hmag-hl { background: color-mix(in srgb, var(--hmag-star) 35%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }

.hmag-reply { border-left: 3px solid var(--hmag-accent); padding: 6px 0 6px 12px; font-size: .9em; color: var(--hmag-muted); }
.hmag-reply__title { font-weight: 700; color: var(--hmag-text); margin-bottom: 2px; }

/* Avatars */
.hmag-avatar {
	flex: 0 0 auto; width: var(--hmag-photo, 44px); height: var(--hmag-photo, 44px); border-radius: var(--hmag-photo-r, 50%);
	border: var(--hmag-photo-bw, 0) solid var(--hmag-photo-bc, transparent); overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; background: #e8eaed; font-size: calc(var(--hmag-photo, 44px) * .4);
}
.hmag-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmag-avatar--lg { width: calc(var(--hmag-photo, 44px) * 1.64); height: calc(var(--hmag-photo, 44px) * 1.64); font-size: calc(var(--hmag-photo, 44px) * .64); }
.hmag-avatar--initial { background: hsl(var(--hmag-h, 210) 55% 46%); color: #fff; font-weight: 700; }

/* ---------- Slider ---------- */
.hmag-slider { position: relative; min-width: 0; }
.hmag-track {
	display: flex; gap: var(--hmag-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px -14px; overscroll-behavior-x: contain;
}
.hmag-track::-webkit-scrollbar { display: none; }
.hmag-track > .hmag-card { flex: 0 0 calc((100% - (var(--hmag-cols) - 1) * var(--hmag-gap)) / var(--hmag-cols)); scroll-snap-align: start; }
.hmag--slider-quote .hmag-track > .hmag-card { flex-basis: 100%; }
.hmag--slider-quote { --hmag-cols-d: 1; --hmag-cols-t: 1; }
.hmag-nav {
	position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
	border: 1px solid var(--hmag-border); background: var(--hmag-card); box-shadow: 0 2px 10px rgba(0,0,0,.12);
	display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: opacity .2s, transform .2s;
}
.hmag-theme--minimal .hmag-nav, .hmag-theme--light-card .hmag-nav { background: #fff; border-color: #e3e5e8; color: #1f2328; }
.hmag-nav .hmag-icon { width: 22px; height: 22px; }
.hmag-nav:hover { transform: scale(1.08); }
.hmag-slider:has(.hmag-nav) { padding: 0 26px; }
.hmag-nav--prev { left: -6px; } .hmag-nav--next { right: -6px; }
.hmag-nav[disabled] { opacity: 0; pointer-events: none; }
@container hmag (max-width: 559px) { .hmag-slider:has(.hmag-nav) { padding: 0 20px; } .hmag-nav { width: 34px; height: 34px; margin-top: -17px; } .hmag-nav--prev { left: -8px; } .hmag-nav--next { right: -8px; } }
.hmag-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.hmag-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--hmag-star-off); transition: width .2s, background .2s; }
.hmag-dots button.is-active { width: 22px; background: var(--hmag-accent); }

/* ---------- Grille / mosaïque / liste ---------- */
.hmag-grid { display: grid; gap: var(--hmag-gap); grid-template-columns: repeat(var(--hmag-cols), minmax(0, 1fr)); }
.hmag-masonry { column-count: var(--hmag-cols); column-gap: var(--hmag-gap); }
.hmag-masonry > .hmag-card { break-inside: avoid; margin-bottom: var(--hmag-gap); }
.hmag-list, .hmag-stack { display: flex; flex-direction: column; gap: var(--hmag-gap); }
.hmag-theme--minimal .hmag-list > .hmag-card { border-bottom: 1px solid var(--hmag-border); border-radius: 0; padding: 16px 0; --hmag-border: rgba(127,127,127,.2); border-top: 0; border-left: 0; border-right: 0; }
.hmag-more-wrap { text-align: center; margin-top: calc(var(--hmag-gap) + 4px); }
.hmag [hidden] { display: none !important; }

/* ---------- Barre latérale ---------- */
.hmag--sidebar .hmag-badge--sidebar { margin-bottom: var(--hmag-gap); }
.hmag-vslider { position: relative; display: grid; }
.hmag-vslider > .hmag-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s, transform .5s, visibility .5s; }
.hmag-vslider > .hmag-card.is-active { opacity: 1; visibility: visible; transform: none; }
.hmag-card--compact { gap: 8px; }
.hmag-card--compact .hmag-avatar { width: calc(var(--hmag-photo, 44px) * .82); height: calc(var(--hmag-photo, 44px) * .82); }
.hmag-cardborder--none .hmag-card, .hmag-cardborder--none .hmag-badge, .hmag-cardborder--none .hmag-button { border-color: transparent !important; }

/* ---------- Badges ---------- */
.hmag-badge {
	display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px;
	background: var(--hmag-card); border: var(--hmag-card-bw, 1px) solid var(--hmag-border); border-radius: var(--hmag-radius);
	box-shadow: var(--hmag-shadow); text-align: center; transition: box-shadow .2s, transform .2s; max-width: 100%;
}
a.hmag-badge:hover { box-shadow: var(--hmag-shadow-hover); transform: translateY(-1px); }
.hmag-badge__row { display: inline-flex; align-items: center; gap: 8px; }
.hmag-badge__score { font-weight: 800; font-size: 1.5em; line-height: 1; }
.hmag-badge__row .hmag-stars { font-size: 1.2em; }
.hmag-badge__count { color: var(--hmag-muted); font-size: .85em; }
.hmag-badge__label { font-weight: 800; letter-spacing: .03em; }
.hmag-badge--compact { flex-direction: row; padding: 8px 14px; border-radius: 999px; gap: 8px; }
.hmag-badge--compact .hmag-badge__score { font-size: 1.1em; }
.hmag-badge--large { padding: 26px 36px; gap: 6px; }
.hmag-badge--large .hmag-badge__score { font-size: 2.2em; }
.hmag-badge--large .hmag-badge__row .hmag-stars { font-size: 1.6em; }
.hmag-badge--sidebar { display: flex; width: 100%; }
.hmag-badge--certificate { position: relative; padding: 34px 26px 18px; gap: 6px; border: 2px solid color-mix(in srgb, var(--hmag-star) 70%, transparent); min-width: 210px; }
.hmag-cert__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--hmag-star); color: #1f2328; font-weight: 800; font-size: .78em; padding: 4px 14px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.hmag-cert__name { font-weight: 700; }
.hmag-cert__score { font-weight: 800; font-size: 1.4em; }
.hmag-cert__count { color: var(--hmag-muted); font-size: .85em; }
.hmag-badge--certificate .hmag-stars { font-size: 1.35em; }
.hmag--badge, .hmag--button { display: block; }
.hmag-align--center.hmag--badge, .hmag-align--center.hmag--button { text-align: center; }
.hmag-align--right.hmag--badge, .hmag-align--right.hmag--button { text-align: right; }

/* ---------- Boutons note ---------- */
.hmag-button {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--hmag-radius);
	background: var(--hmag-card); border: var(--hmag-card-bw, 1px) solid var(--hmag-border); box-shadow: var(--hmag-shadow);
	transition: box-shadow .2s, transform .2s; line-height: 1.2;
}
.hmag-button:hover { box-shadow: var(--hmag-shadow-hover); transform: translateY(-1px); }
.hmag-button__score { font-weight: 800; font-size: 1.1em; }
.hmag-button__count { color: var(--hmag-muted); font-size: .88em; }
.hmag-button--pill { border-radius: 999px; padding: 6px 14px; }
.hmag-button--write { background: var(--hmag-accent); color: #fff !important; border-color: var(--hmag-accent); font-weight: 700; }
.hmag-button--write .hmag-platform { color: rgba(255,255,255,.85); }
.hmag-button--write .hmag-stars { --hmag-star: #fff; --hmag-star-off: rgba(255,255,255,.3); }

/* ---------- Flottant ---------- */
.hmag--floating { position: fixed; z-index: 99990; bottom: var(--hmag-oy, 20px); right: var(--hmag-ox, 20px); }
.hmag--floating-left { right: auto; left: var(--hmag-ox, 20px); }
.hmag-float {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--hmag-border);
	background: var(--hmag-card); box-shadow: 0 8px 28px rgba(0,0,0,.18); line-height: 1.2;
}
.hmag-float__score { font-weight: 800; }
.hmag-float__count { color: var(--hmag-muted); font-size: .85em; }
.hmag-panel {
	position: absolute; bottom: calc(100% + 12px); right: 0; width: min(400px, calc(100vw - 2 * var(--hmag-ox, 20px)));
	max-height: min(640px, 75vh); overflow-y: auto; padding: 22px; border-radius: calc(var(--hmag-radius) + 4px);
	background: var(--hmag-card); color: var(--hmag-text); box-shadow: 0 18px 50px rgba(0,0,0,.25); border: 1px solid var(--hmag-border);
	--hmag-shadow: none; --hmag-pad: 14px; overscroll-behavior: contain;
}
.hmag-theme--minimal .hmag-panel, .hmag-theme--light-card .hmag-panel { background: #fff; }
.hmag--floating-left .hmag-panel { right: auto; left: 0; }
.hmag-panel .hmag-card { border: 1px solid var(--hmag-border); }
.hmag-theme--light-card .hmag-panel .hmag-card { --hmag-border: #eceef1; }
.hmag-panel__close, .hmag-modal__close, .hmag-fomo__close {
	position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: rgba(127,127,127,.12); display: inline-flex; align-items: center; justify-content: center; padding: 0; z-index: 2;
}
.hmag-panel .hmag-header { padding-right: 34px; }

/* ---------- FOMO ---------- */
.hmag--fomo { position: fixed; z-index: 99989; bottom: var(--hmag-oy, 20px); left: var(--hmag-ox, 20px); width: min(360px, calc(100vw - 2 * var(--hmag-ox, 20px))); pointer-events: none; }
.hmag--fomo-right { left: auto; right: var(--hmag-ox, 20px); }
.hmag-fomo__box { position: relative; pointer-events: auto; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s; visibility: hidden; }
.hmag-fomo__box.is-visible { opacity: 1; transform: none; visibility: visible; }
.hmag-fomo__item { display: flex; gap: 12px; padding: 14px 40px 14px 14px; background: var(--hmag-card); border: 1px solid var(--hmag-border); border-radius: var(--hmag-radius); box-shadow: 0 10px 34px rgba(0,0,0,.18); font-size: .9em; }
.hmag-theme--minimal .hmag-fomo__item { background: #fff; }
.hmag-fomo__who { line-height: 1.3; }
.hmag-fomo__text { color: var(--hmag-muted); margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hmag-fomo__meta { color: var(--hmag-muted); font-size: .8em; margin-top: 4px; }
.hmag-fomo__close { top: 6px; right: 6px; width: 26px; height: 26px; background: transparent; }

/* ---------- Modale ---------- */
.hmag-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 18, 22, .55); animation: hmag-fade .2s; }
.hmag-modal__dialog {
	position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px;
	border-radius: calc(var(--hmag-radius) + 4px); background: var(--hmag-card); color: var(--hmag-text); box-shadow: 0 24px 70px rgba(0,0,0,.35);
	--hmag-shadow: none;
}
.hmag-theme--minimal .hmag-modal__dialog, .hmag-theme--light-card .hmag-modal__dialog { background: #fff; }
.hmag-modal__dialog > .hmag-card { box-shadow: none; border: 0; padding: 0; transform: none; }
.hmag-modal .hmag-header { padding-right: 34px; }
.hmag-modal .hmag-card { border: 1px solid var(--hmag-border); }
.hmag-theme--light-card .hmag-modal .hmag-card { --hmag-border: #eceef1; }
@keyframes hmag-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Divers ---------- */
.hmag-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: calc(var(--hmag-gap) + 2px); color: var(--hmag-muted); font-size: .8em; }
.hmag-empty { padding: 18px; text-align: center; color: var(--hmag-muted); border: 1px dashed var(--hmag-border); border-radius: var(--hmag-radius); }
.hmag-admin-error { color: #b32d2e; }
.hmag-anim .hmag-card { animation: hmag-in .45s both; }
@keyframes hmag-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hmag *, .hmag *::before, .hmag *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 600px) { .hmag-hide-mobile { display: none !important; } }
.hmag :focus-visible { outline: 2px solid var(--hmag-accent); outline-offset: 2px; }

/* Éditeur de blocs : les widgets fixes s'affichent dans le flux */
.hmag-in-editor.hmag--floating, .hmag-in-editor.hmag--fomo { position: relative; inset: auto; }
.hmag-in-editor .hmag-fomo__box { opacity: 1; visibility: visible; transform: none; }
.hmag-in-editor .hmag-fomo__item:first-of-type { display: flex !important; }
.hmag-channel { display: inline-block; font-size: .72em; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--hmag-muted); border: 1px solid var(--hmag-border); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.hmag-theme--light-card .hmag-channel, .hmag-theme--soft .hmag-channel, .hmag-theme--minimal .hmag-channel { border-color: color-mix(in srgb, var(--hmag-muted) 30%, transparent); }
