:root { --bg: #f5f7f5; --card: #fff; --line: #e3e8e4; --text: #1f2a22; --muted: #6b7a70; --green: #1f6f3a; --green-d: #155129; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.i { flex: none; }
.muted { color: var(--muted); }

.top { background: linear-gradient(120deg, var(--green-d), var(--green) 60%, #2f8f4e); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.top .in { max-width: 1110px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; }
.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.top .brand .wheel { display: inline-block; font-size: 24px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.top .brand:hover .wheel { transform: rotate(-20deg) translateX(3px); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a, .top nav span { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .85); transition: background .15s; }
.top nav a:hover, .top nav .on { background: rgba(255, 255, 255, .14); color: #fff; }
.top nav span { opacity: .6; cursor: default; }

.wrap { max-width: 1110px; margin: 0 auto; padding: 26px 20px 60px; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; position: relative; overflow: hidden; animation: rise .5s both; }
.hero h1 { margin: 0 0 6px; font-size: 26px; }
.hero p { margin: 0; color: var(--muted); max-width: 620px; }
.hero .road { position: absolute; right: -40px; bottom: -30px; font-size: 140px; opacity: .08; transform: rotate(-12deg); }
.hero code { background: #eef4ef; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: rise .5s both; }
.box > h2 { margin: 0; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* Liste de sujets */
.topic { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 70px 90px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.topic:last-child { border-bottom: 0; }
.topic:hover { background: #f8fbf8; }
.topic .title { font-weight: 600; font-size: 16px; display: block; }
.topic .title:hover { color: var(--green); }
.topic .num { text-align: center; font-weight: 600; }
.topic .num small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.topic.head { font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 18px; }
.topic.head:hover { background: none; }
.posters { display: flex; }
.posters .av { margin-right: -6px; border: 2px solid #fff; }
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; }
.av.lg { width: 48px; height: 48px; font-size: 19px; }
.av.xl { width: 110px; height: 110px; font-size: 44px; border: 5px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

/* Catégories */
.cat { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--c); }
.cat:last-child { border-bottom: 0; }
.cat b { display: block; }
.cat small { color: var(--muted); }
.cat .n { margin-left: auto; text-align: right; font-weight: 600; white-space: nowrap; }
.stat { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }

/* Messages d'un sujet */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.thead h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; }
.thead { margin-bottom: 18px; animation: rise .5s both; }
.msg { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 14px; padding: 20px 18px; border-bottom: 1px solid var(--line); animation: rise .5s both; }
.msg:last-child { border-bottom: 0; }
.msg .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.msg .meta b a:hover { color: var(--green); text-decoration: underline; }
.msg .rank { font-size: 12px; color: var(--muted); margin-left: 6px; }
.msg .txt { margin: 6px 0 10px; }
.msg .tools { display: flex; gap: 6px; justify-content: flex-end; color: var(--muted); }
.msg .tools button { background: none; border: 0; color: inherit; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, color .15s; }
.msg .tools button:hover { background: #eef4ef; color: var(--text); }
.msg .tools button.on { color: #e11d48; }
.msg .tools button.on .i { fill: #e11d48; animation: pop .35s; }
.msg .sig { grid-column: 2; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; font-style: italic; }

/* Profil de membre */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; animation: rise .5s both; }
.pcard .band { height: 120px; background: linear-gradient(120deg, var(--green-d), #3a9d5d); position: relative; overflow: hidden; }
.pcard .band::after { content: "⛰️  🚲  ⛰️"; position: absolute; right: 24px; bottom: -6px; font-size: 54px; opacity: .2; letter-spacing: 10px; }
.pcard .body { position: relative; display: flex; gap: 22px; align-items: flex-end; padding: 0 26px 22px; margin-top: -55px; flex-wrap: wrap; }
.pcard h1 { margin: 0; font-size: 26px; }
.pcard .sub { color: var(--muted); }
dl.facts { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
dl.facts dt, dl.facts dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); }
dl.facts dt { color: var(--muted); font-weight: 600; font-size: 14px; }
dl.facts > :nth-last-child(-n+2) { border-bottom: 0; }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list a:last-child { border-bottom: 0; }
.list a:hover { background: #f8fbf8; color: var(--green); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
.foot a:hover { color: var(--green); text-decoration: underline; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .topic { grid-template-columns: minmax(0, 1fr) 60px; }
  .topic > :nth-child(2), .topic > :nth-child(4), .topic > :nth-child(5) { display: none; }
  .top nav span { display: none; }
  dl.facts { grid-template-columns: 120px minmax(0, 1fr); }
}
