/* =====================================================================
   Extranet v2 — Espace Communication (Fil, astuces, forum, agenda, merci, studio)
   ===================================================================== */

/* ---------- Éléments communs ---------- */
.com-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--duo-plum-100); }
.com-muted { color: var(--duo-muted); font-size: .86rem; }
.com-back { display: inline-flex; margin-bottom: 12px; font-size: .84rem; font-weight: 600; }
.com-link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 .78rem var(--duo-font); color: var(--duo-link); }
.com-link-btn:hover { color: var(--duo-orange); text-decoration: underline; }
.com-link-btn--danger { color: var(--duo-danger); }
.com-mention { color: var(--duo-link); }
.com-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  color: var(--c, var(--duo-plum)) !important; background: color-mix(in srgb, var(--c, #5b3a6b) 12%, #fff); white-space: nowrap; }
.com-tag--soft { --c: #776b85; }
.com-tag--pin { --c: #d4561a; }
.com-tag--ok { --c: #1f9d6b; }
.com-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Barre d'outils (filtres, recherche, bouton publier) */
.com-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.com-toolbar__new { margin-left: auto; height: 40px; }
.com-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); }
.com-seg a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: .82rem; font-weight: 650; color: var(--duo-muted) !important; transition: background .2s, color .2s; }
.com-seg a svg { width: 15px; height: 15px; }
.com-seg a:hover { color: var(--duo-heading) !important; background: var(--duo-plum-50); }
.com-seg a.is-active { background: var(--duo-plum-900); color: #fff !important; }
.com-seg--sm a { height: 30px; font-size: .76rem; padding: 0 10px; }
.com-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.com-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--duo-surface); border: 1px solid var(--duo-border); color: var(--duo-label) !important; }
.com-chips a b { font-size: .68rem; padding: 0 6px; border-radius: 999px; background: var(--duo-plum-50); }
.com-chips a:hover { border-color: var(--duo-plum-300); }
.com-chips a.is-active { background: var(--duo-green); border-color: var(--duo-green); color: #fff !important; }
.com-chips a.is-active b { background: rgba(255,255,255,.25); }
.com-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 14px; background: var(--duo-surface); border: 1px solid var(--duo-border); min-width: 240px; flex: 0 1 320px; }
.com-search:focus-within { border-color: var(--duo-plum-400); box-shadow: 0 0 0 4px rgba(111,77,134,.12); }
.com-search svg { width: 17px; height: 17px; color: var(--duo-plum-400); flex-shrink: 0; }
body.duo-v2 .duo-content .com-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; min-height: 0; padding: 0 !important; background: transparent !important; }

/* États vides */
.com-empty { text-align: center; padding: 48px 20px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px dashed var(--duo-border-strong); }
.com-empty--sm { padding: 24px; border: 0; }
.com-empty__ico { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; font-size: 1.8rem; color: #fff; background: var(--duo-grad-brand); box-shadow: 0 14px 28px -12px rgba(235,107,36,.6); }
.com-empty__ico svg { width: 28px; height: 28px; }
.com-empty h3 { margin: 0 0 6px; }
.com-empty p { margin: 0 auto 16px; max-width: 460px; color: var(--duo-muted); }

/* ---------- Fil : grille de cartes ---------- */
.com-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.com-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border);
  box-shadow: var(--duo-shadow); color: var(--duo-text) !important; transition: transform .45s var(--duo-ease), box-shadow .45s; }
