:root {
  --ink: #0b1210;
  --ink-2: #111a16;
  --ink-3: #070c0a;
  --paper: #efece1;
  --paper-2: #f6f2e8;
  --champ: #dcc9a2;
  --champ-soft: #c6b083;
  --bronze: #7a6434;
  --forest: #33473b;
  --line: rgba(239, 236, 225, .12);
  --line-strong: rgba(239, 236, 225, .22);
  --line-ink: rgba(11, 18, 16, .14);
  --card: rgba(239, 236, 225, .03);
  --t-hi: rgba(239, 236, 225, .94);
  --t-mid: rgba(239, 236, 225, .68);
  --t-low: rgba(239, 236, 225, .52);
  --t-faint: rgba(239, 236, 225, .4);
  --serif: "Instrument Serif", serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--champ); color: var(--ink); }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; border-radius: 2px; }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; background: var(--ink-2); border-right: 1px solid var(--line); padding: 1.7rem 1.25rem; display: flex; flex-direction: column; z-index: 20; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; gap: .35rem; align-items: center; font: 500 .7rem/1 var(--mono); letter-spacing: .11em; }
.wordmark i { width: 7px; height: 7px; background: var(--champ); border-radius: 50%; }
.mobile-close { display: none; border: 0; background: none; color: var(--paper); font-size: 1.5rem; }
.member { display: flex; align-items: center; gap: .8rem; padding: 2.2rem 0 1.7rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--champ); color: var(--ink); font: 500 .56rem/1 var(--mono); }
.member > div:last-child { display: flex; flex-direction: column; gap: .25rem; }
.member strong { font-size: .66rem; color: var(--t-hi); }
.member span { font: 300 .52rem/1 var(--mono); color: var(--t-low); }
.sidebar nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar nav button { width: 100%; display: flex; align-items: center; gap: .8rem; border: 0; background: transparent; color: var(--t-mid); padding: .75rem .7rem; text-align: left; font-size: .64rem; border-radius: 2px; transition: color .2s, background .2s; }
.sidebar nav button:hover { color: var(--paper); background: rgba(239, 236, 225, .04); }
.sidebar nav button span { font: 300 .48rem/1 var(--mono); opacity: .55; }
.sidebar nav button.active { background: var(--paper); color: var(--ink); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .8rem; }
.sidebar-foot a { display: flex; justify-content: space-between; padding-bottom: .55rem; border-bottom: 1px solid var(--line); font-size: .56rem; color: var(--t-mid); transition: color .2s; }
.sidebar-foot a:hover { color: var(--champ); }
.sidebar-foot small { margin-top: .8rem; font: 300 .5rem/1.7 var(--mono); color: var(--t-faint); letter-spacing: .08em; }

/* ---------- Main / topbar ---------- */
.club-main { margin-left: 245px; min-height: 100vh; }
.topbar { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 3vw; border-bottom: 1px solid var(--line); background: rgba(11, 18, 16, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.topbar > div { display: flex; gap: 2rem; font: 300 .54rem/1 var(--mono); letter-spacing: .08em; color: var(--t-low); text-transform: uppercase; }
.menu-open { visibility: hidden; border: 0; background: none; color: var(--paper); text-align: left; padding: 0; font: .56rem/1 var(--mono); text-transform: uppercase; }
.notifications { justify-self: end; width: 33px; height: 33px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--paper); position: relative; }
.notifications span { position: absolute; right: -3px; top: -4px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--champ); color: var(--ink); font: 500 .42rem/1 var(--mono); }

/* ---------- Views ---------- */
.view { padding: 4.5rem 3vw 6rem; max-width: 1500px; margin: 0 auto; animation: viewIn .45s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.page-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: 8vw; align-items: end; margin-bottom: 3.7rem; }
.page-intro small, .card-label, .academy-hero > div > span, .case-stats small, .date-block small,
.events-list article > div:nth-child(2) > small, .content-calendar small, .lab-session small { font: 400 .56rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t-low); }
.page-intro h1 { margin: .8rem 0 0; font: 400 clamp(3.7rem, 6vw, 7rem)/.88 var(--serif); letter-spacing: -.045em; color: var(--t-hi); }
.page-intro > p { margin: 0; color: var(--t-mid); font-size: .78rem; line-height: 1.7; max-width: 440px; }

