/* =====================================================================
   Accueil v3 — onglets : Communication · Mon tableau de bord
   Préfixe hm-. Les cartes des widgets existants (dx-card) gardent leur style.
   ===================================================================== */
.hm { max-width: 1320px; margin: 0 auto; padding: 4px 4px 40px; display: flex; flex-direction: column; gap: 16px; }
.hm [hidden] { display: none !important; }

/* En-tête : une seule ligne, le plus compact possible */
.hm { gap: 12px; padding-top: 0; }
.hm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 0 2px; }
.hm-head__who { min-width: 0; display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.hm-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--duo-muted); }
body.duo-v2 .hm-head h1 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; }
.hm-head h1 em { font-style: normal; color: var(--duo-orange); }
.hm-head__clock { margin-left: auto; }
.hm-head__clock .duo-bigclock__row { justify-content: flex-end; gap: 10px; }
.hm-head__clock #duo-clock { font-size: 1.35rem !important; }

/* Alertes : une ligne discrète */
.hm-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 6px 14px; border-radius: 999px; font-size: .82rem;
  background: color-mix(in srgb, var(--duo-orange) 11%, var(--duo-surface)); border: 1px solid color-mix(in srgb, var(--duo-orange) 32%, transparent); }
.hm-alerts__ico { display: inline-flex; color: var(--duo-orange); } .hm-alerts__ico svg { width: 17px; height: 17px; }
.hm-alert { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--duo-heading) !important; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--duo-orange) 55%, transparent); text-underline-offset: 3px; }
.hm-alert:hover { color: var(--duo-orange) !important; }

.hm-customize { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--duo-border); background: var(--duo-surface);
  font: inherit; font-size: .84rem; font-weight: 700; color: var(--duo-label); cursor: pointer; }
.hm-customize svg { width: 16px; height: 16px; color: var(--duo-orange); }
.hm-customize:hover, .hm-customize.is-active { border-color: var(--duo-orange); }

.hm-panel { display: block; }

/* Édito : en grand */
.hm-edito { min-width: 0; }
.hm-edito .duo-edito-rich { min-height: 0; }
body.duo-v2 .hm-edito #edito-wrapper { min-height: 0; max-height: none; overflow: hidden; }
body.duo-v2 .hm-edito .edito-content { min-height: 0; max-height: none; display: block; background: var(--duo-surface); }
body.duo-v2 .hm-edito .edito-content img, body.duo-v2 .hm-edito .edito-content video { width: 100%; height: auto; max-height: none; object-fit: contain; display: block; }
.hm-edito__all { display: block; margin-top: 8px; text-align: right; font-size: .82rem; font-weight: 700; color: var(--duo-orange) !important; }

.hm-cell .dx-card { margin: 0; }

.hm-card { padding: 16px; background: var(--duo-surface); border: 1px solid var(--duo-border); border-radius: var(--duo-radius); box-shadow: var(--duo-shadow-sm); min-width: 0; }
.hm-h { margin: 0 0 10px; font-size: .74rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--duo-muted); display: flex; align-items: center; gap: 8px; }
.hm-h svg { width: 16px; height: 16px; color: var(--duo-orange); }
.hm-muted { margin: 0; color: var(--duo-muted); font-size: .86rem; }
.hm-link { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--duo-orange) !important; }
.hm-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; align-items: center; justify-content: center; font-size: .68rem; background: var(--duo-orange); color: #fff; letter-spacing: 0; }

/* Tuiles d'indicateurs (carte « Mes indicateurs de travail ») */
.hm-tiles { display: flex; flex-direction: column; gap: 6px; }
.hm-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--duo-plum-50); color: var(--duo-text) !important;
  font: inherit; text-align: left; cursor: pointer; text-decoration: none; transition: border-color .2s; }