.com-card:hover { transform: translateY(-5px); box-shadow: var(--duo-shadow-lg); }
.com-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--duo-plum-50); }
.com-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--duo-ease); }
.com-card:hover .com-card__img img { transform: scale(1.05); }
.com-card__img--ph { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); }
.com-card__img--ph svg { width: 42px; height: 42px; opacity: .9; }
.com-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 14px; flex: 1; }
.com-card__title { font: 800 1.02rem/1.3 var(--duo-font-display); color: var(--duo-heading); }
.com-card__chapo { font-size: .86rem; color: var(--duo-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.com-card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: .74rem; color: var(--duo-muted); }
.com-card__stats { margin-left: auto; white-space: nowrap; }
.com-card--feature { grid-column: 1 / -1; flex-direction: row; min-height: 300px; }
.com-card--feature .com-card__img { flex: 0 0 55%; aspect-ratio: auto; }
.com-card--feature .com-card__body { padding: 26px 28px; justify-content: center; }
.com-card--feature .com-card__title { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.com-card--feature .com-card__chapo { font-size: .98rem; -webkit-line-clamp: 5; }
@media (max-width: 900px) { .com-card--feature { flex-direction: column; } .com-card--feature .com-card__img { aspect-ratio: 16 / 9; } }
.com-grid--astuces .com-card__img { aspect-ratio: 21 / 9; }
.com-pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.com-pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--duo-surface); border: 1px solid var(--duo-border); font-weight: 700; }
.com-pager a.is-active { background: var(--duo-plum-900); color: #fff !important; }

/* ---------- Article ---------- */
.com-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .com-article-layout { grid-template-columns: 1fr; } }
.com-article { background: var(--duo-surface); border-radius: var(--duo-radius-lg); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow); overflow: hidden; }
.com-article__cover { max-height: 440px; overflow: hidden; }
.com-article__cover img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block; }
.com-article__inner { max-width: 820px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 44px) 10px; }
body.duo-v2 .com-article__title { margin: 12px 0 10px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.com-article__chapo { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.55; color: var(--duo-muted); font-weight: 500; }
.com-article__author { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--duo-border); border-bottom: 1px solid var(--duo-border); margin-bottom: 24px; }
.com-article__author strong { display: block; }
.com-article__author span { font-size: .78rem; color: var(--duo-muted); }
.com-article__edit { margin-left: auto; height: 38px; font-size: .82rem; }
.com-prose { font-size: 1.02rem; line-height: 1.75; color: var(--duo-text); }
.com-prose > * + * { margin-top: 1em; }
.com-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.com-prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.com-prose img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: var(--duo-shadow); margin: 1.2em 0; }
.com-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--duo-orange); background: var(--duo-orange-100); border-radius: 0 14px 14px 0; font-style: italic; }
.com-prose pre { padding: 14px 16px; border-radius: 12px; background: var(--duo-plum-950); color: #f3e9ff; overflow-x: auto; font-size: .88rem; }
.com-prose a { text-decoration: underline; text-decoration-color: var(--duo-orange); text-underline-offset: 3px; }
.com-prose ul, .com-prose ol { padding-left: 1.4em; }
.com-prose li + li { margin-top: .3em; }
.com-article__react { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; padding: 14px 16px; border-radius: 16px; background: var(--duo-surface-2); border: 1px solid var(--duo-border); font-size: .84rem; font-weight: 600; color: var(--duo-muted); }

/* Réactions */
.com-react { display: flex; flex-wrap: wrap; gap: 6px; }
.com-react__btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--duo-border); background: var(--duo-surface); font-size: .95rem; transition: transform .25s var(--duo-spring), background .2s, border-color .2s; }
.com-react__btn b { font: 700 .74rem var(--duo-font); color: var(--duo-label); }
.com-react__btn:not(.has-count) b { display: none; }
.com-react__btn:not(.has-count) { opacity: .55; }
.com-react:hover .com-react__btn { opacity: 1; }
.com-react__btn:hover { transform: translateY(-2px) scale(1.08); border-color: var(--duo-plum-200); }
.com-react__btn.is-mine { background: var(--duo-orange-100); border-color: rgba(235,107,36,.5); opacity: 1; }
.com-react__btn.is-pop { animation: comPop .4s var(--duo-spring); }
@keyframes comPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Commentaires */
.com-comments { max-width: 820px; margin: 0 auto; padding: 10px clamp(20px, 4vw, 44px) 30px; }
.com-comments h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.com-comments h3 svg { width: 18px; height: 18px; color: var(--duo-plum-400); }
.com-comments h3 span { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--duo-plum-50); color: var(--duo-link); }
.com-comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--duo-border); }
.com-comment.is-new { animation: duoFadeUp .5s var(--duo-ease) both; }
.com-comment__body { flex: 1; min-width: 0; }
.com-comment__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--duo-muted); }
.com-comment__meta strong { color: var(--duo-heading); font-size: .86rem; }
.com-comment__meta .com-link-btn { margin-left: auto; opacity: 0; transition: opacity .2s; }
.com-comment:hover .com-link-btn { opacity: 1; }
.com-comment__text { margin-top: 4px; font-size: .92rem; overflow-wrap: anywhere; }
.com-comment-form { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.com-comment-form textarea { flex: 1; min-height: 46px !important; resize: vertical; }
.com-comment-form .dx-btn { height: 46px; }
.com-comment-form.is-busy { opacity: .6; pointer-events: none; }

/* Colonne « À lire aussi » */
.com-aside { position: sticky; top: calc(var(--duo-topbar-h) + 24px); }
.com-aside__list { display: flex; flex-direction: column; gap: 10px; }
.com-aside__list a { display: flex; gap: 10px; align-items: center; color: var(--duo-text) !important; padding: 6px; border-radius: 12px; transition: background .2s; }
.com-aside__list a:hover { background: var(--duo-plum-50); }
.com-aside__list img, .com-aside__ph { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.com-aside__ph { display: grid; place-items: center; color: #fff; background: var(--c); }
.com-aside__ph svg { width: 20px; height: 20px; }
.com-aside__list small { display: block; font-size: .68rem; color: var(--duo-muted); }
.com-aside__list strong { font-size: .84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Studio ---------- */
.studio-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.studio-new a { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); color: var(--duo-text) !important; transition: transform .35s var(--duo-spring); }
.studio-new a:hover { transform: translateY(-3px); }
.studio-new__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--c); box-shadow: 0 10px 20px -10px var(--c); }
.studio-new__ico svg { width: 20px; height: 20px; }
.studio-new strong { display: block; font-size: .92rem; }
.studio-new small { display: block; font-size: .74rem; color: var(--duo-muted); }
.studio-new__plus { width: 18px; height: 18px; margin-left: auto; color: var(--duo-plum-300); }
.studio-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.studio-kpis div { padding: 14px 16px; border-radius: 18px; background: var(--duo-plum-900); color: #fff; background-image: radial-gradient(circle at 100% 0, rgba(235,107,36,.35), transparent 60%); }
.studio-kpis strong { display: block; font: 800 1.6rem var(--duo-font-display); letter-spacing: -.03em; }
.studio-kpis span { font-size: .74rem; opacity: .75; }
@media (max-width: 900px) { .studio-kpis { grid-template-columns: repeat(2, 1fr); } }
.studio-list .dx-card__head { flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--duo-border); }
.studio-list .com-seg { margin-left: auto; }
.studio-rows { display: flex; flex-direction: column; }
.studio-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 100px 120px 150px; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--duo-border); color: var(--duo-text) !important; transition: background .2s; }
.studio-row:hover { background: var(--duo-plum-50); }
.studio-row__img { width: 64px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--c); }
.studio-row__img img { width: 100%; height: 100%; object-fit: cover; }
.studio-row__img svg { width: 18px; height: 18px; }
.studio-row__main strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-row__main small { font-size: .74rem; color: var(--duo-muted); }
.studio-row__date, .studio-row__stats { font-size: .76rem; color: var(--duo-muted); display: inline-flex; align-items: center; gap: 4px; }
.studio-row__stats svg { width: 14px; height: 14px; }
.studio-state { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.studio-state--live { background: var(--duo-green-100); color: var(--duo-green); }
.studio-state--plan { background: rgba(61,127,194,.15); color: #4f8fd6; }
.studio-state--draft { background: var(--duo-plum-50); color: var(--duo-muted); }
@media (max-width: 900px) { .studio-row { grid-template-columns: 56px 1fr; } .studio-row__date, .studio-row__stats, .studio-state { display: none; } }

/* Éditeur */
.studio-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .studio-editor { grid-template-columns: 1fr; } }
.studio-main { display: flex; flex-direction: column; gap: 12px; }
.studio-types { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-types label { cursor: pointer; }
.studio-types input { position: absolute; opacity: 0; pointer-events: none; }
.studio-types span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--duo-surface); border: 1.5px solid var(--duo-border); font-weight: 700; font-size: .86rem; transition: all .2s; }
.studio-types span svg { width: 16px; height: 16px; color: var(--c); }
.studio-types input:checked + span { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 10px 20px -10px var(--c); }
.studio-types input:checked + span svg { color: #fff; }
.studio-types input:focus-visible + span { outline: 2px solid var(--duo-orange); outline-offset: 2px; }
body.duo-v2 .duo-content .studio-title { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px 0 !important; min-height: 0;
  font: 800 clamp(1.6rem, 2.6vw, 2.2rem) var(--duo-font-display) !important; letter-spacing: -.03em; color: var(--duo-heading) !important; }
body.duo-v2 .duo-content .studio-chapo { width: 100%; min-height: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; resize: none; font-size: 1.06rem !important; color: var(--duo-muted) !important; }
.studio-quill { background: var(--duo-surface); border-radius: var(--duo-radius); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); overflow: hidden; }
body.duo-v2 .studio-quill .ql-toolbar { border: 0; border-bottom: 1px solid var(--duo-border); background: var(--duo-surface-2); position: sticky; top: 0; z-index: 2; }
body.duo-v2 .studio-quill .ql-container { border: 0; font: 1rem/1.7 var(--duo-font); min-height: 420px; }
body.duo-v2 .studio-quill .ql-editor { min-height: 420px; padding: 22px 26px; }
body.duo-v2 .studio-quill .ql-editor img { border-radius: 12px; }
.studio-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--duo-topbar-h) + 24px); }
.studio-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.studio-box h4 { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--duo-muted); }
.studio-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--duo-label); }
body.duo-v2 .duo-content .studio-field select, body.duo-v2 .duo-content .studio-field input, body.duo-v2 .duo-content .studio-input { width: 100%; }
.studio-hint { margin: 0; font-size: .74rem; color: var(--duo-muted); }
.studio-check { display: flex; align-items: center; gap: 8px; font-size: .84rem; cursor: pointer; }
.studio-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.studio-actions .dx-btn { width: 100%; }
.studio-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; cursor: pointer; overflow: hidden;
  background: var(--duo-plum-50) center / cover no-repeat; border: 2px dashed var(--duo-plum-200); transition: border-color .2s; }
