/* ---------- Profil v2 ---------- */
.profile-banner { margin: 0 calc(-1 * var(--gutter)); height: 220px; background-color: var(--paper-3); background-image: linear-gradient(135deg, var(--jade-dim), transparent 60%); background-size: cover; background-position: center 30%; background-repeat: no-repeat; position: relative; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--paper), rgba(23, 22, 26, .2) 70%); }
.profile-banner + .profile-head { margin-top: -60px; position: relative; z-index: 1; align-items: flex-end; }
.avatar.big { width: 112px; height: 112px; font-size: 44px; overflow: hidden; background: var(--paper-2) center/cover; border: 3px solid var(--jade); box-shadow: 5px 5px 0 var(--jade-dim); flex: none; }
.avatar.big img { width: 100%; height: 100%; object-fit: cover; }
.profile-id { flex: 1; min-width: 0; }
.profile-id .bio { margin: 6px 0 0; color: var(--ink-soft); max-width: 60ch; }
.flash { color: var(--jade); margin: 12px 0 0; }
.profile-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.favs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.genre-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.genre-bars li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; font-size: 13.5px; }
.genre-bars i { display: block; height: 8px; background: var(--jade); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 13.5px; }
.activity a { font-weight: 700; display: block; }
.activity a:hover { color: var(--jade); }
.activity span { color: var(--muted); font-size: 12.5px; }
.me { overflow: hidden; padding: 0; }
.me img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .profile-top { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 620px) {
  .profile-banner { height: 140px; }
  .avatar.big { width: 84px; height: 84px; font-size: 34px; }
  .profile-head { gap: 12px; }
  .favs { gap: 8px; }
}

/* ---------- Réglages du profil ---------- */
.settings { max-width: 760px; }
.link { color: var(--jade); text-decoration: underline; }
.form-errors { border-left: 3px solid #F08A7E; background: rgba(240, 138, 126, .1); padding: 10px 14px; margin: 14px 0; font-size: 14px; }
.form-errors p { margin: 2px 0; }
.set-block { border: 2px solid var(--ink); background: var(--paper-2); padding: 18px 20px; margin-top: 18px; }
.set-block h2 { font: 400 17px var(--f-display); color: var(--jade); margin: 0 0 10px; }
.avatar-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-actions { display: grid; gap: 8px; justify-items: start; }
.avatar-actions .muted-note { margin: 0; }
.check.small { margin: 0; font-size: 13.5px; }
.fav-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.fav-slot { position: relative; aspect-ratio: 2 / 3; border: 1.5px dashed var(--rule); display: grid; place-items: center; color: var(--muted); font-size: 28px; overflow: hidden; }
.fav-slot.filled { border: 2px solid var(--ink); cursor: grab; }
.fav-slot.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fav-slot.filled span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font-size: 11.5px; font-weight: 700; line-height: 1.2; background: linear-gradient(0deg, rgba(11, 11, 13, .9), transparent); }
.fav-slot.filled button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 16px; }
.fav-slot.filled button:hover { color: var(--jade); }
.fav-search { position: relative; max-width: 420px; }
.fav-search input, .settings textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 9px 12px; }
.fav-search input:focus, .settings textarea:focus { outline: none; border-color: var(--jade); }
.fav-search .search-results { top: calc(100% + 4px); z-index: 5; }
.banner-choice { display: grid; gap: 8px; }
.banner-choice .check { margin: 0; }
.banner-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-left: 26px; }
.banner-preview { height: 120px; background: center/cover; border: 2px solid var(--ink); }
.set-actions { display: flex; gap: 12px; margin-top: 22px; }
@media (max-width: 620px) { .set-block { padding: 14px; } .fav-slots { gap: 6px; } }

