:root { --bg: #f4f2ee; --card: #fff; --line: #e8e8e8; --text: rgba(0, 0, 0, .9); --muted: rgba(0, 0, 0, .6); --blue: #0a66c2; --blue-d: #004182; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.i { flex: none; }
.muted { color: var(--muted); }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .in { max-width: 1128px; margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--blue); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; transition: transform .2s; }
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }
.top nav { margin-left: auto; display: flex; height: 100%; }
.top nav > * { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; transition: color .15s; }
.top nav a:hover { color: var(--text); }
.top nav .on { color: var(--text); border-color: var(--text); }
.top nav .off { cursor: default; }

/* Mise en page */
.layout { max-width: 1128px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout.three { grid-template-columns: 225px minmax(0, 1fr) 300px; }
.stack { display: grid; gap: 8px; min-width: 0; }
.card { background: var(--card); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); overflow: hidden; animation: rise .45s both; }
.card .pad { padding: 20px 24px; }
.card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.sticky { position: sticky; top: 76px; }

/* En-tête de profil */
.cover { height: 200px; position: relative; overflow: hidden; }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cover::before { width: 420px; height: 420px; right: -80px; top: -220px; }
.cover::after { width: 260px; height: 260px; left: 30%; bottom: -170px; }
.head { padding: 0 24px 24px; position: relative; }
.av { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; }
.av.xl { width: 152px; height: 152px; font-size: 54px; border: 4px solid #fff; margin-top: -112px; position: relative; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.av.sm { width: 40px; height: 40px; font-size: 15px; }
.head .row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.head h1 { margin: 12px 0 0; font-size: 24px; font-weight: 600; }
.head .headline { margin: 2px 0 6px; font-size: 16px; }
.head .loc { color: var(--muted); }
.head .loc b { color: var(--blue); font-weight: 600; }
.head .conn { color: var(--blue); font-weight: 600; margin-top: 6px; }
.current { display: grid; gap: 10px; margin-top: 14px; min-width: 200px; font-weight: 600; }
.current div { display: flex; align-items: center; gap: 8px; }
.btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 16px; border: 1px solid var(--blue); background: #fff; color: var(--blue); transition: background .15s, box-shadow .15s; }
.btn:hover { background: rgba(10, 102, 194, .08); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.primary.on { background: #fff; color: var(--muted); border-color: var(--muted); }
.btn.ghost { border-color: var(--muted); color: var(--muted); }

/* Logos d'organisation */
.org { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 16px; }
.org.sm { width: 32px; height: 32px; font-size: 12px; }
.org.xl { width: 128px; height: 128px; font-size: 44px; border: 4px solid #fff; margin-top: -76px; position: relative; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.org.grey { background: #e9e5df !important; color: #8a8178; }

/* Listes */
.item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 4px; }
.item .t { font-weight: 600; font-size: 15px; }
.item a.t:hover { color: var(--blue); text-decoration: underline; }
blockquote { margin: 8px 0 0; color: var(--text); white-space: pre-line; }
.about { white-space: pre-line; margin: 0; }

/* Publications */
.post { padding: 12px 16px 4px; }
.post .ph { display: flex; gap: 8px; align-items: flex-start; }
.post .ph .t { font-weight: 600; }
.post .ph small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.post p { margin: 10px 0; white-space: pre-line; }
.reacts { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.reacts .r { display: inline-flex; align-items: center; gap: 4px; }
.reacts .r i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; margin-right: -6px; border: 1px solid #fff; }
.pacts { display: flex; justify-content: space-around; padding: 2px 0; }
.pacts button { display: flex; align-items: center; gap: 6px; padding: 10px 8px; border: 0; background: none; color: var(--muted); font-weight: 600; border-radius: 4px; transition: background .15s, color .15s; }
.pacts button:hover { background: rgba(0, 0, 0, .06); color: var(--text); }
.pacts button.on { color: var(--blue); }
.pacts button.on .i { animation: pop .35s; }

/* Barre latérale */
.mini { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; }
.mini .t { font-weight: 600; }
.mini .t:hover { color: var(--blue); text-decoration: underline; }
.mini small { display: block; color: var(--muted); font-size: 12px; }
.mini .btn { margin-top: 8px; font-size: 14px; padding: 4px 14px; border-color: var(--muted); color: var(--muted); }
.news li { padding: 6px 0; }
.news b { display: block; font-size: 14px; }
.news small { color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs span { padding: 14px 10px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs .on { color: #01754f; border-color: #01754f; }
.composer { display: flex; gap: 8px; align-items: center; padding: 12px 16px; }
.composer .fake { flex: 1; border: 1px solid #8c8c8c; border-radius: 999px; padding: 12px 16px; color: var(--muted); font-weight: 600; }
.foot { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; padding: 8px; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
code { background: #f3f6f8; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 50% { transform: scale(1.3) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 1000px) { .layout.three { grid-template-columns: minmax(0, 1fr) 300px; } .layout.three > .left { display: none; } }
@media (max-width: 800px) {
  .layout, .layout.three { grid-template-columns: minmax(0, 1fr); margin-top: 8px; padding: 0; }
  .card { border-radius: 0; }
  .top nav > * { min-width: 56px; }
  .top nav .lbl { display: none; }
  .current { display: none; }
  .cover { height: 110px; }
  .av.xl { width: 104px; height: 104px; font-size: 38px; margin-top: -60px; }
}