.studio-cover:hover { border-color: var(--duo-orange); }
.studio-cover input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.studio-cover span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--duo-plum); box-shadow: var(--duo-shadow-sm); }
.studio-cover span svg { width: 15px; height: 15px; }
.studio-delete { margin-top: 12px; }

/* ---------- Forum ---------- */
.forum-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.forum-cat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1.5px solid var(--duo-border); color: var(--duo-text) !important; transition: border-color .2s, transform .3s var(--duo-spring); }
.forum-cat:hover { transform: translateY(-2px); }
.forum-cat.is-active { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.forum-cat__ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--c); }
.forum-cat__ico svg { width: 19px; height: 19px; }
.forum-cat strong { display: block; font-size: .9rem; }
.forum-cat small { display: block; font-size: .72rem; color: var(--duo-muted); line-height: 1.3; }
.forum-cat b { margin-left: auto; font: 800 1.2rem var(--duo-font-display); color: var(--c); }
.forum-stats { font-size: .76rem; color: var(--duo-muted); }
.forum-list { overflow: hidden; }
.forum-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 80px 60px 110px; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--duo-border); color: var(--duo-text) !important; transition: background .2s; }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: var(--duo-plum-50); }
.forum-row__main strong { display: block; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-row__main small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; color: var(--duo-muted); margin-top: 3px; }
.forum-row__num { text-align: center; font-size: .66rem; color: var(--duo-muted); }
.forum-row__num b { display: block; font: 800 1.05rem var(--duo-font-display); color: var(--duo-heading); }
.forum-row__num.is-zero b { color: var(--duo-orange); }
.forum-row__last { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: .72rem; color: var(--duo-muted); }
@media (max-width: 800px) { .forum-row { grid-template-columns: 36px 1fr 60px; } .forum-row__num:nth-of-type(2), .forum-row__last { display: none; } }