.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.overview-grid article, .lab-grid article, .brand-grid article { min-height: 330px; padding: 1.3rem; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.span-2 { grid-column: span 2; }
.card-label { display: flex; justify-content: space-between; }

/* Cartes focales ivoire (ex-.dark) : le contraste premium sur fond nocturne */
.dark { background: var(--paper) !important; color: var(--ink) !important; border-color: transparent !important; }
.dark .card-label { color: rgba(11, 18, 16, .48); }
.dark p { color: rgba(11, 18, 16, .58); }
/* Surfaces forêt (ex-.accent et blocs verts clairs) */
.accent { background: rgba(51, 71, 59, .45) !important; border-color: rgba(51, 71, 59, .6) !important; }

.action-body { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: end; margin: auto 0 0; }
.lesson-number { width: 115px; height: 115px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 400 3.5rem/1 var(--serif); color: var(--t-hi); }
.lesson-number small { font: 400 .46rem/1 var(--mono); color: var(--t-low); }
.action-body > div:last-child > small { font: 400 .54rem/1 var(--mono); color: var(--t-low); text-transform: uppercase; letter-spacing: .06em; }
.action-body h2, .event-card h2, .case-card h2, .memo-builder h2, .brand-grid h2, .academy-hero h2, .lab-session h2, .content-calendar h2, .events-list h2 { margin: .7rem 0; font: 400 2.15rem/1 var(--serif); }
.action-body p, .event-card p, .case-card p, .brand-grid p, .lab-session p, .content-calendar p, .events-list p { margin: 0; color: var(--t-mid); font-size: .68rem; line-height: 1.6; }

/* Boutons "underline-top" */
.action-body button, .thesis-card button, .member-card button, .event-card > button, .case-card button, .brand-grid button, .content-calendar button, .lab-session button, .events-list button, .people-grid button { border: 0; border-top: 1px solid currentColor; background: transparent; color: inherit; padding: .75rem 0 0; margin-top: 1.2rem; display: flex; justify-content: space-between; font-size: .56rem; text-transform: uppercase; letter-spacing: .04em; transition: color .2s; }
.overview-grid article:not(.dark) button:hover, .people-grid button:hover, .lab-session button:hover, .content-calendar button:hover { color: var(--champ); }

.progress-card, .thesis-card { min-height: 360px !important; }
/* Ring de progression réel : piloté par --p (pourcentage) */
.progress-ring { position: relative; width: 120px; height: 120px; margin: 2.2rem auto 1.5rem; border-radius: 50%; background: conic-gradient(var(--bronze) calc(var(--p, 0) * 1%), rgba(11, 18, 16, .12) 0); display: grid; place-items: center; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.progress-ring span { position: relative; z-index: 1; font: 400 2.7rem/1 var(--serif); }
.progress-ring small { font-size: 1rem; }
.progress-card h3, .thesis-card h3, .weekly-card h3, .member-card h3 { margin: auto 0 .4rem; font: 400 1.6rem/1 var(--serif); }
.progress-card p, .thesis-card p, .weekly-card > p, .member-card > p { margin: 0; font-size: .62rem; line-height: 1.6; opacity: .6; }
.thesis-symbol { margin-top: 2.5rem; font: 400 3.6rem/1 var(--serif); color: var(--champ); }

.event-card { display: grid !important; grid-template-columns: 120px 1fr auto; gap: 2rem; align-items: end; }
.event-date { display: flex; align-items: baseline; gap: .6rem; }
.event-date span { font: 400 5.8rem/1 var(--serif); color: var(--bronze); }
.event-date small { font: 300 .5rem/1.4 var(--mono); }
.attendees { display: flex; align-items: center; margin-top: 1.2rem; }
.attendees i { width: 28px; height: 28px; margin-right: -6px; border: 2px solid var(--paper); border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 400 .44rem/1 var(--mono); font-style: normal; }
.attendees span { margin-left: 1rem; font: 300 .52rem/1 var(--mono); opacity: .55; }
.event-card > button { align-self: end; min-width: 130px; }

.weekly-card label { display: flex; align-items: center; gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .62rem; color: var(--t-mid); }
.weekly-card h3 { margin: 2.4rem 0 1rem; color: var(--t-hi); }
.weekly-card input { accent-color: var(--champ); }

.member-card .card-label span:last-child { color: var(--champ); }
.member-profile { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; }
.large-avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(51, 71, 59, .6); color: var(--paper); font: 400 1.3rem/1 var(--serif); }
.member-profile h3 { margin: 0 0 .3rem; }
.member-profile p { margin: 0; font-size: .54rem; color: var(--t-low); }

/* ---------- Personal Brand ---------- */
.academy-hero { min-height: 300px; padding: 2.5rem; display: flex; justify-content: space-between; align-items: end; background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.academy-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(122, 100, 52, .35); border-radius: 50%; right: -50px; top: -100px; }
.academy-hero > div > span { color: rgba(11, 18, 16, .45); }
.academy-hero h2 { font-size: 3.5rem; max-width: 680px; }
.academy-hero p { font: 300 .56rem/1 var(--mono); color: rgba(11, 18, 16, .5); }
.course-score { width: 130px; height: 130px; border: 1px solid rgba(11, 18, 16, .25); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 2; }
.course-score span { font: 400 2.5rem/1 var(--serif); }
.course-score small { margin-top: .5rem; font: 300 .48rem/1 var(--mono); color: var(--bronze); letter-spacing: .08em; }
.module-list { border-top: 1px solid var(--line); margin-top: 2rem; }
.module-list article { min-height: 102px; padding: 1rem 1.2rem; display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.module-list article > span { font: 300 .56rem/1 var(--mono); color: var(--t-faint); }
.module-list small { font: 300 .52rem/1 var(--mono); color: var(--t-low); text-transform: uppercase; letter-spacing: .06em; }
.module-list h3 { margin: .45rem 0 0; font: 400 1.45rem/1 var(--serif); color: var(--t-hi); }
.module-list i { font-style: normal; color: var(--champ); }
.module-list button { border: 0; background: var(--paper); color: var(--ink); padding: .65rem 1rem; font-size: .54rem; text-transform: uppercase; letter-spacing: .04em; transition: background .2s; }
.module-list button:hover { background: var(--champ); }
.module-list .active { background: rgba(220, 201, 162, .08); border-left: 2px solid var(--champ); }
.module-list .active h3 { color: var(--paper); }

/* ---------- Le Cercle ---------- */
.lab-grid, .brand-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.case-logo { margin-top: 2.5rem; font: 400 4rem/1 var(--serif); color: var(--bronze); }
.case-card h2 { margin: auto 0 1.5rem; max-width: 520px; font-size: 3rem; }
.case-stats { display: flex; gap: 3rem; margin: 0 0 1.2rem; }
.case-stats span { display: flex; flex-direction: column; gap: .4rem; font: 300 .62rem/1 var(--mono); }
.case-stats small { color: rgba(11, 18, 16, .45); }
.memo-builder h2 { margin: 2rem 0 1rem; color: var(--t-hi); }
.memo-steps { display: flex; flex-direction: column; }
.memo-steps button { display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--t-mid); padding: .9rem 0; text-align: left; font-size: .6rem; }
.memo-steps .done { color: var(--t-low); }
.memo-steps .done span { color: var(--champ); }
.memo-steps .current { font-weight: 600; color: var(--paper); }
.lab-session, .content-calendar { margin-top: 1rem; padding: 2rem; display: flex; justify-content: space-between; align-items: end; border: 1px solid rgba(51, 71, 59, .6); background: rgba(51, 71, 59, .35); }
.lab-session h2, .content-calendar h2 { margin-bottom: .4rem; color: var(--t-hi); }
.lab-session button, .content-calendar button { min-width: 190px; }

/* ---------- Projets ---------- */
.brand-position { background: rgba(51, 71, 59, .45) !important; border-color: rgba(51, 71, 59, .6) !important; }
.position-map { height: 180px; margin: 2rem 0; position: relative; border: 1px solid var(--line-strong); border-radius: 50%; }
.position-map::before, .position-map::after { content: ""; position: absolute; background: var(--line); }
.position-map::before { width: 100%; height: 1px; top: 50%; }
.position-map::after { height: 100%; width: 1px; left: 50%; }
.position-map span { position: absolute; font: 300 .5rem/1 var(--mono); letter-spacing: .06em; color: var(--t-mid); }
.position-map span:nth-child(1) { left: 8%; top: 18%; }
.position-map span:nth-child(2) { right: 8%; top: 22%; }
.position-map span:nth-child(3) { left: 44%; bottom: 12%; }
.position-map i { position: absolute; left: 56%; top: 38%; width: 11px; height: 11px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 0 8px rgba(220, 201, 162, .12); }
.brand-tasks h2 { margin: 2.5rem 0 2rem; font-size: 3rem; }
.brand-tasks ol { list-style: none; padding: 0; margin: auto 0 0; }
.brand-tasks li { display: grid; grid-template-columns: 35px 1fr; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--line-ink); font-size: .66rem; color: rgba(11, 18, 16, .65); }
.brand-tasks li span { font: 300 .5rem/1 var(--mono); color: var(--bronze); }