a.hm-tile:hover, button.hm-tile:hover { border-color: var(--duo-orange); }
.hm-tile__ico { flex: none; display: inline-flex; width: 32px; height: 32px; border-radius: 10px; align-items: center; justify-content: center; background: var(--duo-surface); color: var(--duo-plum); }
.hm-tile__ico svg { width: 17px; height: 17px; }
.hm-tile__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hm-tile__txt strong { font-family: var(--duo-font-display); font-size: 1.15rem; }
.hm-tile__txt small { font-size: .74rem; color: var(--duo-muted); }
.hm-tile--hot { background: color-mix(in srgb, var(--duo-orange) 14%, var(--duo-surface)); }
.hm-tile--hot .hm-tile__ico { background: var(--duo-orange); color: #fff; }
.hm-tile--hot .hm-tile__txt strong { color: var(--duo-orange); }

/* Composer : une ligne au repos */
.hm-compose { padding: 0; overflow: hidden; }
.hm-compose__prompt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: text; color: var(--duo-muted); }
.hm-compose__hint { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; background: var(--duo-plum-50); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-compose__prompt:hover .hm-compose__hint { background: color-mix(in srgb, var(--duo-orange) 10%, var(--duo-plum-50)); }
.hm-compose__icons { display: flex; gap: 10px; color: var(--duo-orange); }
.hm-compose__icons svg { width: 18px; height: 18px; }
.hm-compose__tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--duo-border); }
.hm-compose__tabs button, .hm-compose__tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: .84rem; font-weight: 650; color: var(--duo-muted) !important; cursor: pointer; margin-bottom: -1px; }
.hm-compose__tabs svg { width: 16px; height: 16px; }
.hm-compose__tabs button:hover, .hm-compose__tabs a:hover { color: var(--duo-heading) !important; }
.hm-compose__tabs .is-active { color: var(--duo-heading) !important; border-bottom-color: var(--duo-orange); }
.hm-compose__close { margin-left: auto; font-size: 1.3rem !important; line-height: 1; padding: 6px 12px !important; }
.hm-compose__body { padding: 14px 16px 16px; }
.hm-compose form { display: flex; flex-direction: column; gap: 8px; }
.hm-compose input, .hm-compose textarea, .hm-compose select { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--duo-border); background: var(--duo-plum-50); color: var(--duo-text); font: inherit; font-size: .92rem; }
.hm-compose input:focus, .hm-compose textarea:focus, .hm-compose select:focus { outline: 2px solid var(--duo-orange); outline-offset: 1px; background: var(--duo-surface); }
.hm-compose__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hm-compose__foot label { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; color: var(--duo-muted); }
.hm-compose__foot select { width: auto; padding: 7px 10px; }

/* Filtres */
.hm-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-filters button { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--duo-border); background: var(--duo-surface); font: inherit; font-size: .82rem; font-weight: 650; color: var(--duo-muted); cursor: pointer; transition: all .2s; }
.hm-filters button:hover { border-color: var(--duo-orange); color: var(--duo-heading); }
.hm-filters button.is-active { background: var(--duo-plum-900); border-color: var(--duo-plum-900); color: #fff; }

/* Flux : deux colonnes de cartes, façon mur */
.hm-stream { column-width: 330px; column-gap: 14px; }
.hm-fil { display: flex; flex-direction: column; gap: 14px; }
.hm-post { position: relative; display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; background: var(--duo-surface); border: 1px solid var(--duo-border); border-radius: var(--duo-radius); box-shadow: var(--duo-shadow-sm); min-width: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.hm-post:hover { box-shadow: var(--duo-shadow); transform: translateY(-2px); }
.hm-post__body { padding: 16px 18px 12px 22px; position: relative; }
.hm-post__body::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--duo-plum)); }
.hm-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hm-post header > div { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.35; }
.hm-post__verb { color: var(--duo-muted); }
.hm-post header small { display: block; font-size: .72rem; color: var(--duo-muted); }
.hm-post__ico { flex: none; display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--duo-surface)); }
.hm-post__ico svg { width: 15px; height: 15px; }
.hm-post__anon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--duo-plum-50); color: var(--duo-muted); }
.hm-post h3 { margin: 0 0 4px; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.hm-post h3 a { color: var(--duo-heading) !important; }
.hm-post h3 a:hover { color: var(--c) !important; }
.hm-post p { margin: 0 0 8px; font-size: .9rem; line-height: 1.55; color: var(--duo-text); overflow-wrap: anywhere; }
.hm-post__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hm-chip { padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; background: var(--duo-plum-50); color: var(--duo-label); }
.hm-post footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--duo-border); }
.hm-post__cta { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--c, var(--duo-orange)) !important; white-space: nowrap; }
.hm-post--img .hm-post__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--duo-plum-50); }
.hm-post--img .hm-post__img img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s; }
.hm-post--img:hover .hm-post__img img { transform: scale(1.04); }