.forum-thread { max-width: 920px; }
.forum-post { position: relative; margin-bottom: 12px; padding: 18px 20px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); }
.forum-post--op { padding: 24px; box-shadow: var(--duo-shadow); }
body.duo-v2 .forum-post--op h1 { margin: 10px 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.forum-post.is-solution { border: 2px solid var(--duo-green); background: linear-gradient(0deg, var(--duo-surface), var(--duo-green-100)); }
.forum-solution { position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #fff; background: var(--duo-green); }
.forum-post__who { display: flex; align-items: center; gap: 10px; }
.forum-post__who strong { display: block; font-size: .9rem; }
.forum-post__who span { font-size: .74rem; color: var(--duo-muted); }
.forum-post__text { margin: 12px 0 14px; font-size: .96rem; line-height: 1.65; overflow-wrap: anywhere; }
.forum-post footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.forum-post__actions { display: flex; gap: 14px; margin-left: auto; }
.forum-post__actions form { margin: 0; }
.forum-count { margin: 20px 0 12px; font-size: .9rem; color: var(--duo-muted); }
.forum-reply { display: flex; gap: 12px; margin-top: 16px; padding: 16px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border); }
.forum-reply > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.forum-reply .dx-btn { align-self: flex-end; }
.forum-new { max-width: 920px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.forum-new h2 { margin: 0; }
.forum-new__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.forum-new__cats label { cursor: pointer; }
.forum-new__cats input { position: absolute; opacity: 0; }
.forum-new__cats span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px; border-radius: 14px; border: 1.5px solid var(--duo-border); transition: all .2s; }
.forum-new__cats span svg { width: 18px; height: 18px; color: var(--c); }
.forum-new__cats small { font-size: .72rem; color: var(--duo-muted); }
.forum-new__cats input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
body.duo-v2 .duo-content .forum-new__text { width: 100%; }
.forum-new__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Agenda ---------- */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .agenda { grid-template-columns: 1fr; } }
.agenda__main { padding: 16px; }
.agenda__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.agenda__head h2 { margin: 0 6px; font-size: 1.4rem; min-width: 170px; text-align: center; }
.agenda__head .duo-icon-btn { width: 38px; height: 38px; font-size: 1.3rem; color: var(--duo-link) !important; }
.agenda__head .dx-btn { height: 38px; font-size: .82rem; }
.agenda__legend { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; font-size: .72rem; color: var(--duo-muted); }
.agenda__legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 3px; background: var(--c); }
.agenda__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.agenda__dow { padding: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--duo-muted); text-align: center; }
.agenda__cell { min-height: 104px; padding: 6px; border-radius: 12px; background: var(--duo-surface-2); border: 1px solid var(--duo-border); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.agenda__cell.is-out { background: transparent; border-style: dashed; opacity: .4; }
.agenda__cell.is-we { background: var(--duo-plum-50); }
.agenda__cell.is-ferie { background: var(--duo-plum-100); }
.agenda__cell.is-today { border: 2px solid var(--duo-orange); background: var(--duo-surface); }
.agenda__num { font: 800 .86rem var(--duo-font-display); color: var(--duo-heading); }
.agenda__cell.is-today .agenda__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--duo-orange); color: #fff; }
.agenda__chip { display: block; padding: 2px 6px; border-radius: 6px; font-size: .66rem; font-weight: 650; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--c, #5b3a6b) !important; background: color-mix(in srgb, var(--c, #5b3a6b) 13%, #fff); border-left: 3px solid var(--c, #5b3a6b); }
.agenda__chip--fisc { --c: #d63c3c; font-weight: 600; }
.agenda__note { margin: 10px 2px 0; font-size: .72rem; color: var(--duo-muted); }
@media (max-width: 700px) { .agenda__cell { min-height: 64px; } .agenda__chip { font-size: 0; height: 6px; padding: 0; } }
.agenda__side { display: flex; flex-direction: column; gap: 14px; }
.agenda-form { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.agenda-form h3 { margin: 0 0 4px; }
.agenda-form label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; font-weight: 600; color: var(--duo-label); }
body.duo-v2 .duo-content .agenda-form input:not([type=checkbox]), body.duo-v2 .duo-content .agenda-form select, body.duo-v2 .duo-content .agenda-form textarea { width: 100%; }
.agenda-form__foot { display: flex; justify-content: space-between; align-items: center; }
.agenda-next { display: flex; flex-direction: column; gap: 10px; }
.agenda-ev { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--duo-surface-2); border: 1px solid var(--duo-border); scroll-margin-top: 120px; }
.agenda-ev:target { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.agenda-ev__date { flex: 0 0 48px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--c); font-size: .64rem; text-transform: uppercase; font-weight: 700; }
.agenda-ev__date b { font: 800 1.2rem/1 var(--duo-font-display); }
.agenda-ev__body { min-width: 0; flex: 1; }
.agenda-ev__body strong { display: block; font-size: .9rem; }
.agenda-ev__body small { display: block; font-size: .72rem; color: var(--duo-muted); }
.agenda-ev__body p { margin: 6px 0 0; font-size: .8rem; }
.agenda-ev__foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.agenda-join { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--duo-border); background: var(--duo-surface); font: 700 .74rem var(--duo-font); color: var(--duo-link); transition: all .2s; }
.agenda-join b { padding: 0 6px; border-radius: 999px; background: var(--duo-plum-50); }
.agenda-join.is-in { background: var(--duo-green); border-color: var(--duo-green); color: #fff; }
.agenda-join.is-in b { background: rgba(255,255,255,.25); }

/* ---------- Merci ! ---------- */
.merci { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .merci { grid-template-columns: 1fr; } }
.merci-form { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; background: linear-gradient(135deg, var(--duo-surface), var(--duo-orange-100)); }
.merci-form__head { display: flex; align-items: center; gap: 14px; }
.merci-form__head h3 { margin: 0; }
.merci-form__head p { margin: 2px 0 0; font-size: .84rem; color: var(--duo-muted); }
.merci-form__emoji { font-size: 2.2rem; animation: duoBob 4s ease-in-out infinite; }
body.duo-v2 .duo-content .merci-form input, body.duo-v2 .duo-content .merci-form textarea { width: 100%; }
.merci-form__vals { display: flex; flex-wrap: wrap; gap: 6px; }
.merci-form__vals input { position: absolute; opacity: 0; }
.merci-form__vals span { display: inline-flex; height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--duo-surface); border: 1.5px solid var(--duo-border); font-size: .82rem; font-weight: 650; cursor: pointer; transition: all .2s; }
.merci-form__vals input:checked + span { border-color: var(--duo-orange); background: var(--duo-orange); color: #fff; }
.merci-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.merci-wall { columns: 3 260px; column-gap: 14px; }
.merci-card { break-inside: avoid; margin-bottom: 14px; padding: 16px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); position: relative; overflow: hidden; }
.merci-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--duo-grad-brand); }
.merci-card--entraide::before { background: linear-gradient(90deg, #1f9d6b, #6ad1a4); }
.merci-card--expertise::before { background: linear-gradient(90deg, #5b3a6b, #8d6ea6); }
.merci-card--bravo::before { background: linear-gradient(90deg, #c4935a, #ffd36b); }
.merci-card--sourire::before { background: linear-gradient(90deg, #eb6b24, #ffb38a); }
.merci-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--duo-muted); }
.merci-card__badge { padding: 2px 9px; border-radius: 999px; background: var(--duo-plum-50); color: var(--duo-label); font-weight: 700; }
.merci-card__to { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.merci-card__to small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--duo-muted); }
.merci-card__to strong { font-family: var(--duo-font-display); font-size: 1rem; }
.merci-card p { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; }
.merci-card__from { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--duo-muted); }
.merci-card__from form { margin: 0 0 0 auto; }
.merci__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--duo-topbar-h) + 24px); }
.merci-me { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 10px; text-align: center; background: var(--duo-plum-900); color: #fff; border: 0; }
.merci-me strong { display: block; font: 800 1.8rem var(--duo-font-display); }
.merci-me span { font-size: .74rem; opacity: .75; }
.merci-top { display: flex; flex-direction: column; gap: 8px; }
.merci-top__row { display: flex; align-items: center; gap: 10px; }
.merci-top__rank { width: 26px; text-align: center; font-weight: 800; }
.merci-top__row strong { flex: 1; font-size: .86rem; }
.merci-top__row b { padding: 2px 9px; border-radius: 999px; background: var(--duo-orange-100); color: var(--duo-orange); font-size: .78rem; }

/* ---------- Toast (confirmation d'action) ---------- */
.duo-toast { position: fixed; z-index: 99998; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 14px 18px; border-radius: 16px;
  color: #fff; background: var(--duo-plum-900); box-shadow: var(--duo-shadow-lg); animation: duoToast 5s var(--duo-ease) both; font-weight: 600; font-size: .9rem; }
.duo-toast svg { width: 20px; height: 20px; flex-shrink: 0; color: #6ee7b7; }
.duo-toast--error { background: #8c2323; }
.duo-toast--error svg { color: #ffc2c2; }
@keyframes duoToast { 0% { opacity: 0; transform: translateY(20px) scale(.95); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); visibility: hidden; } }

/* ---------- Tableau de bord : Fil, agenda, édito riche ---------- */
/* Placement de l'édito, du bloc « À venir »/« Aujourd'hui chez DUO » et du Fil : voir duo-widgets.css */
.duo-filw__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .duo-filw__list { grid-template-columns: 1fr; } }
.duo-filw__item { display: flex; gap: 12px; padding: 8px; border-radius: 14px; color: var(--duo-text) !important; transition: background .2s; }
.duo-filw__item:hover { background: var(--duo-plum-50); }
.duo-filw__img { flex: 0 0 96px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--c); }
.duo-filw__img img { width: 100%; height: 100%; object-fit: cover; }
.duo-filw__img svg { width: 24px; height: 24px; }
.duo-filw__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.duo-filw__txt small { font-size: .7rem; color: var(--duo-muted); }
.duo-filw__txt strong { font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.duo-filw__txt em { font-style: normal; font-size: .76rem; color: var(--duo-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.duo-filw__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px; color: var(--duo-muted); }
.duo-filw__empty > svg { width: 30px; height: 30px; color: var(--duo-orange); }
.duo-filw__empty p { margin: 0; max-width: 420px; font-size: .86rem; }
.duo-agw__list { display: flex; flex-direction: column; gap: 6px; }
.duo-agw__item { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; color: var(--duo-text) !important; transition: background .2s; }
.duo-agw__item:hover { background: var(--duo-plum-50); }
.duo-agw__date { flex: 0 0 46px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.duo-agw__date b { font: 800 1.1rem/1 var(--duo-font-display); }
.duo-agw__txt { min-width: 0; }
.duo-agw__txt strong { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-agw__txt small { font-size: .72rem; color: var(--duo-muted); }

.duo-edito-rich { flex: 1; position: relative; display: flex; flex-direction: column; min-height: 360px; overflow: hidden; border-radius: var(--duo-radius); color: #fff !important; background: var(--duo-plum-900); box-shadow: var(--duo-shadow); isolation: isolate; }
.duo-edito-rich__img { position: absolute; inset: 0; z-index: -2; background: var(--duo-grad-plum) center / cover no-repeat; transition: transform 1.2s var(--duo-ease); }
.duo-edito-rich:hover .duo-edito-rich__img { transform: scale(1.04); }
.duo-edito-rich::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(21,13,28,.92) 0%, rgba(21,13,28,.55) 45%, rgba(21,13,28,.05) 100%); }
.duo-edito-rich__body { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; }
.duo-edito-rich__eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--duo-orange); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.duo-edito-rich__eyebrow svg { width: 14px; height: 14px; }
.duo-edito-rich strong { font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--duo-font-display); letter-spacing: -.03em; }
.duo-edito-rich em { font-style: normal; font-size: .98rem; color: rgba(255,255,255,.82); max-width: 62ch; }
.duo-edito-rich__foot { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.8); }
.duo-edito-rich__foot .com-avatar { border: 2px solid rgba(255,255,255,.6); }
.duo-edito-rich__cta { margin-left: auto; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--duo-plum-900); font-weight: 800; transition: transform .3s var(--duo-spring); }
.duo-edito-rich:hover .duo-edito-rich__cta { transform: translateX(4px); }

/* ===================================================================== */
/*  Sondages                                                              */
/* ===================================================================== */
.polls { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .polls { grid-template-columns: 1fr; } .polls__side { order: -1; } }
.polls__main { display: flex; flex-direction: column; gap: 14px; }
.polls__side { position: sticky; top: calc(var(--duo-topbar-h) + 24px); }
.poll { padding: 18px 20px; }
.poll.is-closed { opacity: .85; }
.poll__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.poll__head small { margin-left: auto; font-size: .74rem; color: var(--duo-muted); }
.poll h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.poll__desc { margin: 0 0 6px; font-size: .88rem; color: var(--duo-muted); }
.poll__opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.poll__opts.is-shake { animation: duoShake .45s both; }
.poll__opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  background: var(--duo-surface-2); border: 1.5px solid var(--duo-border); transition: border-color .2s, transform .2s var(--duo-spring); }
.poll__opt:hover { border-color: var(--duo-plum-300); }
.poll__opt input { position: relative; z-index: 1; accent-color: var(--duo-orange); width: 18px; height: 18px; }
.poll__lib { position: relative; z-index: 1; flex: 1; font-weight: 600; font-size: .92rem; }
.poll__pct { position: relative; z-index: 1; font: 800 .9rem var(--duo-font-display); color: var(--duo-heading); opacity: 0; transition: opacity .3s; }
.poll__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--duo-plum-100), var(--duo-plum-50)); transition: width .9s var(--duo-ease); }
.poll.is-voted .poll__bar { width: var(--p); }
.poll.is-voted .poll__pct { opacity: 1; }
.poll.is-voted .poll__opt input { display: none; }
.poll.is-voted .poll__opt { cursor: default; }
.poll__opt.is-mine { border-color: var(--duo-orange); }
.poll.is-voted .poll__opt.is-mine .poll__bar { background: linear-gradient(90deg, rgba(235,107,36,.28), rgba(235,107,36,.1)); }
.poll.is-voted .poll__opt.is-mine .poll__lib::after { content: '  ✓ votre choix'; font-size: .72rem; font-weight: 700; color: var(--duo-orange); }
.poll__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.poll__meta { font-size: .76rem; color: var(--duo-muted); }
.poll__meta b { color: var(--duo-heading); }
.poll__vote { margin-left: auto; height: 40px; }
.poll__change { display: none; margin-left: auto; }
.poll.is-voted .poll__vote { display: none; }
.poll.is-voted:not(.is-closed) .poll__change { display: inline; }
.poll__admin { display: inline-flex; gap: 12px; }
.poll-new { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.poll-new h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.poll-new h3 svg { width: 18px; height: 18px; color: var(--duo-orange); }
body.duo-v2 .duo-content .poll-new :is(input:not([type=checkbox]), textarea) { width: 100%; }
.poll-new__opts { display: flex; flex-direction: column; gap: 6px; }
.poll-new .com-link-btn { align-self: flex-start; }

/* ===================================================================== */
/*  Base documentaire                                                     */
/* ===================================================================== */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .docs { grid-template-columns: 1fr; } }
.docs__side { position: sticky; top: calc(var(--duo-topbar-h) + 24px); display: flex; flex-direction: column; gap: 10px; }
.docs__side .com-search { min-width: 0; flex: none; }
.docs__folders { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--duo-radius); background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); }
.docs__folders a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: var(--duo-text) !important; }
.docs__folders a span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--duo-surface)); }
.docs__folders a span svg { width: 16px; height: 16px; }
.docs__folders a b { margin-left: auto; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: var(--duo-plum-50); color: var(--duo-muted); }
.docs__folders a:hover { background: var(--duo-plum-50); }
.docs__folders a.is-active { background: var(--c); color: #fff !important; }
.docs__folders a.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.docs__folders a.is-active b { background: rgba(255,255,255,.25); color: #fff; }
.docs__newfolder summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; color: var(--duo-link); padding: 4px 8px; }
.docs__newfolder summary::-webkit-details-marker { display: none; }
.docs__newfolder summary svg { width: 15px; height: 15px; }
.docs__newfolder form { display: flex; gap: 6px; margin-top: 6px; }
body.duo-v2 .duo-content .docs__newfolder input:not([type=color]) { flex: 1; min-width: 0; }
.docs__newfolder input[type=color] { width: 42px; height: 42px; border: 0; background: none; padding: 0; }
.docs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.docs__head h2 { margin: 0; font-size: 1.3rem; }
.docs__head span { font-size: .8rem; color: var(--duo-muted); }
.docs-upload { display: none; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; margin-bottom: 14px; }
.docs-upload.is-open { display: grid; animation: duoFadeUp .4s var(--duo-ease) both; }
@media (max-width: 800px) { .docs-upload.is-open { grid-template-columns: 1fr; } }
.docs-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 18px; text-align: center; border-radius: 16px; cursor: pointer;
  border: 2px dashed var(--duo-plum-200); background: var(--duo-plum-50); transition: border-color .2s, background .2s; }