/* ---------- Réseau ---------- */
.network-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.network-toolbar input { width: min(480px, 60%); border: 1px solid var(--line); background: var(--card); color: var(--paper); outline: none; padding: .9rem 1rem; font-size: .66rem; }
.network-toolbar input::placeholder { color: var(--t-faint); }
.network-toolbar input:focus { border-color: var(--champ); }
.network-toolbar span { font: 300 .52rem/1 var(--mono); color: var(--t-low); letter-spacing: .06em; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.people-grid article { min-height: 330px; padding: 1.3rem; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; transition: border-color .25s, background .25s; }
.people-grid article:hover { border-color: var(--line-strong); background: rgba(239, 236, 225, .05); }
.person-photo { width: 75px; height: 75px; margin-bottom: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(51, 71, 59, .6); color: var(--paper); font: 400 1.7rem/1 var(--serif); }
.people-grid small { font: 300 .5rem/1 var(--mono); color: var(--t-low); letter-spacing: .06em; }
.people-grid h2 { margin: .65rem 0 .8rem; font: 400 2rem/1 var(--serif); color: var(--t-hi); }
.people-grid p { margin: 0; color: var(--t-mid); font-size: .64rem; line-height: 1.6; }
.people-grid button { margin-top: auto; }

/* ---------- Événements ---------- */
.events-list { border-top: 1px solid var(--line); }
.events-list article { min-height: 170px; padding: 1.4rem; display: grid; grid-template-columns: 110px 1fr auto; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); }
.date-block { display: flex; align-items: baseline; gap: .5rem; }
.date-block span { font: 400 4rem/1 var(--serif); color: var(--champ); }
.events-list .featured .date-block span { color: var(--bronze); }
.events-list h2 { margin: .5rem 0; color: inherit; }
.events-list article:not(.featured) h2 { color: var(--t-hi); }
.events-list button { min-width: 130px; }

