/* Forum de discussion -- page publique (discussions.php).
   Même langage visuel que la photothèque : bandeau vert, liseré doré, Poppins. */
.dsc-page {
    --dsc-brand: #0b5d3b; --dsc-brand-2: #0b7d4b; --dsc-brand-d: #063d27; --dsc-gold: #d6af54;
    --dsc-ink: #1d3328; --dsc-muted: #5b6f64; --dsc-line: #dce7df; --dsc-soft: #eff5f1; --dsc-bg: #f4f8f5;
    --dsc-radius: 14px; --dsc-shadow: 0 2px 10px rgba(18, 74, 40, .06);
    background: var(--dsc-bg); color: var(--dsc-ink);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    padding-bottom: 4rem; min-height: 60vh;
}
.dsc-page *, .dsc-page *::before, .dsc-page *::after { box-sizing: border-box; }
.dsc-page :focus-visible { outline: 3px solid var(--dsc-gold); outline-offset: 3px; border-radius: 4px; }
.dsc-page h1, .dsc-page h2, .dsc-page h3 { font-family: inherit; color: inherit; overflow-wrap: anywhere; }
.dsc-page a { text-decoration: none; }
.dsc-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- Bandeau ---- */
.dsc-hero {
    /* Photo de fond : lagune Ébrié à Abidjan, sous un voile vert pour la lisibilité. */
    --dsc-hero-photo: url('../img/carousel-1.jpg');
    background-color: #095536;
    background-image: linear-gradient(100deg, rgba(5, 50, 31, .94) 0%, rgba(8, 82, 52, .86) 42%, rgba(11, 110, 68, .55) 75%, rgba(11, 110, 68, .35) 100%), var(--dsc-hero-photo);
    background-size: cover; background-position: center 62%; background-repeat: no-repeat;
    color: #fff; padding: 22px 0 40px; border-bottom: 3px solid var(--dsc-gold);
}
.dsc-hero h1, .dsc-intro, .dsc-hero__meta { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.dsc-stats { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dsc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .78rem; color: #d7eee0; }
.dsc-crumbs li { display: inline-flex; align-items: center; min-height: 30px; }
.dsc-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .7; }
.dsc-crumbs a { color: #f5fff8; }
.dsc-crumbs a:hover { text-decoration: underline; }
.dsc-crumbs [aria-current] { overflow-wrap: anywhere; }
.dsc-hero__layout { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.dsc-hero__heading { flex: 1; min-width: 0; }
.dsc-eyebrow { margin: 0 0 8px; color: #cce8d8; text-transform: uppercase; font-size: .72rem; font-weight: 600; letter-spacing: .12em; }
.dsc-hero h1 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.dsc-intro { margin: 12px 0 0; max-width: 46rem; color: #ecf8f0; font-size: .97rem; line-height: 1.65; }
.dsc-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; color: #e3f3e9; font-size: .88rem; }
.dsc-hero__meta strong { color: #fff; font-weight: 600; }
.dsc-stats { display: flex; flex-shrink: 0; margin: 0; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.dsc-stats > div { min-width: 82px; display: flex; flex-direction: column-reverse; gap: 2px; }
.dsc-stats > div + div { margin-left: 22px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); }
.dsc-stats dt { font-size: .8rem; font-weight: 400; color: #dfefe5; }
.dsc-stats dd { margin: 0; font-size: 1.8rem; font-weight: 700; line-height: 1.15; color: #fff; }

/* ---- Mise en page ---- */
.dsc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-top: 28px; }
.dsc-main { min-width: 0; }
.dsc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-height: 40px; }
.dsc-section-head h2 { margin: 0; font-size: 1.25rem; font-weight: 650; }
.dsc-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--dsc-brand); font-size: .88rem; font-weight: 600; }
.dsc-back:hover { text-decoration: underline; color: var(--dsc-brand-d); }
.dsc-muted { color: var(--dsc-muted); font-size: .84rem; }
.dsc-page time { white-space: nowrap; }

/* ---- Boutons ---- */
.dsc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--dsc-brand); border-radius: 10px; background: var(--dsc-brand); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.dsc-btn:hover { background: var(--dsc-brand-d); border-color: var(--dsc-brand-d); color: #fff; box-shadow: 0 6px 16px rgba(11, 93, 59, .22); }
.dsc-btn--sm { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.dsc-btn--block { width: 100%; }
.dsc-btn--ghost { background: #fff; color: var(--dsc-brand); border-color: var(--dsc-line); }
.dsc-btn--ghost:hover { background: var(--dsc-soft); color: var(--dsc-brand-d); border-color: #9fc4ad; box-shadow: none; }
.dsc-btn--ghost.is-done { background: #e1f4e8; border-color: #9fd3b1; }
.dsc-btn--light { background: #fff; color: var(--dsc-brand-d); border-color: #fff; }
.dsc-btn--light:hover { background: #f3fbf6; color: var(--dsc-brand-d); border-color: #f3fbf6; }

/* ---- Alertes et états vides ---- */
.dsc-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: .92rem; font-weight: 500; }
.dsc-alert i { margin-top: 2px; }
.dsc-alert--ok { background: #e1f4e8; color: #0b5d3b; border: 1px solid #b9e2c7; }
.dsc-alert--err { background: #fdecea; color: #a52a22; border: 1px solid #f3c4bf; }
.dsc-alert--info { background: var(--dsc-soft); color: #2f4a40; border: 1px solid var(--dsc-line); margin: 0; }
.dsc-empty { background: #fff; border: 1px dashed #c6d8cc; border-radius: var(--dsc-radius); padding: 44px 20px; text-align: center; color: var(--dsc-muted); }
.dsc-empty > i { display: block; font-size: 2.2rem; color: #9fc4ad; margin-bottom: 8px; }
.dsc-empty p { margin: 0 0 14px; }
.dsc-empty p:last-child { margin-bottom: 0; }

/* ---- Thèmes ---- */
.dsc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dsc-cat { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); padding: 20px 20px 18px; color: var(--dsc-ink); box-shadow: var(--dsc-shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dsc-cat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--dsc-radius) 0 0 var(--dsc-radius); background: var(--dsc-brand); opacity: 0; transition: opacity .15s; }
.dsc-cat:hover, .dsc-cat:focus-visible { color: var(--dsc-ink); border-color: #9fc4ad; box-shadow: 0 10px 26px rgba(18, 74, 40, .12); transform: translateY(-2px); }
.dsc-cat:hover::before, .dsc-cat:focus-visible::before { opacity: 1; }
.dsc-cat__top { display: flex; align-items: center; gap: 12px; }
.dsc-cat__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--dsc-soft); color: var(--dsc-brand); display: flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.dsc-cat__title { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }
.dsc-cat__desc { color: var(--dsc-muted); font-size: .88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dsc-cat__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf2ee; color: var(--dsc-muted); font-size: .8rem; }
.dsc-cat__foot i { color: var(--dsc-brand); margin-right: 2px; }
.dsc-cat__when { margin-left: auto; }
.dsc-cat__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--dsc-brand); font-size: .85rem; font-weight: 600; }
.dsc-cat:hover .dsc-cat__cta i { transform: translateX(3px); }
.dsc-cat__cta i { transition: transform .15s; }

/* ---- Liste des sujets ---- */
.dsc-topics { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); overflow: hidden; box-shadow: var(--dsc-shadow); }
.dsc-topic { display: grid; grid-template-columns: auto minmax(0, 1fr) 84px 130px; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid #edf2ee; transition: background .15s; }
.dsc-topic:first-child { border-top: 0; }
.dsc-topic:hover { background: #f8fbf9; }
.dsc-topic.is-pinned { background: #fffcf2; }
.dsc-topic.is-pinned:hover { background: #fff8e6; }
.dsc-topic__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dsc-topic__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dsc-topic__badges:empty { display: none; }
.dsc-topic__title { color: var(--dsc-ink); font-weight: 600; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.dsc-topic__title::after { content: ""; position: absolute; inset: 0; }
.dsc-topic { position: relative; }
.dsc-topic__title:hover { color: var(--dsc-brand); }
.dsc-topic__count { text-align: center; border-left: 1px solid #edf2ee; border-right: 1px solid #edf2ee; padding: 2px 0; }
.dsc-topic__count strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--dsc-brand-d); line-height: 1.2; }
.dsc-topic__count span { font-size: .74rem; color: var(--dsc-muted); }
.dsc-topic__last { display: flex; flex-direction: column; font-size: .84rem; color: var(--dsc-ink); }
.dsc-topic__last span { font-size: .72rem; color: var(--dsc-muted); text-transform: uppercase; letter-spacing: .05em; }
.dsc-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; font-size: .88rem; color: var(--dsc-muted); }
.dsc-pager a, .dsc-pager__current { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--dsc-line); border-radius: 10px; background: #fff; color: var(--dsc-brand); font-weight: 600; }
.dsc-pager a:hover { border-color: #9fc4ad; background: var(--dsc-soft); }
.dsc-pager__current { background: var(--dsc-brand); border-color: var(--dsc-brand); color: #fff; }
.dsc-pager__gap { padding: 0 4px; }

/* ---- Badges et avatars ---- */
.dsc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; border-radius: 99px; padding: 3px 9px; line-height: 1.3; white-space: nowrap; }
.dsc-badge--pin { background: #fff1cc; color: #7a5200; }
.dsc-badge--lock { background: #eceff1; color: #455a64; }
.dsc-badge--participant { background: #e1f4e8; color: #0b5d3b; }
.dsc-badge--team { background: var(--dsc-brand); color: #fff; }
.dsc-hero .dsc-badge--lock { background: rgba(255, 255, 255, .16); color: #fff; }
.dsc-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #dcebe2; color: var(--dsc-brand-d); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.dsc-avatar--team { background: var(--dsc-brand); color: #fff; font-size: 1.1rem; }
.dsc-avatar--sm { width: 34px; height: 34px; font-size: .78rem; }

/* ---- Fil de discussion ---- */
.dsc-post { background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); padding: 20px 22px 14px; box-shadow: var(--dsc-shadow); scroll-margin-top: 110px; }
.dsc-post--topic { border-top: 4px solid var(--dsc-brand); padding-top: 22px; }
.dsc-post--topic .dsc-post__body { font-size: 1.02rem; }
.dsc-post:target { border-color: var(--dsc-gold); box-shadow: 0 0 0 3px rgba(214, 175, 84, .28); }
.dsc-post__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.dsc-post__who { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.dsc-post__who .dsc-muted { flex-basis: 100%; }
.dsc-post__author { font-weight: 600; color: var(--dsc-ink); }
.dsc-post__num { color: var(--dsc-muted); font-size: .8rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.dsc-post__num:hover { background: var(--dsc-soft); color: var(--dsc-brand); }
.dsc-post__body { overflow-wrap: anywhere; line-height: 1.75; color: #24372f; font-size: .96rem; }
.dsc-post__body a { color: var(--dsc-brand); text-decoration: underline; text-underline-offset: 2px; }
.dsc-post__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f4f1; }
.dsc-inline-form { margin: 0; display: inline-flex; }
.dsc-report { margin-left: auto; }
.dsc-like { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--dsc-line); border-radius: 99px; background: #fff; color: #33493e; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dsc-like:hover { border-color: #9fc4ad; background: var(--dsc-soft); color: var(--dsc-brand-d); }
.dsc-like.is-on { background: #e1f4e8; border-color: #9fd3b1; color: var(--dsc-brand); }
.dsc-like__count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: rgba(11, 93, 59, .1); text-align: center; font-variant-numeric: tabular-nums; }
.dsc-link-btn--quote:hover, .dsc-link-btn--quote:focus-visible { color: var(--dsc-brand) !important; background: var(--dsc-soft) !important; }
.dsc-post--team { border-color: #b9dcc6; background: linear-gradient(180deg, #f6fbf8, #fff 60px); }
.dsc-post__body p { margin: 0 0 .8em; }
.dsc-post__body p:last-child, .dsc-post__body ul:last-child, .dsc-post__body blockquote:last-child { margin-bottom: 0; }
.dsc-post__body ul { margin: 0 0 .8em; padding-left: 1.3em; }
.dsc-post__body li { margin: .15em 0; }
.dsc-post__body blockquote { margin: 0 0 .9em; padding: 8px 14px; border-left: 3px solid #9fc4ad; background: #f5f9f6; border-radius: 0 8px 8px 0; color: #4b6157; font-size: .92em; }
.dsc-post__body strong { font-weight: 600; color: var(--dsc-ink); }
.dsc-link-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; background: none; border: 0; padding: 0 6px; border-radius: 6px; color: var(--dsc-muted); font: inherit; font-size: .78rem; cursor: pointer; }
.dsc-link-btn:hover, .dsc-link-btn:focus-visible { color: #a52a22; background: #fdf1ef; }
.dsc-thread-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.dsc-thread-head h2 { margin: 0; font-size: 1.1rem; font-weight: 650; white-space: nowrap; }
.dsc-thread-head::after { content: ""; flex: 1; height: 1px; background: var(--dsc-line); }
.dsc-thread-empty { color: var(--dsc-muted); font-size: .92rem; margin: 0 0 8px; }
.dsc-thread { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #e2ece5; display: grid; gap: 14px; }
.dsc-thread { grid-template-columns: minmax(0, 1fr); }
.dsc-thread > .dsc-post { position: relative; min-width: 0; }
.dsc-thread > .dsc-post::before { content: ""; position: absolute; left: -29px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9fc4ad; }

/* ---- Formulaire de réponse ---- */
.dsc-form { background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); padding: 24px; margin-top: 28px; box-shadow: var(--dsc-shadow); scroll-margin-top: 110px; }
.dsc-form h3 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 650; }
.dsc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dsc-field label { display: block; margin: 0 0 6px; font-size: .82rem; font-weight: 600; color: var(--dsc-ink); }
.dsc-input { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #bfd1c5; border-radius: 10px; background: #fff; color: var(--dsc-ink); font: inherit; font-size: .94rem; transition: border-color .15s, box-shadow .15s; }
textarea.dsc-input { min-height: 150px; resize: vertical; line-height: 1.6; }
.dsc-input:hover { border-color: #9fc4ad; }
.dsc-input:focus { outline: none; border-color: var(--dsc-brand); box-shadow: 0 0 0 3px rgba(11, 93, 59, .15); }
.dsc-form__hint { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: .78rem; color: var(--dsc-muted); line-height: 1.5; }
.dsc-counter { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dsc-counter.is-near { color: #a35a00; font-weight: 600; }
.dsc-form__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.dsc-identity { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--dsc-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: .9rem; }
.dsc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#dsc-feedback { scroll-margin-top: 110px; }

/* ---- Colonne latérale ---- */
.dsc-aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.dsc-card { background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); padding: 18px 20px; box-shadow: var(--dsc-shadow); }
.dsc-card h2 { margin: 0 0 12px; font-size: .98rem; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.dsc-card p { margin: 0 0 14px; font-size: .88rem; line-height: 1.55; }
.dsc-card--brand { background: linear-gradient(135deg, var(--dsc-brand), var(--dsc-brand-d)); border-color: var(--dsc-brand); color: #eaf6ee; }
.dsc-card--brand h2 { color: #fff; }
.dsc-card--brand p:last-child { margin-bottom: 0; }
.dsc-card--brand strong { color: #fff; }
.dsc-steps { list-style: none; counter-reset: dsc-step; margin: 0; padding: 0; display: grid; gap: 10px; }
.dsc-steps li { counter-increment: dsc-step; position: relative; padding-left: 38px; font-size: .87rem; line-height: 1.5; min-height: 26px; }
.dsc-steps li::before { content: counter(dsc-step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--dsc-soft); color: var(--dsc-brand); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.dsc-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; line-height: 1.5; color: #33493e; }
.dsc-rules li { display: flex; gap: 8px; }
.dsc-rules i { color: var(--dsc-brand); flex-shrink: 0; }
.dsc-facts { margin: 0 0 14px; display: grid; gap: 0; }
.dsc-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #edf2ee; font-size: .86rem; }
.dsc-facts > div:first-child { border-top: 0; padding-top: 0; }
.dsc-facts dt { font-weight: 400; color: var(--dsc-muted); }
.dsc-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.dsc-facts a { color: var(--dsc-brand); }

/* ---- Recherche, tri, nouveautés ---- */
.dsc-search { position: relative; display: flex; align-items: center; max-width: 560px; margin-top: 20px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.dsc-search > i { position: absolute; left: 16px; color: var(--dsc-muted); pointer-events: none; }
.dsc-search input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; padding: 0 12px 0 44px; font: inherit; font-size: .94rem; color: var(--dsc-ink); border-radius: 12px 0 0 12px; }
.dsc-search input:focus { outline: none; }
.dsc-search:focus-within { box-shadow: 0 0 0 3px var(--dsc-gold), 0 8px 24px rgba(0, 0, 0, .18); }
.dsc-search button { min-height: 42px; margin: 4px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--dsc-brand); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.dsc-search button:hover { background: var(--dsc-brand-d); }
.dsc-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--dsc-muted); }
.dsc-sort select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--dsc-line); border-radius: 10px; background: #fff; color: var(--dsc-ink); font: inherit; font-size: .86rem; cursor: pointer; }
.dsc-badge--new { background: #d6af54; color: #3d2c00; text-transform: uppercase; letter-spacing: .04em; font-size: .64rem; }
.dsc-badge--soft { background: var(--dsc-soft); color: var(--dsc-brand-d); }
.dsc-section-head--spaced { margin-top: 34px; }
.dsc-recent { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); box-shadow: var(--dsc-shadow); overflow: hidden; }
.dsc-recent li + li { border-top: 1px solid #edf2ee; }
.dsc-recent a { display: flex; flex-direction: column; gap: 2px; padding: 13px 20px; color: var(--dsc-ink); transition: background .15s; }
.dsc-recent a:hover { background: #f8fbf9; }
.dsc-recent__title { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.dsc-recent a:hover .dsc-recent__title { color: var(--dsc-brand); }
.dsc-recent__meta { font-size: .8rem; color: var(--dsc-muted); }
.dsc-results-count { margin: 0 0 12px; font-size: .9rem; color: var(--dsc-muted); }
.dsc-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dsc-result { background: #fff; border: 1px solid var(--dsc-line); border-radius: var(--dsc-radius); padding: 16px 20px; box-shadow: var(--dsc-shadow); }
.dsc-result__title { font-weight: 600; font-size: 1rem; color: var(--dsc-ink); overflow-wrap: anywhere; }
.dsc-result__title:hover { color: var(--dsc-brand); text-decoration: underline; }
.dsc-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; font-size: .8rem; color: var(--dsc-muted); }
.dsc-result__excerpt { margin: 0; font-size: .9rem; line-height: 1.6; color: #33493e; }
.dsc-result__excerpt mark, .dsc-page mark { background: #fbeec9; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---- Éditeur de réponse ---- */
.dsc-editor { border: 1px solid #bfd1c5; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dsc-editor:focus-within { border-color: var(--dsc-brand); box-shadow: 0 0 0 3px rgba(11, 93, 59, .15); }
.dsc-editor .dsc-input { border: 0; border-radius: 0; box-shadow: none !important; }
.dsc-toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid #e6eee9; background: #f8fbf9; }
.dsc-toolbar[hidden] { display: none; }
.dsc-toolbar button { width: 36px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #33493e; font-size: 1rem; cursor: pointer; }
.dsc-toolbar button:hover { background: #e7f1ec; color: var(--dsc-brand); }
.dsc-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: .88rem; cursor: pointer; }
.dsc-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--dsc-brand); flex-shrink: 0; }
.dsc-form__rules { display: flex; gap: 8px; margin: 12px 0 0; font-size: .78rem; color: var(--dsc-muted); line-height: 1.5; }
.dsc-form__rules i { color: var(--dsc-brand); margin-top: 1px; }

/* ---- Partage ---- */
.dsc-share__label { margin: 16px 0 8px !important; font-size: .78rem !important; color: var(--dsc-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dsc-share { display: flex; gap: 8px; flex-wrap: wrap; }
.dsc-share a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dsc-line); border-radius: 10px; background: #fff; color: var(--dsc-brand); font-size: 1.05rem; transition: background .15s, color .15s, border-color .15s; }
.dsc-share a:hover { background: var(--dsc-brand); border-color: var(--dsc-brand); color: #fff; }

/* ---- Adaptation écrans ---- */
@media (max-width: 1080px) {
    .dsc-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
    .dsc-topic { grid-template-columns: auto minmax(0, 1fr) 76px; }
    .dsc-topic__last { display: none; }
}
@media (max-width: 900px) {
    .dsc-layout { grid-template-columns: 1fr; }
    .dsc-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .dsc-hero__layout { flex-direction: column; align-items: stretch; gap: 20px; }
    .dsc-stats { align-self: flex-start; }
}
@media (max-width: 640px) {
    .dsc-wrap { padding: 0 16px; }
    .dsc-hero { padding: 14px 0 26px; }
    .dsc-stats { width: 100%; padding: 12px 16px; }
    .dsc-stats--topic { display: none; }
    .dsc-stats > div { min-width: 0; flex: 1; }
    .dsc-stats > div + div { margin-left: 14px; padding-left: 14px; }
    .dsc-stats dd { font-size: 1.45rem; }
    .dsc-cats { grid-template-columns: 1fr; gap: 14px; }
    .dsc-topic { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
    .dsc-topic__count { grid-column: 2; text-align: left; border: 0; padding: 0; display: flex; align-items: baseline; gap: 5px; }
    .dsc-topic__count strong { display: inline; font-size: .95rem; }
    .dsc-post { padding: 16px 16px 10px; }
    .dsc-thread { padding-left: 14px; }
    .dsc-thread > .dsc-post::before { left: -21px; }
    .dsc-fields { grid-template-columns: 1fr; }
    .dsc-form { padding: 18px 16px; }
    .dsc-form__hint { flex-direction: column; gap: 4px; }
    .dsc-form__actions .dsc-btn { width: 100%; }
    .dsc-search { margin-top: 16px; }
    .dsc-search button { padding: 0 14px; }
    .dsc-stats { align-self: stretch; }
    .dsc-sort label { display: none; }
    .dsc-hero { background-position: 70% center; }
}
@media (prefers-reduced-motion: reduce) {
    .dsc-page *, .dsc-page *::before, .dsc-page *::after { transition: none !important; }
    .dsc-cat:hover, .dsc-cat:focus-visible { transform: none; }
}