.docs-drop:hover, .docs-drop.is-over { border-color: var(--duo-orange); background: var(--duo-orange-100); }
.docs-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.docs-drop svg { width: 32px; height: 32px; color: var(--duo-orange); }
.docs-drop small { color: var(--duo-muted); font-size: .74rem; }
.docs-drop em { font-style: normal; font-weight: 700; color: var(--duo-green); font-size: .84rem; }
.docs-upload__fields { display: flex; flex-direction: column; gap: 8px; }
body.duo-v2 .duo-content .docs-upload__fields :is(input, select, textarea) { width: 100%; }
.docs-upload__fields .dx-btn { align-self: flex-end; }
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.docs-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); transition: transform .3s var(--duo-spring), box-shadow .3s; }
.docs-item:hover { transform: translateY(-2px); box-shadow: var(--duo-shadow); }
.docs-item__ico { width: 46px; height: 56px; flex-shrink: 0; border-radius: 8px 14px 8px 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; position: relative;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 8px 16px -8px var(--c); }
.docs-item__ico::before { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 0 12px 0 6px; background: rgba(255,255,255,.35); }
.docs-item__ico span { font: 800 .6rem var(--duo-font); letter-spacing: .04em; color: #fff; }
.docs-item__main { flex: 1; min-width: 0; }
.docs-item__title { font: 700 .96rem var(--duo-font-display); color: var(--duo-heading) !important; }
.docs-item__main p { margin: 2px 0 4px; font-size: .82rem; color: var(--duo-muted); }
.docs-item__main small { font-size: .72rem; color: var(--duo-muted); }
.docs-item__actions { display: flex; align-items: center; gap: 6px; }
.docs-item__actions .duo-icon-btn { width: 38px; height: 38px; }
.docs-item__actions .duo-icon-btn svg { width: 17px; height: 17px; }
.docs-more { position: relative; }
.docs-more summary { list-style: none; cursor: pointer; font-weight: 800; }
.docs-more summary::-webkit-details-marker { display: none; }
.docs-more__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; padding: 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px;
  background: var(--duo-surface); border: 1px solid var(--duo-border-strong); box-shadow: var(--duo-shadow-lg); font-size: .82rem; }