/* ---------- Avis ---------- */
.reviews { margin-top: 8px; }
.review-form { margin-bottom: 18px; max-width: 760px; }
.review-form textarea { width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--paper-2); border: 2px solid var(--ink); padding: 10px 12px; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--jade); }
.review-form .err { color: #F08A7E; font-size: 13px; margin: 6px 0 0; }
.review-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.review-form-foot .btn { margin-left: auto; }
.review-list { display: grid; gap: 12px; max-width: 900px; }
.review { border: 1.5px solid var(--rule); background: var(--paper-2); padding: 14px 16px; }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.review .who { display: flex; align-items: center; gap: 8px; }
.review .who:hover b { color: var(--jade); }
.avatar.small { width: 30px; height: 30px; font-size: 13px; overflow: hidden; border: 1.5px solid var(--ink); }
.avatar.small img { width: 100%; height: 100%; object-fit: cover; }
.pill-score { font-size: 12px; font-weight: 700; background: var(--jade); color: var(--crow); padding: 1px 8px; }
.review-body { position: relative; }
.review-body p { margin: 0; color: var(--ink-soft); white-space: normal; overflow-wrap: anywhere; }
.review-body.blurred p { filter: blur(6px); user-select: none; }
.spoiler-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23, 22, 26, .4); border: 1.5px dashed var(--jade); color: var(--jade); font: 700 13.5px var(--f-body); cursor: pointer; }
.review footer { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 13px; }
.like { background: none; border: 1.5px solid var(--rule); color: var(--muted); padding: 2px 10px; cursor: pointer; font: 700 13px var(--f-body); }
.like.on, .like:hover { color: var(--jade); border-color: var(--jade); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: 500 13px var(--f-body); text-decoration: underline; }
.link-btn:hover { color: var(--ink); }
.review .report { position: relative; }
.review .report .menu { left: 0; right: auto; top: calc(100% + 4px); z-index: 5; }
.review-form-foot select { font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); padding: 4px 8px; }
.small-label { font-size: 13.5px; font-weight: 700; }
/* min(320px, 100%) : sur un petit écran, une colonne à la largeur de l'écran (sinon la carte en fait 320 et déborde). */
.profile-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.profile-review { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1.5px solid var(--rule); background: var(--paper-2); }
.profile-review:hover { border-color: var(--jade); }
.profile-review b { display: block; line-height: 1.25; margin-bottom: 4px; }
.profile-review .pill-score { display: inline-block; margin-bottom: 4px; }
.profile-review p { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-soft); }
/* Recadrage */
.crop-dialog { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 10, .9); }
.crop-box { width: min(760px, 100%); background: var(--paper-2); border: 2px solid var(--ink); padding: 18px; }
.crop-box h2 { font: 400 18px var(--f-display); color: var(--jade); margin: 0 0 4px; }
.crop-stage { margin-top: 12px; height: min(60vh, 460px); background: var(--crow); }
.crop-stage img { display: block; max-width: 100%; }
.cropper-view-box, .cropper-face { outline-color: var(--jade); }
.cropper-line, .cropper-point { background-color: var(--jade); }
/* Bio : la zone de texte reste dans son cadre (redimensionnable en hauteur seulement). */
.settings textarea { display: block; max-width: 100%; resize: vertical; min-height: 84px; }
/* Choix de la bannière parmi les images proposées */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.banner-opt { position: relative; aspect-ratio: 10 / 3; border: 2px solid var(--rule); cursor: pointer; overflow: hidden; background: var(--paper); }
.banner-opt img { width: 100%; height: 100%; object-fit: cover; }
.banner-opt input { position: absolute; opacity: 0; }
.banner-opt:has(input:checked) { border-color: var(--jade); box-shadow: 4px 4px 0 var(--jade-dim); }
.banner-opt:has(input:focus-visible) { outline: 2px solid var(--jade); outline-offset: 2px; }
.banner-opt.auto { display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 13px; }
.banner-opt.auto small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }

/* ---------- Succès ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.badge { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--rule); background: var(--paper-2); }
.badge-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font: 400 17px var(--f-display); border: 2px solid currentColor; transform: rotate(-6deg); }
.badge-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.badge-text b { font-size: 14px; line-height: 1.2; }
.badge-text small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.badge-bar { height: 4px; background: var(--paper-3); margin-top: 4px; }
.badge-bar i { display: block; height: 100%; background: currentColor; }
.badge-count { font-variant-numeric: tabular-nums; }
.badge.locked { opacity: .5; color: var(--muted); }
.badge.locked .badge-icon { border-style: dashed; }
.badge.tier-bronze { color: #C98B5A; }
.badge.tier-argent { color: #C9C6BD; }
.badge.tier-or { color: #E7C65B; }
.badge.tier-jade { color: var(--jade); border-color: var(--jade); box-shadow: 4px 4px 0 var(--jade-dim); }
.badge:not(.locked) b { color: var(--ink); }

/* ---------- Abonnements et fil ---------- */
.profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.follow-counts { display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); }
.follow-counts b { color: var(--ink); }
.follow-counts a:hover b { color: var(--jade); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--rule); background: var(--paper-2); }
.person:hover { border-color: var(--jade); }
.person b { display: block; }
.person small { display: block; font-size: 12px; color: var(--muted); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 820px; }
.feed-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 10px 12px; border: 1.5px solid var(--rule); background: var(--paper-2); }
.feed-line { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.feed-line .who { display: inline-flex; align-items: center; gap: 6px; }
.feed-line .who:hover b, .feed-work:hover { color: var(--jade); }
.feed-work { font-weight: 700; color: var(--ink); }
.feed-quote { margin: 2px 0 4px; font-size: 13.5px; color: var(--ink-soft); font-style: italic; }
@media (max-width: 620px) { .profile-actions { align-items: flex-start; width: 100%; } }
/* Bas du profil : en chiffres + genres préférés */
.profile-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.numbers { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.numbers div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 13.5px; }
.numbers dt { color: var(--muted); }
.numbers dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .profile-bottom { grid-template-columns: 1fr; gap: 0; } .numbers { grid-template-columns: 1fr; } }

/* ---------- Notifications ---------- */
.icon-btn.always { display: grid; position: relative; }
.bell { position: relative; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--jade); color: var(--crow); font: 700 11px/18px var(--f-body); text-align: center; }
.bell-menu { width: min(360px, 90vw); max-height: 70vh; overflow-y: auto; }
.bell-menu a, .notif-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px dashed var(--rule); font-size: 13px; }
.bell-menu a.unread, .notif-row.unread { background: var(--jade-dim); }
.bell-menu .mini, .notif-row .mini { width: 32px; aspect-ratio: 2/3; flex: none; background: var(--paper-3) center/cover; }
.bell-menu b, .notif-row b { display: block; font-size: 13.5px; }
.bell-menu small, .notif-row small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.bell-menu .muted-note { padding: 12px; margin: 0; }
.bell-all { justify-content: center; font-weight: 700; color: var(--jade); }
.crowmini { display: grid; place-items: center; font: 400 14px var(--f-display); color: var(--jade); }
.notif-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.notif-row { border: 1.5px solid var(--rule); background: var(--paper-2); margin-bottom: 8px; }
.notif-row:hover { border-color: var(--jade); }
@media (max-width: 860px) { .notif-layout { grid-template-columns: 1fr; } }

.followbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; max-width: 620px; }
.follow-prefs { display: flex; flex-wrap: wrap; gap: 6px 16px; flex-basis: 100%; }
.follow-prefs .check { margin: 0; }
.news { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.news li { padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.news-date { display: inline-block; min-width: 96px; font-size: 12px; font-weight: 700; color: var(--jade); }

.list-group-title { font: 700 13px var(--f-body, inherit); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.list-group:first-of-type .list-group-title { margin-top: 8px; }

/* Import de liste */
.import-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.import-source { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--rule); background: var(--paper); cursor: pointer; }
.import-source input { position: absolute; opacity: 0; }
.import-source small { color: var(--muted); font-size: 12.5px; }
.import-source:has(input:checked) { border-color: var(--jade); box-shadow: 4px 4px 0 var(--jade-dim); }
.import-source:has(input:focus-visible) { outline: 2px solid var(--jade); outline-offset: 2px; }
.import-result { border-color: var(--jade); }
.import-numbers { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.import-numbers b { color: var(--ink); font: 400 22px var(--f-display); margin-right: 4px; }
.import-missing summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.import-missing ul { columns: 2; column-gap: 24px; font-size: 13.5px; padding-left: 18px; max-height: 320px; overflow: auto; }
.import-missing a:hover { color: var(--jade); }
@media (max-width: 800px) {
  .import-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-missing ul { columns: 1; }
}

/* Connexion avec Discord / Google */
.social-login { display: grid; gap: 8px; margin: 14px 0 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.social-btn svg { width: 18px; height: 18px; }
.social-btn.discord { color: #fff; background: #5865F2; border-color: #5865F2; }
.social-btn.discord:hover { background: #4752C4; border-color: #4752C4; }
.social-or { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.linked-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--rule); }
.linked-row b { min-width: 80px; }
.linked-row form { margin-left: auto; }
.linked-row > a { margin-left: auto; }

/* Bannière de profil : plus haute (rapport 4:1), moins « zoomée » */
.profile-banner { height: clamp(150px, 25vw, 340px); background-position: center; } /* pas d'aspect-ratio + max-height : la largeur rétrécirait sur grand écran */
@media (max-width: 640px) { .profile-banner { height: 40vw; } }
button.fav-slot.empty { font: inherit; font-size: 28px; color: var(--muted); cursor: pointer; background: none; }
button.fav-slot.empty:hover { color: var(--jade); border-color: var(--jade); }
.banner-crop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.banner-preview-crop { flex-basis: 100%; aspect-ratio: 4 / 1; border: 2px solid var(--ink); background-repeat: no-repeat; background-color: var(--paper-3); }
.fav-add { display: grid; place-items: center; aspect-ratio: 2 / 3; border: 2px dashed var(--rule); color: var(--muted); font-size: 32px; }
.fav-add:hover { border-color: var(--jade); color: var(--jade); }

/* Badges à côté des pseudos : statut (fondateur, admin…) puis succès affiché. */
.name-badges { display: inline-flex; gap: 3px; align-items: center; margin-left: 5px; vertical-align: -2px; }
.nb { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid currentColor; color: var(--muted); background: var(--paper); flex: none; }
.nb svg { width: 12px; height: 12px; }
.nb-founder { color: var(--crow); background: var(--jade); border-color: var(--jade); }
.nb-admin { color: var(--ink); }
.nb-moderator { color: var(--jade); }
.nb-trusted { color: #C9C6BD; }
.nb-pioneer { color: #C98B5A; border-style: dashed; }
.nb-tier-bronze { color: #C98B5A; }
.nb-tier-argent { color: #C9C6BD; }
.nb-tier-or { color: #E7C65B; }
.nb-tier-jade { color: var(--jade); box-shadow: 2px 2px 0 var(--jade-dim); }
.profile-id h1 .name-badges { margin-left: 10px; gap: 5px; vertical-align: 4px; }
.profile-id h1 .nb { width: 26px; height: 26px; border-width: 2px; }
.profile-id h1 .nb svg { width: 16px; height: 16px; }

/* Statuts en toutes lettres, sur le profil */
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px 3px 7px; border: 1.5px solid currentColor; color: var(--muted); }
.role-chip.rc-founder { color: var(--crow); background: var(--jade); border-color: var(--jade); }
.role-chip.rc-admin { color: var(--ink); }
.role-chip.rc-moderator { color: var(--jade); }
.role-chip.rc-trusted { color: #C9C6BD; }
.role-chip.rc-pioneer { color: #C98B5A; border-style: dashed; }
.role-chip.rc-suspended { color: #F08A7E; }

/* Succès : icône dessinée, badge affiché, choix du badge */
.badge { position: relative; }
.badge-icon svg { transform: rotate(6deg); }
.badge-shown { position: absolute; top: 6px; right: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--crow); background: var(--jade); padding: 1px 6px; }
.badge-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; max-width: 100%; min-width: 0; }
.badge-pick select { min-width: 0; flex: 1 1 140px; }
.badge-pick select { font: inherit; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--rule); padding: 5px 8px; max-width: 100%; }

/* Signaler un profil / une liste */
.report-menu { position: relative; }
.report-menu .menu { left: auto; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 240px; }

/* Bandeau des membres suspendus */
.suspended-bar { margin: 0 0 18px; padding: 12px 16px; border: 1.5px solid #F08A7E; background: rgba(240, 138, 126, .08); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.suspended-bar b { color: #F08A7E; }
.suspended-bar a { color: var(--ink); }

/* Bloc « Modération de ce membre » sur un profil */
.mod-panel { margin: 0 0 20px; border: 1.5px dashed #F08A7E; background: var(--paper-2); padding: 10px 14px; }
.mod-panel summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #F08A7E; }
.mod-panel summary b { font-weight: 500; color: var(--ink-soft); }
.mod-panel form { display: grid; gap: 10px; margin-top: 10px; max-width: 620px; }
.mod-panel input[type=text] { font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); padding: 7px 10px; }
.mod-panel .check { margin-top: 0; }
.mod-panel .btn { justify-self: start; }
.mod-durations { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.mod-durations input { accent-color: #F08A7E; }

/* En-tête du profil en grille : photo | pseudo, badges, date | abonnés et boutons ; la bio en dessous du pseudo.
   Sur mobile : photo et pseudo côte à côte, puis abonnés et boutons, puis la bio sur toute la largeur. */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av id act" "av bio act"; column-gap: 20px; row-gap: 4px; align-items: end; }
.profile-head > .avatar { grid-area: av; }
.profile-head > .profile-id { grid-area: id; }
.profile-head > .profile-actions { grid-area: act; }
.profile-head > .profile-bio { grid-area: bio; align-self: start; margin: 0; color: var(--ink-soft); max-width: 70ch; }
.profile-head h1 { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .profile-head { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "av id" "act act" "bio bio"; column-gap: 14px; row-gap: 12px; }
  .profile-banner + .profile-head { align-items: end; }
  .profile-head h1 { font-size: 24px; line-height: 1.15; }
  .profile-head .role-chips { margin: 6px 0 4px; gap: 4px; }
  .role-chip { font-size: 10.5px; padding: 2px 7px 2px 5px; gap: 4px; }
  .role-chip svg { width: 12px; height: 12px; }
  .profile-head > .profile-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; width: auto; }
  .profile-head > .profile-actions .report-menu { flex-basis: 100%; }
  .profile-head > .profile-bio { max-width: none; }
}

/* Bloc de modération : à la taille de son contenu, un peu décollé de la photo */
.mod-panel { width: fit-content; max-width: 100%; margin-top: 22px; }
.mod-panel[open] { width: auto; max-width: 680px; }

/* Profil mobile : la photo et le pseudo partent du même haut ; si le texte est plus long, l'espace est sous la photo. */
@media (max-width: 620px) {
  .profile-head { align-items: start; }
  .profile-head > .avatar, .profile-head > .profile-id { align-self: start; }
  .profile-head > .profile-id { padding-top: 4px; }
  .profile-head h1 { text-shadow: 0 2px 12px rgba(11, 11, 13, .75); }
}

/* Profil sur ordinateur : pseudo, badges et date à côté de la photo ; la bio sur sa propre ligne, dessous. */
@media (min-width: 621px) {
  .profile-head { grid-template-areas: "av id act" "bio bio bio"; align-items: end; row-gap: 14px; }
  .profile-head > .profile-bio { max-width: 80ch; }
}

/* Personnalisation (Soutien) : couleurs du profil et du cadre, bannière envoyée */
.profile-theme .avatar.big { border-color: var(--frame, var(--jade)); box-shadow: 5px 5px 0 var(--frame-dim, var(--jade-dim)); }
.perks { position: relative; }
.perks.locked fieldset { opacity: .45; }
.perks fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.perk-tag { font: 700 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--crow); background: #F47FB0; padding: 2px 8px; vertical-align: 3px; margin-left: 6px; }
.perk-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.perk-label { font-size: 13.5px; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--rule); }
.swatch.none span { background: repeating-linear-gradient(135deg, var(--paper-3) 0 5px, var(--paper-2) 5px 10px); }
.swatch input:checked + span { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 3px; }
.perk-foot { margin: 0; }
@media (max-width: 620px) { .perk-row { grid-template-columns: 1fr; } }
.nb-supporter { color: var(--crow); background: #F47FB0; border-color: #F47FB0; }
.role-chip.rc-supporter { color: var(--crow); background: #F47FB0; border-color: #F47FB0; }

/* Fondateur : rôle du membre (users/show) */
.role-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 12px 16px; border-color: var(--jade); }
.role-pick label { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; }
.role-pick small { color: var(--muted); font-size: 12.5px; }
.role-pick select { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); padding: 6px 8px; }

/* Liste du profil, vue « Tout » : une ligne par catégorie, qui défile horizontalement */
.list-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.list-group-head .list-group-title { margin: 0; padding: 0; border: 0; }
.list-group:first-of-type .list-group-head { margin-top: 8px; }
.list-group-title small { margin-left: 6px; color: var(--jade); font-size: 12px; }
.list-group-head .link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--jade); cursor: pointer; white-space: nowrap; }
.list-group.row .grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; }
.list-group.row .grid > .card { flex: 0 0 150px; scroll-snap-align: start; }
.list-more-card { flex: 0 0 120px; display: grid; place-content: center; gap: 4px; text-align: center; border: 1.5px dashed var(--rule); background: none; color: var(--jade); cursor: pointer; font: inherit; aspect-ratio: 2 / 3; align-self: start; }
.list-more-card b { font-size: 22px; }
.list-more-card:hover { border-color: var(--jade); background: var(--jade-dim); }
.list-more { text-align: center; margin: 16px 0 0; }
@media (max-width: 620px) {
  .list-group.row .grid > .card { flex-basis: 118px; }
  .list-more-card { flex-basis: 100px; }
}
/* Barre horizontale des lignes : même style que la barre verticale du site (fond du cadre au lieu du bureau) */
.list-group.row .grid::-webkit-scrollbar { height: 10px; }
.list-group.row .grid::-webkit-scrollbar-track { background: var(--paper-2); border-radius: 999px; }
.list-group.row .grid::-webkit-scrollbar-thumb { background: var(--jade); border: 3px solid var(--paper-2); border-radius: 999px; }
.list-group.row .grid::-webkit-scrollbar-thumb:hover { background: #8BE3BB; border-width: 2px; }
@supports not selector(::-webkit-scrollbar) { .list-group.row .grid { scrollbar-color: var(--jade) var(--paper-2); } }
/* Flèches et glisser à la souris (ordinateur) */
.hscroll { position: relative; }
.hs-btn { position: absolute; top: 34%; z-index: 4; width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  font: 700 26px/1 var(--f-body); color: var(--ink); background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--jade-dim); cursor: pointer; transform: translateY(-50%); }
.hs-btn:hover { border-color: var(--jade); color: var(--jade); }
.hs-btn.prev { left: -14px; }
.hs-btn.next { right: -14px; }
.list-group.row .grid { cursor: grab; }
.list-group.row .grid.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.list-group.row .grid.dragging a { pointer-events: none; }
@media (hover: none) { .hs-btn { display: none !important; } .list-group.row .grid { cursor: auto; } }

.hs-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