/* Sur carte ivoire (.dark), tout texte secondaire repasse en encre — prime sur les règles partagées */
.dark p, .dark li { color: rgba(11, 18, 16, .58) !important; }
.dark small, .dark .card-label, .dark .card-label span { color: rgba(11, 18, 16, .48) !important; }
.dark h2, .dark h3 { color: var(--ink) !important; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 150%); padding: .85rem 1.2rem; background: var(--paper); color: var(--ink); font: 300 .56rem/1.4 var(--mono); box-shadow: 0 15px 40px rgba(0, 0, 0, .45); transition: transform .3s; }
.toast.visible { transform: translate(-50%, 0); }

/* ---------- Connexion & onboarding ---------- */
body.gate-locked { overflow: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 40; background: var(--ink); display: grid; place-items: center; padding: 1.5rem; overflow: auto; }
.auth-gate::before { content: ""; position: fixed; width: 70vw; height: 70vw; border-radius: 50%; right: -30vw; top: -30vw; background: radial-gradient(circle, rgba(51, 71, 59, .4), transparent 65%); }
.onboard { position: fixed; inset: 0; z-index: 45; background: rgba(7, 12, 10, .82); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1.5rem; overflow: auto; }
.auth-card, .onboard-card { position: relative; width: min(420px, 100%); background: var(--paper); color: var(--ink); padding: 2.2rem; box-shadow: 0 35px 80px rgba(0, 0, 0, .5); }
.auth-card .wordmark { color: var(--ink); }
.auth-card .wordmark i { background: var(--bronze); }
.auth-tag { display: block; margin: 1.8rem 0 .6rem; font: 400 .54rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 18, 16, .45); }
.onboard-card .auth-tag { margin-top: 0; }
.auth-card h2, .onboard-card h2 { margin: 0 0 .7rem; font: 400 2.3rem/1 var(--serif); }
.onboard-card h2 { margin-bottom: 1.4rem; }
.auth-copy { margin: 0 0 1.6rem; font-size: .74rem; line-height: 1.7; color: rgba(11, 18, 16, .6); }
.auth-card label, .onboard-card label { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.auth-card label > span, .onboard-card label > span { font: .54rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(11, 18, 16, .6); }
.auth-card input, .onboard-card input { border: 0; border-bottom: 1px solid rgba(11, 18, 16, .24); border-radius: 0; background: transparent; color: var(--ink); outline: none; padding: .6rem 0 .75rem; font-size: .8rem; }
.auth-card input:focus, .onboard-card input:focus { border-color: var(--ink); }
.auth-error { min-height: .9rem; margin: .2rem 0 .6rem; color: #9a3f30; font: .56rem/1.5 var(--mono); }
.auth-submit { width: 100%; border: 0; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paper); padding: .95rem 1.1rem; font-size: .7rem; transition: background .25s, opacity .25s; }
.auth-submit:hover { background: var(--ink-2); }
.auth-submit[disabled] { opacity: .55; cursor: progress; }
.auth-sent { text-align: center; padding: 1.5rem 0 .5rem; }
.auth-sent i { width: 46px; height: 46px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--champ); font-style: normal; }
.auth-sent h3 { margin: 1rem 0 .5rem; font: 400 1.9rem/1 var(--serif); }
.auth-sent p { margin: 0; font-size: .72rem; color: rgba(11, 18, 16, .6); line-height: 1.7; }
.auth-back { display: inline-block; margin-top: 1.6rem; font: .56rem/1 var(--mono); color: rgba(11, 18, 16, .5); transition: color .2s; }
.auth-back:hover { color: var(--ink); }