.docs-more__menu strong { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--duo-muted); }
.docs-more__menu form { margin: 0; }
.docs-more__up { position: relative; display: block; font-weight: 650; color: var(--duo-link); cursor: pointer; }
.docs-more__up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===================================================================== */
/*  Statistiques de lecture                                               */
/* ===================================================================== */
.stats-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stats-head .com-back { margin: 0; }
.stats-kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1200px) { .stats-kpis { grid-template-columns: repeat(2, 1fr); } }
.stats-kpi { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 20px; background: var(--duo-surface); border: 1px solid var(--duo-border); box-shadow: var(--duo-shadow-sm); }
.stats-kpi small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--duo-muted); }
.stats-kpi strong { display: block; margin: 4px 0; font: 800 1.9rem var(--duo-font-display); letter-spacing: -.03em; color: var(--duo-heading); }
.stats-kpi > span { font-size: .76rem; color: var(--duo-muted); }
.stats-kpi--main { background: var(--duo-plum-900); color: #fff; border: 0; padding-right: 120px; }
html[data-theme="dark"] .stats-kpi--main { background: #2c1c3c; }
.stats-kpi--main small, .stats-kpi--main > span { color: rgba(255,255,255,.7); }
.stats-kpi--main strong { color: #fff; font-size: 2.4rem; }
.stats-ring { position: absolute; right: 18px; top: 50%; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%;
  background: conic-gradient(var(--duo-orange) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%); mask: radial-gradient(circle, transparent 55%, #000 56%); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats-card--wide { grid-column: 1 / -1; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-line { width: 100%; height: 180px; display: block; }
.stats-line__axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--duo-muted); margin-top: 6px; }
.stats-bars { display: flex; flex-direction: column; gap: 8px; }
.stats-bar { display: grid; grid-template-columns: 140px 1fr 52px 50px; align-items: center; gap: 10px; font-size: .82rem; }
.stats-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.stats-bar i { position: relative; height: 10px; border-radius: 10px; background: var(--duo-plum-50); overflow: hidden; }
.stats-bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 10px; background: var(--duo-grad-brand); animation: statsGrow 1s var(--duo-ease) both; }
.stats-bar b { font: 800 .86rem var(--duo-font-display); text-align: right; color: var(--duo-heading); }
.stats-bar small { font-size: .7rem; color: var(--duo-muted); }
@keyframes statsGrow { from { width: 0; } }
.stats-top { display: flex; flex-direction: column; }
.stats-top__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 240px 110px; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--duo-border); color: var(--duo-text) !important; }
.stats-top__row:hover { background: var(--duo-plum-50); }
.stats-top__rank { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: var(--duo-plum-50); color: var(--duo-link); }
.stats-top__row:nth-child(-n+3) .stats-top__rank { background: var(--duo-grad-brand); color: #fff; }
.stats-top__main strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-top__main small { font-size: .72rem; color: var(--duo-muted); }
.stats-top__bar { display: flex; flex-direction: column; gap: 4px; }
.stats-top__bar i { height: 8px; border-radius: 8px; background: var(--duo-plum-50); position: relative; overflow: hidden; }
.stats-top__bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--duo-green); border-radius: 8px; animation: statsGrow 1s var(--duo-ease) both; }
.stats-top__bar b { font-size: .72rem; color: var(--duo-muted); font-weight: 600; }
.stats-top__eng { font-size: .78rem; color: var(--duo-muted); text-align: right; }
@media (max-width: 800px) { .stats-top__row { grid-template-columns: 28px 1fr; } .stats-top__bar, .stats-top__eng { display: none; } }
.studio-kpis-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.studio-kpis-head h3 { margin: 0; font-size: 1rem; }
.studio-kpis-head .dx-btn { height: 38px; font-size: .82rem; }