/* Question */
.hm-post--q { padding: 16px 18px; }
.hm-q__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hm-q__count { flex: none; width: 58px; padding: 7px 0; border-radius: 12px; text-align: center; background: var(--duo-plum-50); color: var(--duo-plum) !important; line-height: 1.05; }
.hm-q__count b { display: block; font-family: var(--duo-font-display); font-size: 1.5rem; }
.hm-q__count small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hm-q__count--zero { background: color-mix(in srgb, var(--duo-orange) 16%, var(--duo-surface)); color: var(--duo-orange) !important; }
.hm-q__count--ok { background: color-mix(in srgb, #1f9d6b 16%, var(--duo-surface)); color: #1f9d6b !important; }
.hm-q__who { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--duo-muted); line-height: 1.3; }
.hm-q__who .com-avatar { width: 22px; height: 22px; }
.hm-post--q h3 { margin: 0 0 4px; }
.hm-q__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Merci */
.hm-post--merci { padding: 18px 20px; background: color-mix(in srgb, #1f9d6b 9%, var(--duo-surface)); border-color: color-mix(in srgb, #1f9d6b 28%, var(--duo-border)); }
.hm-merci__duo { display: flex; align-items: center; margin-bottom: 10px; }
.hm-merci__duo .com-avatar { border: 3px solid var(--duo-surface); }
.hm-merci__heart { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; margin: 0 -8px; z-index: 1; background: #1f9d6b; color: #fff; }
.hm-merci__heart svg { width: 14px; height: 14px; }
.hm-post--merci p { margin: 0 0 6px; font-family: var(--duo-font-display); font-size: 1.04rem; line-height: 1.4; }
.hm-post--merci small { font-size: .74rem; color: var(--duo-muted); }

/* Arrivée */
.hm-post--new { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; background: color-mix(in srgb, #c4935a 10%, var(--duo-surface)); border-color: color-mix(in srgb, #c4935a 30%, var(--duo-border)); --c: #a9783d; }
.hm-post--new > div { flex: 1; min-width: 140px; display: flex; flex-direction: column; line-height: 1.3; }
.hm-new__eyebrow { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a9783d; }
.hm-post--new strong { font-family: var(--duo-font-display); font-size: 1rem; }
.hm-post--new small { font-size: .76rem; color: var(--duo-muted); }

/* Réactions : « J'aime » au repos */
.hm-post .com-react { gap: 4px; }
.hm-post .com-react__btn { height: 28px; padding: 0 9px; }
.hm-post .com-react__btn:not(.has-count):not([data-emoji="👍"]) { display: none; }
.hm-post .com-react:hover .com-react__btn, .hm-post .com-react:focus-within .com-react__btn { display: inline-flex; }

.hm-more { align-self: center; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--duo-border); background: var(--duo-surface); font: inherit; font-weight: 650; color: var(--duo-label); cursor: pointer; }
.hm-more:hover { border-color: var(--duo-orange); }
.hm-empty-filter { column-span: all; text-align: center; color: var(--duo-muted); padding: 24px 0; margin: 0; }
.hm-empty { text-align: center; padding: 36px 24px; color: var(--duo-muted); column-span: all; }
.hm-empty svg { width: 32px; height: 32px; color: var(--duo-orange); }
.hm-empty h3 { margin: 10px 0 4px; color: var(--duo-heading); }

/* Listes des cartes (coup de main, wiki, veille…) */
.hm-help ul { list-style: none; margin: 0; padding: 0; }
.hm-help li a { display: block; padding: 8px 0; border-top: 1px solid var(--duo-border); color: var(--duo-text) !important; }
.hm-help li:first-child a { border-top: 0; padding-top: 0; }
.hm-help li strong { display: block; font-size: .88rem; line-height: 1.35; }
.hm-help li small { font-size: .74rem; color: var(--duo-muted); }
.hm-mini-merci { padding: 9px 12px; margin-bottom: 8px; border-radius: 12px; background: color-mix(in srgb, #1f9d6b 10%, var(--duo-surface)); }
.hm-mini-merci p { margin: 0 0 2px; font-size: .86rem; line-height: 1.4; }
.hm-mini-merci small { font-size: .74rem; color: var(--duo-muted); }
.hm-right .duo-today__row { padding: 8px 10px; }
.hm-right .dx-card__body { gap: 8px; }

/* Mon tableau de bord : grille de cartes à 3 colonnes */
.hm-dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 8px; grid-auto-flow: row dense; column-gap: 16px; row-gap: 0; align-items: start; }
.hm-cell { position: relative; min-width: 0; align-self: start; }
.hm-cell--2 { grid-column: span 2; }
.hm-cell--3 { grid-column: 1 / -1; }
.hm-cell__body > * { margin: 0; }
.hm-cell__body > .hm-card, .hm-cell__body > .dx-card { height: auto; }
.hm-cell__bar { display: none; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px 12px 0 0; background: var(--duo-plum-900); color: #fff; font-size: .78rem; font-weight: 700; }
.hm-cell__grip { display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 0; cursor: grab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cell__grip svg { width: 14px; height: 14px; }
.hm-cell__bar button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hm-cell__bar button:hover { background: var(--duo-orange); }
.hm-cell__bar button svg { width: 14px; height: 14px; }
.hm-dash.is-editing .hm-cell { outline: 2px dashed color-mix(in srgb, var(--duo-plum) 45%, transparent); outline-offset: 4px; border-radius: 14px; }
.hm-dash.is-editing .hm-cell__bar { display: flex; }
.hm-dash.is-editing .hm-cell__body { pointer-events: none; opacity: .82; }
.hm-cell.is-drag { opacity: .4; }
.hm-empty--perso { grid-column: 1 / -1; }

.hm-edit { padding: 16px; border-radius: var(--duo-radius); border: 1px dashed var(--duo-plum-300); background: var(--duo-plum-50); display: flex; flex-direction: column; gap: 14px; }
.hm-edit__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hm-edit__head > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.hm-edit__head span { font-size: .82rem; color: var(--duo-muted); }
.hm-edit__add { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hm-edit__add button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--duo-border); background: var(--duo-surface); font: inherit; text-align: left; color: var(--duo-text); cursor: pointer; }
.hm-edit__add button:hover { border-color: var(--duo-orange); }
.hm-edit__add button > svg { flex: none; width: 20px; height: 20px; color: var(--duo-orange); }
.hm-edit__add button span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hm-edit__add strong { font-size: .86rem; }
.hm-edit__add small { font-size: .72rem; color: var(--duo-muted); }
.hm-edit__add i { font-style: normal; font-weight: 800; font-size: 1.2rem; color: var(--duo-orange); }

@media (max-width: 1100px) {
  .hm-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-cell--3 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hm-dash { grid-template-columns: minmax(0, 1fr); }
  .hm-cell--2, .hm-cell--3 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .hm-post, .hm-post__img img, .hm-filters button { transition: none; } }

/* Cybersécurité dans le menu du compte (photo en haut à droite) */
.duo-cymenu { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 6px; }
.duo-cymenu__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--duo-border); background: var(--duo-plum-50);
  font: inherit; text-align: left; color: var(--duo-text) !important; cursor: pointer; text-decoration: none; transition: border-color .2s; }
.duo-cymenu__row:hover { border-color: var(--duo-orange); }
.duo-cymenu__row .duo-nutri { flex: none; transform: scale(.82); transform-origin: left center; margin-right: -12px; }
.duo-cymenu__row span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.duo-cymenu__row strong { font-size: .84rem; }
.duo-cymenu__row small { font-size: .74rem; color: var(--duo-muted); }
.duo-cymenu__row.is-hot { background: color-mix(in srgb, var(--duo-orange) 14%, var(--duo-surface)); border-color: color-mix(in srgb, var(--duo-orange) 45%, transparent); }
.duo-cymenu__row.is-hot small { color: var(--duo-orange); font-weight: 650; }
.duo-top-avatar { position: relative; }
.duo-top-avatar.has-alert::after { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--duo-orange); box-shadow: 0 0 0 2px var(--duo-surface); }

/* Corrections de lisibilité : horloge et météo sur fond clair, espaces des titres en police d'affichage */
.hm-head__clock #duo-clock { background: none !important; color: var(--duo-heading) !important; -webkit-text-fill-color: currentColor !important; letter-spacing: -.03em; }
.hm-head__clock { letter-spacing: normal; }
.hm-head__clock .duo-wx-mini { background: var(--duo-surface) !important; border: 1px solid var(--duo-border); color: var(--duo-heading) !important; box-shadow: var(--duo-shadow-sm); }
.hm-head__clock .duo-wx-mini:hover, .hm-head__clock .duo-wx-mini.is-open { border-color: var(--duo-orange); }
.hm h1, .hm h2, .hm h3, .hm-post--merci p, .hm-post--new strong, .hm-tile__txt strong, .hm-q__count b { word-spacing: .16em; }

.hm-cell__body > .hm-edito, .hm-cell__body > .hm-compose { margin: 0; }
.hm-cell--1 .hm-compose__hint { font-size: .84rem; }
.hm-cell--1 .hm-compose__icons { display: none; }

/* En-tête sur une seule ligne dès que la largeur le permet : le tableau de bord démarre au plus haut */
@media (min-width: 900px) {
  .hm-head { flex-wrap: nowrap; }
  .hm-head__who { flex: 0 0 auto; }
  .hm-alerts { flex: 0 1 auto; min-width: 0; }
  .hm-head__clock { flex: 0 0 auto; }
  .hm-customize { flex: 0 0 auto; }
}
.hm-edito .top-banner { display: none; }
.hm #message_auto:not(:has(*)) { display: none; }
.hm-alerts { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 899px) { .hm-alerts { flex-wrap: wrap; white-space: normal; } }
@media (min-width: 900px) { .hm-alerts { flex: 0 0 auto; } }

/* Derniers tutoriels : vignettes confortables, défilement par flèches, hauteur maîtrisée */
.duo-tutos__wrap { position: relative; }
.hm-cell .duo-tutos__row { grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; padding: 14px 20px 18px; scroll-behavior: smooth; }
.hm-cell--1 .duo-tutos__row { grid-auto-columns: 88%; }
.hm-cell--2 .duo-tutos__row { grid-auto-columns: calc((100% - 14px) / 2); }
.hm-cell--3 .duo-tutos__row { grid-auto-columns: calc((100% - 42px) / 4); }
.hm-cell .duo-tuto { gap: 8px; }
.hm-cell .duo-tuto__img { border-radius: 14px; aspect-ratio: 16 / 9; }
.hm-cell .duo-tuto__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.hm-cell .duo-tuto__play svg { width: 22px; height: 22px; }
.hm-cell .duo-tuto__cat { left: 10px; bottom: 10px; padding: 2px 9px; font-size: .7rem; }
.hm-cell .duo-tuto strong { font-size: .92rem; line-height: 1.3; }
.hm-cell .duo-tuto small { font-size: .76rem; }
.hm-cell .duo-tutos .dx-card__head h3 { font-size: 1.1rem; }
.duo-tutos__nav { position: absolute; top: calc(14px + 50px); z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid var(--duo-border); background: var(--duo-surface);
  color: var(--duo-heading); font-size: 1.7rem; line-height: 1; padding: 0 0 4px; box-shadow: var(--duo-shadow); cursor: pointer; display: grid; place-items: center; transition: transform .2s, border-color .2s; }
.duo-tutos__nav:hover { border-color: var(--duo-orange); color: var(--duo-orange); transform: scale(1.08); }
.duo-tutos__nav[hidden] { display: none; }
.duo-tutos__nav--prev { left: 8px; } .duo-tutos__nav--next { right: 8px; }
@media (max-width: 1100px) { .hm-cell--3 .duo-tutos__row { grid-auto-columns: calc((100% - 28px) / 3); } }
@media (max-width: 700px) { .hm-cell .duo-tutos__row, .hm-cell--3 .duo-tutos__row, .hm-cell--2 .duo-tutos__row { grid-auto-columns: 78%; } .duo-tutos__nav { display: none; } }

/* Carte « Petites annonces » */
.hm-ann { list-style: none; margin: 0; padding: 0; }
.hm-ann li a { display: flex !important; align-items: center; gap: 12px; }
.hm-ann__img { flex: none; width: 54px; height: 54px; border-radius: 12px; overflow: hidden; display: block; }
.hm-ann__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-ann__img.is-vide { display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--duo-surface)); }
.hm-ann__img.is-vide svg { width: 24px; height: 24px; }
.hm-ann li span { min-width: 0; } .hm-ann li b { color: var(--duo-orange); }

/* Carte « Boîte à idées » */
.hm-idees { list-style: none; margin: 0; padding: 0; }
.hm-idees li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--duo-border); }
.hm-idees li:first-child { border-top: 0; padding-top: 0; }
.hm-idees__n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--duo-plum-50); color: var(--duo-label); }
.hm-idees__n b { font-family: var(--duo-font-display); font-size: 1.05rem; } .hm-idees__n.is-on { background: var(--duo-orange); color: #fff; }
.hm-idees a { display: flex !important; flex-direction: column; min-width: 0; padding: 0 !important; border: 0 !important; color: var(--duo-text) !important; }
.hm-idees a strong { font-size: .88rem; line-height: 1.3; } .hm-idees a small { font-size: .74rem; font-weight: 700; }

/* Carte « Mes badges » */
.hm-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.bd-medaille--s { width: 44px; height: 44px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, var(--duo-surface)); }
.bd-medaille { position: relative; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 62%); }
.bd-medaille svg { width: 46%; height: 46%; }
.hm-badges__next { margin: 6px 0 0; font-size: .84rem; color: var(--duo-muted); } .hm-badges__next strong { color: var(--duo-heading); }