/* ---------- Le fil du Cercle ---------- */
.cercle-feed { margin-top: 1rem; border: 1px solid var(--line); background: var(--card); padding: 1.5rem; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.feed-head small { font: 400 .56rem/1 var(--mono); letter-spacing: .08em; color: var(--t-low); text-transform: uppercase; }
.feed-head span { font: 300 .52rem/1 var(--mono); color: var(--t-faint); }
.composer { border: 1px solid var(--line); padding: 1rem; margin-bottom: 1.5rem; background: rgba(239, 236, 225, .02); }
.composer-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.composer select { border: 1px solid var(--line); background: var(--ink-2); color: var(--t-mid); padding: .5rem .7rem; font-size: .6rem; }
.composer-send { border: 0; background: var(--paper); color: var(--ink); padding: .55rem 1rem; font-size: .56rem; text-transform: uppercase; letter-spacing: .04em; display: flex; gap: .6rem; align-items: center; transition: background .2s; }
.composer-send:hover { background: var(--champ); }
.composer textarea { width: 100%; border: 0; background: transparent; color: var(--paper); outline: none; resize: vertical; font-size: .74rem; line-height: 1.6; font-family: var(--sans); }
.composer textarea::placeholder { color: var(--t-faint); }
.post { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.post-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(51, 71, 59, .6); color: var(--paper); font: 400 .5rem/1 var(--mono); flex: none; }
.post-head strong { font-size: .62rem; color: var(--t-hi); }
.post-head small { font: 300 .5rem/1 var(--mono); color: var(--t-faint); }
.post-kind { margin-left: auto; font: 300 .48rem/1 var(--mono); color: var(--champ); letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.post p { margin: 0; font-size: .72rem; line-height: 1.7; color: var(--t-mid); white-space: pre-wrap; }
.rsvp-btn.on { color: var(--champ) !important; }
.events-list .featured .rsvp-btn.on { color: var(--bronze) !important; }

/* ---------- Parrainage ---------- */
.referral { margin-top: 2.5rem; border: 1px solid var(--line); background: var(--card); padding: 1.5rem; }
.referral-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.referral-head small { font: 400 .56rem/1 var(--mono); letter-spacing: .08em; color: var(--t-low); text-transform: uppercase; }
.referral-head span { font: 300 .52rem/1 var(--mono); color: var(--champ); letter-spacing: .06em; }
.referral-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
.referral-form h2 { margin: 0 0 .6rem; font: 400 1.9rem/1 var(--serif); color: var(--t-hi); }
.referral-form > p { margin: 0 0 1.4rem; font-size: .68rem; line-height: 1.7; color: var(--t-mid); max-width: 420px; }
.referral-form label { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.referral-form label > span { font: .54rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--t-low); }
.referral-form input, .referral-form textarea { border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--paper); outline: none; padding: .5rem 0 .65rem; font-size: .74rem; resize: vertical; font-family: var(--sans); }
.referral-form input:focus, .referral-form textarea:focus { border-color: var(--champ); }
.referral-form input::placeholder, .referral-form textarea::placeholder { color: var(--t-faint); }
.referral-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.referral-error { min-height: .9rem; margin: .2rem 0 .8rem; color: #c98d7a; font: .56rem/1.5 var(--mono); }
.referral-form button[disabled] { opacity: .45; cursor: not-allowed; }
.referral-mine h3 { margin: 0 0 1rem; font: 400 1.4rem/1 var(--serif); color: var(--t-hi); }
.referral-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.referral-item strong { display: block; font-size: .66rem; color: var(--t-hi); }
.referral-item small { font: 300 .52rem/1 var(--mono); color: var(--t-faint); }
.referral-status { font: 300 .5rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t-mid); border: 1px solid var(--line-strong); padding: .35rem .55rem; border-radius: 2px; white-space: nowrap; }
.referral-status.ok { color: var(--ink); background: var(--champ); border-color: var(--champ); }
.referral-status.off { color: var(--t-faint); border-color: var(--line); text-decoration: line-through; }
.referral-empty { margin: 0; font-size: .64rem; color: var(--t-faint); }
.ref-by { display: block; margin-top: .8rem; font: 300 .5rem/1 var(--mono); color: var(--champ); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .page-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .action-body { grid-template-columns: 110px 1fr; }
  .event-card { grid-template-columns: 100px 1fr; }
  .event-card > button { grid-column: 2; }
  .lab-grid, .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; width: min(290px, 84vw); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .sidebar.open { transform: none; }
  .mobile-close { display: block; }
  .club-main { margin-left: 0; }
  .topbar { padding: 0 1rem; }
  .menu-open { visibility: visible; }
  .topbar > div { display: none; }
  .view { padding: 3rem 1rem 5rem; }
  .page-intro h1 { font-size: 3.7rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .event-card { grid-template-columns: 90px 1fr; }
  .action-body { grid-template-columns: 1fr; }
  .lesson-number { width: 90px; height: 90px; }
  .people-grid { grid-template-columns: 1fr; }
  .academy-hero { padding: 1.5rem; display: block; }
  .academy-hero h2 { font-size: 2.5rem; }
  .course-score { width: 95px; height: 95px; margin-top: 2rem; }
  .module-list article { grid-template-columns: 35px 1fr; }
  .module-list article > button, .module-list article > i { grid-column: 2; }
  .case-card h2, .brand-tasks h2 { font-size: 2.5rem; }
  .lab-session, .content-calendar { align-items: stretch; flex-direction: column; gap: 1rem; }
  .events-list article { grid-template-columns: 70px 1fr; }
  .events-list button { grid-column: 2; }
  .network-toolbar { align-items: stretch; flex-direction: column; gap: 1rem; }
  .network-toolbar input { width: 100%; }
  .referral-grid { grid-template-columns: 1fr; gap: 2rem; }
  .referral-row { grid-template-columns: 1fr; gap: 0; }
  .toast { width: calc(100% - 2rem); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