/* ===== Savoir collectif : wiki, veille, retours d'expérience, filtres métier ===== */
.sv-metiers { max-width: 100%; }
.sv-metiers--forum { margin: 0 0 12px; }
.sv-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 650; background: var(--duo-plum-50); color: var(--duo-label) !important; margin-right: 4px; }
a.sv-tag:hover { background: var(--duo-plum-100, var(--duo-plum-50)); }
.sv-tags { margin-top: 10px; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.sv-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--duo-text) !important; border-top: 3px solid var(--c, var(--duo-plum-300)); }
.sv-card h3 { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.3; color: var(--duo-heading); }
.sv-card p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--duo-muted); flex: 1; }
.sv-card footer { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--duo-muted); }
.sv-article { padding: 26px; max-width: 860px; }
.sv-article h1 { margin: 10px 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.sv-article footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--duo-border); }
.sv-body { margin-top: 18px; font-size: .97rem; line-height: 1.7; overflow-wrap: anywhere; }
.sv-body h2, .sv-body h3 { margin: 1.4em 0 .5em; color: var(--duo-heading); }
.sv-body blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--duo-orange); color: var(--duo-muted); }
.sv-body pre, .sv-body code { background: var(--duo-plum-50); border-radius: 6px; }
.sv-body pre { padding: 12px 14px; overflow-x: auto; }
.sv-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; max-width: 860px; }
.sv-form h2 { margin: 0; }
.sv-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.sv-row label, .sv-note, .sv-area { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 220px; font-size: .78rem; font-weight: 650; color: var(--duo-label); }
.sv-row select, .sv-row input, .sv-note input, .sv-area textarea, .sv-add textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--duo-border); background: var(--duo-surface); color: var(--duo-text); font: inherit; font-weight: 400; }
.sv-area--ok textarea { border-left: 3px solid #1f9d6b; }
.sv-area--ko textarea { border-left: 3px solid var(--duo-orange); }
.sv-rex { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--duo-plum-50); }
.sv-rex h4 { margin: 0 0 6px; font-size: .88rem; }
.sv-rex p { margin: 0; line-height: 1.6; }
.sv-rex--ok { background: color-mix(in srgb, #1f9d6b 10%, var(--duo-surface)); }
.sv-rex--ko { background: color-mix(in srgb, var(--duo-orange) 10%, var(--duo-surface)); }
.sv-rex--tip { background: color-mix(in srgb, #3a78c9 10%, var(--duo-surface)); }
.sv-add { margin-bottom: 14px; padding: 14px 18px; }
.sv-add summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sv-add form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sv-week { margin: 22px 0 10px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--duo-muted); }
.sv-veille { margin-bottom: 10px; padding: 16px 20px; }
.sv-veille h3 { margin: 6px 0; font-size: 1.02rem; }
.sv-veille p { margin: 0 0 8px; font-size: .88rem; line-height: 1.55; color: var(--duo-muted); }
.sv-veille footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .74rem; color: var(--duo-muted); }
.sv-veille footer form { margin: 0 0 0 auto; }
.sv-histo { padding: 18px 22px; max-width: 860px; margin-bottom: 14px; }
.sv-histo__row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--duo-border); }
.sv-histo__row > span { flex: 1; font-size: .88rem; }
.sv-histo__row small { display: block; color: var(--duo-muted); }
.sv-histo__row form { margin: 0; }
.sv-histo__row.is-active { background: var(--duo-plum-50); }

/* ===== Accueil : actions rapides et widgets de communication ===== */
.duo-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.duo-quick a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; background: var(--duo-surface); border: 1px solid var(--duo-border);
  font-size: .84rem; font-weight: 650; color: var(--duo-label) !important; transition: border-color .2s, background .2s; }
.duo-quick a svg { width: 16px; height: 16px; color: var(--duo-orange); }
.duo-quick a:hover { border-color: var(--duo-orange); background: var(--duo-plum-50); }
.duo-sv__tabs { margin-bottom: 10px; }
.duo-sv__list { list-style: none; margin: 0; padding: 0; }
.duo-sv__list[hidden] { display: none; }
.duo-sv__list li a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--duo-border); color: var(--duo-text) !important; }
.duo-sv__list li:first-child a { border-top: 0; padding-top: 0; }
.duo-sv__list strong { display: block; font-size: .9rem; line-height: 1.35; }
.duo-sv__list small { color: var(--duo-muted); font-size: .76rem; }
.duo-sv__n { flex: none; display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; background: var(--duo-plum-50); color: var(--duo-plum); }
.duo-sv__n svg { width: 15px; height: 15px; }
.duo-sv__n.is-zero { background: color-mix(in srgb, var(--duo-orange) 14%, var(--duo-surface)); color: var(--duo-orange); }
.duo-sv__n.is-ok { background: color-mix(in srgb, #1f9d6b 14%, var(--duo-surface)); color: #1f9d6b; }
.duo-sv__empty { margin: 0; color: var(--duo-muted); font-size: .86rem; list-style: none; }
.duo-sv__rex { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #3a78c9 10%, var(--duo-surface)); color: var(--duo-text) !important; }
.duo-sv__rex small { color: var(--duo-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.duo-sv__rex em { font-style: normal; font-size: .82rem; color: var(--duo-muted); }
.duo-mc__item { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: color-mix(in srgb, #1f9d6b 10%, var(--duo-surface)); }
.duo-mc__item p { margin: 0 0 3px; font-size: .86rem; line-height: 1.4; }
.duo-mc__item small, .duo-mc__moi { color: var(--duo-muted); font-size: .74rem; }
.duo-mc__cta { margin-top: 4px; width: 100%; justify-content: center; }
.duo-mc__moi { display: block; margin-top: 8px; text-align: center; }
.duo-sd__poll { display: flex; flex-direction: column; gap: 8px; }
.duo-sd__poll > strong { font-size: .95rem; line-height: 1.35; margin-bottom: 2px; }
.duo-sd__opt { position: relative; display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--duo-border); background: transparent; color: var(--duo-text); font: inherit; font-size: .86rem; text-align: left; overflow: hidden; cursor: pointer; }
.duo-sd__opt:hover { border-color: var(--duo-plum-300); }
.duo-sd__opt i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--duo-plum-50); transition: width .5s ease; }
.duo-sd__opt span, .duo-sd__opt em { position: relative; font-style: normal; }
.duo-sd__opt em { font-weight: 700; }
.duo-sd__opt.is-mine { border-color: var(--duo-plum); }
.duo-sd__meta { color: var(--duo-muted); font-size: .74rem; }
.duo-ac__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.duo-ac__list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--duo-border); color: var(--duo-text) !important; font-size: .9rem; }
.duo-ac__list li:first-child a { border-top: 0; padding-top: 0; }
.duo-ac__list svg { width: 17px; height: 17px; color: var(--duo-orange); flex: none; }
@media (prefers-reduced-motion: reduce) { .duo-sd__opt i { transition: none; } }
