/* Pages communes de La Papeterie (amis, messages) : meme style que GameVault. */
:root {
    --gv-bg: #090b12;
    --gv-surface: #111521;
    --gv-surface-2: #171b29;
    --gv-line: #272d3d;
    --gv-text: #f4f6fb;
    --gv-muted: #9aa4b8;
    --gv-violet: #7c5cff;
    --gv-violet-strong: #6347e8;
    --gv-green: #45bf82;
    --gv-blue: #5797f7;
    --gv-orange: #e6a352;
    --gv-red: #e26776;
}
* { box-sizing: border-box; }
body.gv-body {
    min-height: 100vh;
    margin: 0;
    color: var(--gv-text);
    background: var(--gv-bg);
    font-family: Arial, Helvetica, sans-serif;
}
body.lp-site { margin: 0; }
button, input, select, textarea { font: inherit; }
.gv-logout, .gv-secondary { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--gv-line); border-radius: 7px; color: #edf0f7; background: #151926; text-decoration: none; }
.gv-logout:hover, .gv-secondary:hover { border-color: #66718b; background: #1b2030; }
.gv-primary { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 7px; color: #fff; background: var(--gv-violet-strong); font-weight: 700; text-decoration: none; cursor: pointer; }
.gv-primary:hover { background: var(--gv-violet); }
.gv-eyebrow { margin: 0 0 7px; color: #a89aff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.gv-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #2f5d49; border-radius: 7px; color: #b9f0d0; background: #152b22; }
.gv-alert-error { border-color: #703641; color: #ffbdc6; background: #321a20; }
.gv-panel { padding: 20px; border: 1px solid var(--gv-line); border-radius: 9px; background: #111520; }
.gv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.gv-panel-head span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #c9c0ff; background: #29224b; font-weight: 700; }
.gv-tag { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border: 1px solid #30384a; border-radius: 5px; color: #b8c4d8; background: #171d2a; font-size: 11px; }
.gv-tag-my-rating { color: #f1c1f0; border-color: #714b70; background: #332039; }
.gv-modal-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #384054; border-radius: 6px; color: #edf1f9; background: #191e2b; font-size: 25px; line-height: 1; cursor: pointer; }
.gv-modal-close:hover { background: #252b3b; }
.gv-toast { position: fixed; left: 50%; bottom: 22px; z-index: 1000; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #3b455d; border-radius: 8px; color: #f4f6fb; background: #1b2131; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.2s, transform 0.2s; }
.gv-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.gv-muted { margin: 0; }
.gv-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gv-cover-fallback { background: #253151; }
/* ===================== Navigation commune ===================== */
.gv-sidebar { display: flex; flex-direction: column; }
.gv-sidebar > .gv-nav { flex: 1 1 auto; align-content: start; }
.gv-nav .gv-nav-label { margin-top: 18px; }
.gv-nav > .gv-nav-link:first-child { margin-bottom: 2px; }
.gv-nav-badge { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 11px; color: #fff !important; background: #e2557a; font-size: 11px !important; font-weight: 800; }
.gv-nav-badge[hidden] { display: none; }
.gv-nav-context { display: grid; gap: 4px; margin: 0 0 6px 14px; padding: 4px 0 6px 10px; border-left: 1px solid #30384a; }
.gv-nav-context .gv-library-subnav { margin: 0; padding: 0; border: 0; }
.gv-nav-sublabel { margin: 10px 8px 4px; color: #6f7a8f; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.gv-nav-context .gv-category-form { margin: 4px 0 0; }
.gv-sidebar-user { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 6px 0; border-top: 1px solid #1d2230; }
.gv-sidebar-user-link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; color: var(--gv-text); text-decoration: none; }
.gv-sidebar-user-link:hover { background: #171b27; }
.gv-sidebar-user-link span:last-child { min-width: 0; display: grid; }
.gv-sidebar-user-link strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.gv-sidebar-user-link small { color: #7f899d; font-size: 11px; }
.gv-sidebar-logout { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #8f99ad; font-size: 16px; text-decoration: none; }
.gv-sidebar-logout:hover { color: #ffc4cd; background: #2a1c23; }
.gv-sidebar-login { width: 100%; }

.gv-avatar { --gv-avatar: #7c5cff; width: 36px; height: 36px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--gv-avatar); font-size: 15px; font-weight: 800; line-height: 1; }
.gv-avatar-xs { width: 20px; height: 20px; font-size: 10px; }
.gv-avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.gv-avatar-lg { width: 48px; height: 48px; font-size: 20px; }

.gv-icon-link { position: relative; width: 38px; height: 38px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid var(--gv-line); border-radius: 8px; color: #edf0f7; background: #151926; font-size: 16px; text-decoration: none; }
.gv-icon-link:hover { border-color: #66718b; background: #1b2030; }
.gv-dot-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--gv-bg); border-radius: 10px; color: #fff; background: #e2557a; font-size: 10px; font-weight: 800; }
.gv-dot-badge[hidden] { display: none; }
.gv-account-user { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px 0 5px; border: 1px solid var(--gv-line); border-radius: 20px; color: #edf0f7; background: #151926; text-decoration: none; }
.gv-account-user:hover { border-color: #66718b; }
.gv-account .gv-avatar { display: inline-grid; }
.gv-mobile-header-actions { display: flex; align-items: center; gap: 10px; }
.gv-mobile-menu-button { position: relative; }
.gv-menu-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e2557a; }

/* ===================== Boutons et elements communs ===================== */
.gv-small-button { min-height: 32px !important; padding: 0 11px !important; font-size: 13px; }
.gv-ghost { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; color: #b4bdce; background: transparent; cursor: pointer; text-decoration: none; }
.gv-ghost:hover { color: #fff; background: #1b2030; }
.gv-link-button { padding: 0; border: 0; color: #8f99ad; background: none; font-size: 12px; text-decoration: underline; cursor: pointer; }
.gv-link-button:hover { color: #ffc4cd; }
.gv-icon-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #8f99ad; background: transparent; font-size: 18px; cursor: pointer; }
.gv-icon-button:hover { color: #ffc4cd; background: #2a1c23; }
.gv-block-button { width: 100%; margin-top: 12px; }
button.gv-secondary { cursor: pointer; font-family: inherit; font-size: inherit; }
.gv-small-button { font-size: 13px !important; }
.gv-secondary:disabled, .gv-primary:disabled { opacity: 0.55; cursor: wait; }
.gv-tag-ok { color: #b9f0d0; border-color: #2f5d49; background: #152b22; }
.gv-inline-badge { min-width: 18px; height: 18px; display: inline-grid; place-items: center; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #e2557a; font-size: 10px; }
.gv-toast.is-error { border-color: #703641; background: #321a20; }
.gv-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 22px; }
.gv-page-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; }
.gv-page-lead { max-width: 640px; margin: 10px 0 0; color: #9ab4dd; font-size: 15px; line-height: 1.5; }
.gv-page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gv-empty-state { display: grid; justify-items: center; gap: 12px; padding: 34px 20px; text-align: center; }
.gv-empty-state p { margin: 0; color: #aeb9d0; line-height: 1.6; }
.gv-empty-state strong { color: var(--gv-text); }
.gv-empty-icon { font-size: 34px; }
.gv-panel h2 { margin: 0 0 14px; font-size: 17px; }
.gv-panel-head h2 { margin: 0; }

/* ===================== Accueil ===================== */
.gv-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 26px; align-items: center; margin-top: 26px; padding: 30px 28px; border: 1px solid #2d2a55; border-radius: 14px; background: radial-gradient(circle at 0 0, rgba(124, 92, 255, 0.28), transparent 55%), linear-gradient(135deg, #17163a, #111526 70%); }
.gv-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.gv-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gv-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gv-hero-stats a { min-height: 86px; display: grid; align-content: center; gap: 6px; padding: 14px 16px; border: 1px solid #2f3555; border-radius: 10px; color: var(--gv-text); background: rgba(13, 16, 30, 0.72); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.gv-hero-stats a:hover { border-color: #6d5ce0; transform: translateY(-2px); }
.gv-hero-stats strong { font-size: 26px; }
.gv-hero-stats span { color: #9ab4dd; font-size: 11px; text-transform: uppercase; }

.gv-notifications { display: grid; gap: 10px; margin-top: 18px; }
.gv-notification { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #3b3270; border-radius: 10px; color: var(--gv-text); background: #16152c; text-decoration: none; }
a.gv-notification:hover { border-color: #6d5ce0; }
.gv-notification p { flex: 1; min-width: 0; margin: 0; color: #c6cde0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-notification-actions { display: flex; gap: 8px; }

.gv-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; margin-top: 8px; }
.gv-home-main { min-width: 0; }
.gv-home-side { position: sticky; top: 20px; display: grid; gap: 16px; margin-top: 26px; }
.gv-home-section { margin-top: 26px; }
.gv-home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gv-home-section-head h2 { margin: 0; font-size: 18px; }
.gv-home-section-head a { flex: 0 0 auto; color: #b8a9ff; font-size: 13px; text-decoration: none; }
.gv-home-section-head a:hover { text-decoration: underline; }
.gv-home-section-head .gv-muted { font-size: 12px; text-align: right; }
.gv-home-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.gv-home-card { min-width: 0; display: grid; gap: 8px; padding: 0; border: 0; color: var(--gv-text); background: none; text-align: left; cursor: pointer; scroll-snap-align: start; }
.gv-home-card-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--gv-line); border-radius: 9px; background: #1c2334; transition: border-color 0.15s, transform 0.15s; }
.gv-home-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.gv-home-card-cover > span { color: #5f6a82; font-size: 34px; font-weight: 900; }
.gv-home-card:hover .gv-home-card-cover, .gv-home-card:focus-visible .gv-home-card-cover { border-color: #7c5cff; transform: translateY(-2px); }
.gv-home-card:focus-visible { outline: none; }
.gv-home-card-text { min-width: 0; display: grid; gap: 3px; }
.gv-home-card-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.gv-home-card-text small { overflow: hidden; color: #8f99ad; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gv-card-rank { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; color: #fff; background: rgba(9, 11, 18, 0.82); font-size: 12px; font-style: normal; font-weight: 800; }
.gv-card-ribbon { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; color: #fff; background: rgba(9, 11, 18, 0.82); font-size: 11px; font-style: normal; font-weight: 700; }
.gv-duo-ribbon-playing { background: rgba(69, 191, 130, 0.9); }
.gv-reco-list { display: grid; gap: 12px; }
.gv-reco { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--gv-line); border-radius: 10px; background: #111520; }
.gv-reco .gv-home-card-text { display: none; }
.gv-reco-body { min-width: 0; display: grid; gap: 8px; }
.gv-reco-from { display: flex; align-items: center; gap: 7px; margin: 0; color: #aeb9d0; font-size: 13px; }
.gv-reco-quote { margin: 0; color: var(--gv-text); font-size: 15px; line-height: 1.45; }
.gv-reco-body > p:first-child + p::before { content: none; }
.gv-rec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gv-rec-state { margin: 0; color: #9bdcb8; font-size: 13px; }
.gv-side-panel { padding: 16px; }
.gv-side-panel .gv-home-section-head h2 { font-size: 15px; }
.gv-side-panel > .gv-muted { margin: 0; font-size: 13px; line-height: 1.5; }
.gv-side-friends { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gv-side-friends li { display: flex; align-items: center; gap: 6px; }
.gv-side-friends li > a:first-child { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 7px; color: var(--gv-text); font-size: 14px; text-decoration: none; }
.gv-side-friends li > a:first-child:hover { background: #1a1f2d; }
.gv-side-friends .gv-icon-link { width: 32px; height: 32px; font-size: 14px; }
.gv-activity { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gv-activity li { display: flex; align-items: flex-start; gap: 10px; }
.gv-activity p { min-width: 0; margin: 0; color: #aeb9d0; font-size: 13px; line-height: 1.45; }
.gv-activity strong { color: var(--gv-text); }
.gv-activity a { color: #c9bfff; text-decoration: none; }
.gv-activity a:hover { text-decoration: underline; }
.gv-activity small { display: block; color: #6f7a8f; font-size: 11px; }
.gv-activity .gv-tag { min-height: 18px; margin-left: 4px; font-size: 10px; }

/* ===================== Fiche de jeu : boutons sociaux ===================== */
.gv-detail-social { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }

/* ===================== Amis ===================== */
.gv-friends-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.gv-friends-main, .gv-friends-side { min-width: 0; display: grid; gap: 20px; }
.gv-friend-requests { border-color: #4a3f8a; background: #15142a; }
.gv-people-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gv-person { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #1d2230; }
.gv-person:last-child { border-bottom: 0; }
.gv-person-text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.gv-person-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-person-text small { color: #8f99ad; font-size: 12px; }
.gv-person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.gv-friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gv-friend-card { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--gv-line); border-radius: 10px; background: #0f131d; }
.gv-friend-card-head { display: flex; align-items: center; gap: 12px; }
.gv-friend-card-head h3 { margin: 0; font-size: 17px; }
.gv-friend-card-head p { margin: 3px 0 0; font-size: 12px; }
.gv-friend-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gv-friend-card-actions > * { width: 100%; }
.gv-friend-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.gv-inline-search { display: flex; gap: 8px; margin-bottom: 12px; }
.gv-inline-search input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--gv-line); border-radius: 7px; outline: none; color: var(--gv-text); background: var(--gv-surface); }
.gv-inline-search input:focus { border-color: var(--gv-violet); }
.gv-friend-search > .gv-muted { margin: 0; font-size: 13px; line-height: 1.5; }

/* ===================== Jeux a deux ===================== */
.gv-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gv-chip { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; border: 1px solid var(--gv-line); border-radius: 18px; color: #c6cde0; background: #111520; font-size: 14px; text-decoration: none; }
.gv-chip:first-child { padding-left: 14px; }
.gv-chip:hover { border-color: #66718b; color: #fff; }
.gv-chip.is-active { border-color: var(--gv-violet); color: #fff; background: #241d4d; }
.gv-chip b { color: #a89aff; font-size: 12px; }
.gv-duo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gv-duo-column { min-width: 0; padding: 14px; border: 1px solid var(--gv-line); border-radius: 10px; background: #0f131d; }
.gv-duo-column h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.gv-duo-column h2 span { margin-left: auto; color: #8f99ad; font-size: 13px; }
.gv-duo-playing { border-color: #2f5d49; }
.gv-duo-empty { margin: 0; padding: 18px 8px; border: 1px dashed #30384a; border-radius: 8px; color: #7f899d; font-size: 13px; text-align: center; }
.gv-mini-game-list { display: grid; gap: 10px; }
.gv-mini-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gv-mini-game { min-width: 0; display: grid; gap: 8px; padding: 8px; border: 1px solid #222838; border-radius: 9px; background: #121722; }
.gv-mini-game-link { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--gv-text); text-decoration: none; }
.gv-mini-game-link:hover strong { color: #c9bfff; }
.gv-mini-game-cover { width: 92px; flex: 0 0 92px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #1c2334; color: #5f6a82; font-weight: 900; }
.gv-mini-game-cover img { width: 100%; height: 100%; object-fit: cover; }
.gv-mini-game-text { min-width: 0; display: grid; gap: 3px; }
.gv-mini-game-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.gv-mini-game-text small { color: #8f99ad; font-size: 12px; }
.gv-mini-game-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gv-mini-game-tools select { height: 30px; padding: 0 8px; border: 1px solid #30384a; border-radius: 6px; color: var(--gv-text); background: #171c29; font-size: 13px; }

/* ===================== Messagerie ===================== */
.gv-messenger { height: calc(100vh - 110px); min-height: 460px; display: grid; grid-template-columns: 300px minmax(0, 1fr); margin-top: 18px; overflow: hidden; border: 1px solid var(--gv-line); border-radius: 12px; background: #0f131d; }
.gv-conversations { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--gv-line); }
.gv-conversations-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--gv-line); }
.gv-conversations-head h1 { margin: 0; font-size: 20px; }
.gv-conversations ul { flex: 1; margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.gv-conversation { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--gv-text); text-decoration: none; }
.gv-conversation:hover { background: #171c29; }
.gv-conversation.is-active { background: #221d45; }
.gv-conversation-text { min-width: 0; flex: 1; display: grid; gap: 3px; }
.gv-conversation-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gv-conversation-top small { flex: 0 0 auto; color: #7f899d; font-size: 11px; }
.gv-conversation-preview { overflow: hidden; color: #8f99ad; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.gv-conversation.is-unread .gv-conversation-preview { color: #e6e9f2; font-weight: 700; }
.gv-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.gv-thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gv-line); }
.gv-thread-head h2 { margin: 0; font-size: 17px; }
.gv-thread-title { min-width: 0; flex: 1; display: grid; }
.gv-thread-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gv-thread-back { display: none; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: var(--gv-text); font-size: 28px; line-height: 1; text-decoration: none; }
.gv-thread-messages { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; overflow-y: auto; }
.gv-thread-empty { margin: auto; color: #c6cde0; line-height: 1.7; text-align: center; }
.gv-thread-day { display: flex; justify-content: center; margin: 8px 0; }
.gv-thread-day span { padding: 3px 10px; border-radius: 10px; color: #8f99ad; background: #171c29; font-size: 11px; }
.gv-message { max-width: min(520px, 78%); display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #1a2030; }
.gv-message.is-theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.gv-message.is-mine { align-self: flex-end; border-bottom-right-radius: 4px; background: #4f3cc9; }
.gv-message-body { margin: 0; color: #f4f6fb; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.gv-message time { color: rgba(230, 233, 242, 0.55); font-size: 10px; text-align: right; }
.gv-message-game { display: grid; gap: 8px; }
.gv-message-game-label { margin: 0; color: #e6e1ff; font-size: 12px; font-weight: 700; }
.gv-message.is-theirs .gv-message-game-label { color: #c9bfff; }
.gv-message-game-card { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; color: var(--gv-text); background: rgba(0, 0, 0, 0.25); text-decoration: none; }
.gv-message-game-card:hover { background: rgba(0, 0, 0, 0.38); }
.gv-message-game-cover { width: 110px; flex: 0 0 110px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #1c2334; color: #5f6a82; font-weight: 900; }
.gv-message-game-cover img { width: 100%; height: 100%; object-fit: cover; }
.gv-message-game-text { min-width: 0; display: grid; gap: 3px; }
.gv-message-game-text small { color: rgba(230, 233, 242, 0.7); font-size: 12px; }
.gv-message-game.is-missing span { color: rgba(230, 233, 242, 0.7); font-size: 13px; font-style: italic; }
.gv-composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px 6px; border-top: 1px solid var(--gv-line); }
.gv-composer textarea { min-width: 0; flex: 1; max-height: 160px; padding: 11px 14px; border: 1px solid var(--gv-line); border-radius: 20px; outline: none; color: var(--gv-text); background: var(--gv-surface); resize: none; line-height: 1.35; }
.gv-composer textarea:focus { border-color: var(--gv-violet); }
.gv-composer .gv-primary { border-radius: 20px; }
.gv-composer-hint { margin: 0; padding: 0 16px 10px; font-size: 11px; }

/* ===================== Fenetre conseiller / jouer a deux ===================== */
.gv-social-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(1, 3, 7, 0.78); backdrop-filter: blur(2px); }
.gv-social-modal[hidden] { display: none; }
.gv-social-dialog { position: relative; width: min(480px, 100%); max-height: calc(100vh - 36px); display: grid; gap: 14px; overflow-y: auto; padding: 22px; border: 1px solid #3a4259; border-radius: 12px; background: #11151f; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55); }
.gv-social-dialog h2 { margin: 0; padding-right: 40px; font-size: 20px; }
.gv-social-dialog > .gv-muted { margin: -8px 0 0; font-size: 13px; }
.gv-social-dialog .gv-modal-close { position: absolute; top: 14px; right: 14px; }
.gv-social-field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.gv-social-field[hidden] { display: none; }
.gv-social-field label, .gv-social-field legend { padding: 0; color: #aeb8ca; font-size: 13px; font-weight: 700; }
.gv-social-field input[type="search"], .gv-social-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--gv-line); border-radius: 7px; outline: none; color: var(--gv-text); background: var(--gv-surface); resize: vertical; }
.gv-social-field input[type="search"]:focus, .gv-social-field textarea:focus { border-color: var(--gv-violet); }
.gv-social-results { display: grid; gap: 4px; max-height: 230px; overflow-y: auto; }
.gv-social-results .gv-muted { margin: 4px 0; font-size: 13px; }
.gv-social-result { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid transparent; border-radius: 7px; color: var(--gv-text); background: #151a26; text-align: left; cursor: pointer; }
.gv-social-result:hover, .gv-social-result:focus-visible { border-color: var(--gv-violet); outline: none; }
.gv-social-result img { width: 64px; aspect-ratio: 16 / 9; border-radius: 4px; object-fit: cover; background: #1c2334; }
.gv-social-result small { color: #8f99ad; }
.gv-social-selected-game { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #3b3270; border-radius: 9px; background: #17152d; }
.gv-social-selected-game[hidden] { display: none; }
.gv-social-selected-game img { width: 84px; aspect-ratio: 16 / 9; border-radius: 5px; object-fit: cover; }
.gv-social-selected-game strong { flex: 1; min-width: 0; }
.gv-social-selected-letter { width: 64px; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 4px; color: #5f6a82; background: #1c2334; font-weight: 900; }
.gv-social-friends > div { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.gv-social-friend { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--gv-line); border-radius: 8px; background: #151a26; color: var(--gv-text); cursor: pointer; }
.gv-social-friend:has(input:checked) { border-color: var(--gv-violet); background: #221d45; }
.gv-social-friend input { accent-color: var(--gv-violet); }
.gv-social-friend .gv-avatar { background: #3d3480; }
.gv-social-error { margin: 0; color: #ffbdc6; font-size: 13px; }
.gv-social-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
    .gv-home-layout { grid-template-columns: 1fr; }
    .gv-home-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
    .gv-friends-layout { grid-template-columns: 1fr; }
    .gv-friends-side { grid-row: 1; }
}
@media (max-width: 920px) {
    .gv-hero { grid-template-columns: 1fr; }
    .gv-duo-board { grid-template-columns: 1fr; }
    .gv-messenger { grid-template-columns: 230px minmax(0, 1fr); }
    .gv-account .gv-account-user span:last-child { display: none; }
    .gv-account .gv-account-user { padding: 0 5px; }
    .gv-account .gv-logout { display: none; }
}
@media (max-width: 660px) {
    .gv-nav-context, .gv-nav > .gv-nav-link:first-child { grid-column: 1 / -1; }
    .gv-nav-context { margin-left: 4px; }
    .gv-nav .gv-nav-label { margin-top: 12px; }
    .gv-sidebar-user { padding-bottom: 8px; }
    .gv-topbar .gv-account { display: none; }
    .gv-mobile-header .gv-icon-link { width: 42px; height: 42px; }
    .gv-hero { margin-top: 14px; padding: 22px 18px; }
    .gv-hero-actions > * { flex: 1 1 auto; }
    .gv-hero-stats a { min-height: 72px; padding: 11px 12px; }
    .gv-hero-stats strong { font-size: 21px; }
    .gv-home-side { grid-template-columns: 1fr; }
    .gv-home-row { grid-auto-columns: 72%; }
    .gv-home-section-head .gv-muted { display: none; }
    .gv-reco { grid-template-columns: 1fr; }
    .gv-notification { flex-wrap: wrap; }
    .gv-notification p { white-space: normal; }
    .gv-page-head { align-items: flex-start; flex-direction: column; margin-top: 18px; }
    .gv-friend-card-actions { grid-template-columns: 1fr; }
    .gv-messenger { height: calc(100vh - 58px - 32px); grid-template-columns: 1fr; margin-top: 0; }
    .gv-messenger.is-thread-view .gv-conversations { display: none; }
    .gv-messenger.is-list-view .gv-thread { display: none; }
    .gv-messenger .gv-conversations { border-right: 0; }
    .gv-thread-back { display: grid; }
    .gv-thread-tools .gv-secondary { padding: 0 9px !important; font-size: 12px; }
    .gv-thread-head { flex-wrap: wrap; }
    .gv-thread-tools { width: 100%; justify-content: flex-start; }
    .gv-message { max-width: 88%; }
    .gv-messages-page .gv-topbar { display: none; }
    .gv-composer-hint { display: none; }
}
.gv-message-note { font-style: italic; }
@media (max-width: 660px) {
    .gv-sidebar { top: 58px; bottom: 0; height: calc(100vh - 58px); height: calc(100dvh - 58px); }
    .gv-sidebar > .gv-nav { grid-template-columns: 1fr; gap: 3px; }
    .gv-sidebar .gv-nav-link { min-height: 44px; font-size: 15px; }
}


/* ===================== Mise en page des pages du site ===================== */
body.lp-site { min-height: 100vh; }
.lp-main { width: min(1240px, 100%); margin: 0 auto; padding: 4px clamp(16px, 3vw, 36px) 48px; }
.lp-main .gv-page-head { margin-top: 26px; }
.lp-section-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.lp-section-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border: 1px solid #30384a; border-radius: 11px; color: #c6cde0; background: #171d2a; font-size: 11px; }
.lp-section-tag.is-mc { border-color: #2f5d3a; color: #b8e6c1; background: #15291b; }
.lp-section-tag.is-gv { border-color: #3d3480; color: #d2c9ff; background: #1c1838; }
.gv-message-invite-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; background: rgba(0, 0, 0, 0.25); }
.gv-message-invite-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #5a2a37; font-size: 24px; }
body.lp-site .gv-messenger { height: calc(100vh - 49px - 40px); margin-top: 20px; }
@media (max-width: 660px) {
    body.lp-site .gv-messenger { height: calc(100vh - 92px - 16px); margin-top: 8px; }
    .lp-main { padding: 0 12px 30px; }
}
.gv-muted { color: var(--gv-muted); }

/* Messages officiels de La Papeterie */
.gv-message-system { max-width: min(620px, 90%); border: 1px solid #4a3f8a; background: linear-gradient(135deg, #221d45, #171b29) !important; }
.gv-message-system .gv-message-game-label { color: #d2c9ff; }
.gv-official-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; color: #d2c9ff; background: #2c2560; font-size: 10px; font-weight: 700; vertical-align: middle; }
.gv-thread-readonly { margin: 0; padding: 14px 16px; border-top: 1px solid var(--gv-line); color: var(--gv-muted); font-size: 13px; text-align: center; }

/* ---------- Groupes de discussion ---------- */
.lp-group-avatar { --gv-avatar: #241d4d; font-size: 19px; border-radius: 12px; box-shadow: inset 0 0 0 1px #3a3270; }
.lp-group-tag { margin-left: 4px; padding: 1px 6px; border-radius: 8px; color: #b8a9ff; background: #241d4d; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.lp-conv-actions { display: flex; gap: 6px; }
.lp-conv-actions .gv-icon-link { cursor: pointer; font: inherit; font-size: 16px; }
.lp-group-sender { display: flex; align-items: center; gap: 6px; margin: 0; color: #c9bfff; font-size: 12px; }
.lp-group-sender .gv-avatar { width: 20px; height: 20px; font-size: 10px; }
.lp-group-event { align-self: center; max-width: 90%; margin: 4px 0; text-align: center; }
.lp-group-event span { display: inline-block; padding: 4px 12px; border-radius: 12px; color: #9aa4b8; background: #141927; font-size: 12px; }
.lp-group-dialog .gv-social-field input[type="text"] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--gv-line); border-radius: 9px; outline: none; color: var(--gv-text); background: #0d1018; font-size: 15px; }
.lp-group-dialog .gv-social-field input[type="text"]:focus { border-color: var(--gv-violet); }
.lp-group-label { color: #d5dbe6; font-size: 14px; font-weight: 700; }
.lp-group-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-group-emoji { position: relative; cursor: pointer; }
.lp-group-emoji input { position: absolute; opacity: 0; pointer-events: none; }
.lp-group-emoji span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gv-line); border-radius: 9px; background: #0f131d; font-size: 18px; }
.lp-group-emoji input:checked + span { border-color: var(--gv-violet); background: #241d4d; }
.lp-group-emoji input:focus-visible + span { outline: 2px solid #fff; }
.lp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Barres de defilement discretes (zones de texte, conversations, listes) */
textarea, .gv-thread-messages, .gv-conversations ul, .gv-social-results, .gv-social-friends > div {
}
textarea::-webkit-scrollbar, .gv-thread-messages::-webkit-scrollbar, .gv-conversations ul::-webkit-scrollbar, .gv-social-results::-webkit-scrollbar, .gv-social-friends > div::-webkit-scrollbar { width: 8px; height: 8px; }
textarea::-webkit-scrollbar-track, .gv-thread-messages::-webkit-scrollbar-track, .gv-conversations ul::-webkit-scrollbar-track, .gv-social-results::-webkit-scrollbar-track, .gv-social-friends > div::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar-thumb, .gv-thread-messages::-webkit-scrollbar-thumb, .gv-conversations ul::-webkit-scrollbar-thumb, .gv-social-results::-webkit-scrollbar-thumb, .gv-social-friends > div::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #4a4380 padding-box; }
textarea::-webkit-scrollbar-thumb:hover, .gv-thread-messages::-webkit-scrollbar-thumb:hover, .gv-conversations ul::-webkit-scrollbar-thumb:hover, .gv-social-results::-webkit-scrollbar-thumb:hover, .gv-social-friends > div::-webkit-scrollbar-thumb:hover { background: #7c5cff padding-box; }
textarea::-webkit-scrollbar-corner { background: transparent; }
.gv-composer textarea { padding-right: 6px; }


/* ---------- Messagerie : sans barres de defilement, bulles regroupees, envoi plus simple ---------- */
.gv-thread-messages, .gv-conversations ul, .gv-composer textarea { scrollbar-width: none; -ms-overflow-style: none; }
.gv-thread-messages::-webkit-scrollbar, .gv-conversations ul::-webkit-scrollbar, .gv-composer textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gv-thread-messages { scroll-behavior: auto; overscroll-behavior: contain; }
.gv-conversations ul { overscroll-behavior: contain; }
/* Messages a la suite du meme auteur : colles, coins adoucis. */
/* (ancien rapprochement des bulles a -4px retire : les bulles se superposaient) */
.gv-message.is-mine { border-bottom-right-radius: 6px; }
.gv-message.is-theirs { border-bottom-left-radius: 6px; }
.gv-message { animation: gv-message-in .18s ease-out; }
@keyframes gv-message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gv-conversations-search { margin: 8px 10px 2px; min-height: 38px; padding: 0 12px; border: 1px solid var(--gv-line); border-radius: 10px; color: var(--gv-text); background: var(--gv-surface); font: inherit; font-size: 14px; outline: none; }
.gv-conversations-search:focus { border-color: var(--gv-violet); }
.gv-conversations li[hidden] { display: none; }
.gv-thread { position: relative; }
.gv-thread-jump { position: absolute; z-index: 3; left: 50%; bottom: 84px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; color: #fff; background: var(--gv-violet, #6347e8); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gv-thread-jump[hidden] { display: none; }
.gv-send-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.gv-send-icon { width: 18px; height: 18px; display: none; }
@media (max-width: 660px) {
    .gv-send-label { display: none; }
    .gv-send-icon { display: block; }
    .gv-composer .gv-send-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
    .gv-composer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .gv-thread-jump { bottom: 74px; }
}

/* =====================================================================
   Messagerie : facon Discord sur ordinateur, facon Instagram sur telephone
   ===================================================================== */
body.gv-messages-page .gv-message-author { display: none; }

/* ---------- Ordinateur : toute la page, facon Discord ---------- */
@media (min-width: 661px) {
    body.gv-messages-page .lp-gv-shell > .lp-main, body.gv-messages-page .lp-gv-shell > div > .lp-main { max-width: none; width: 100%; margin: 0; padding: 0; min-height: 0; }
    body.gv-messages-page.lp-site .lp-gv-shell .gv-messenger { height: 100vh; height: 100dvh; }
    body.gv-messages-page .gv-messenger { grid-template-columns: 320px minmax(0, 1fr); margin: 0; border: 0; border-radius: 0; background: #0e1016; }
    body.gv-messages-page:not(:has(.lp-gv-shell)) .gv-messenger { height: calc(100dvh - 64px); border-top: 1px solid #1f2330; }
    /* Colonne des conversations */
    body.gv-messages-page .gv-conversations { background: #12151d; border-right: 1px solid #1f2330; }
    body.gv-messages-page .gv-conversations-head { min-height: 64px; padding: 0 16px; border-bottom: 1px solid #1f2330; }
    body.gv-messages-page .gv-conversations-head h1 { font-size: 18px; }
    body.gv-messages-page .gv-conversations-search { margin: 12px 12px 6px; background: #0c0e14; border-color: transparent; border-radius: 8px; }
    body.gv-messages-page .gv-conversations ul { padding: 6px 8px 12px; }
    body.gv-messages-page .gv-conversation { gap: 12px; padding: 8px 10px; border-radius: 8px; border: 0; }
    body.gv-messages-page .gv-conversation:hover { background: #1b1f2b; }
    body.gv-messages-page .gv-conversation.is-active { background: #262b3b; box-shadow: none; }
    body.gv-messages-page .gv-conversation .gv-avatar { width: 40px; height: 40px; min-width: 40px; }
    body.gv-messages-page .gv-conversation.is-unread strong { color: #fff; }
    /* Conversation */
    body.gv-messages-page .gv-thread { background: #0e1016; }
    body.gv-messages-page .gv-thread-head { min-height: 64px; padding: 10px 20px; border-bottom: 1px solid #1f2330; background: #0e1016; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
    body.gv-messages-page .gv-thread-messages { gap: 0; padding: 16px 0 12px; }
    body.gv-messages-page .gv-thread-day { position: relative; margin: 18px 16px 6px; }
    body.gv-messages-page .gv-thread-day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #262b3a; }
    body.gv-messages-page .gv-thread-day span { position: relative; padding: 0 10px; border-radius: 0; color: #8f99ad; background: #0e1016; font-size: 12px; font-weight: 700; }
    /* Messages : tous alignes a gauche, photo + pseudo + heure au debut d'une serie */
    body.gv-messages-page .gv-message, body.gv-messages-page .gv-message.is-mine, body.gv-messages-page .gv-message.is-theirs {
        position: relative; align-self: stretch; max-width: none; display: grid; gap: 4px; margin: 14px 0 0; padding: 2px 24px 2px 72px;
        border: 0; border-radius: 0; color: #dbdee6; background: none; box-shadow: none; animation: none;
    }
    body.gv-messages-page .gv-message.is-continued { margin-top: 0; }
    body.gv-messages-page .gv-message:hover { background: rgba(255, 255, 255, 0.025); }
    body.gv-messages-page .gv-message-author { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
    body.gv-messages-page .gv-message-author .gv-avatar { position: absolute; left: 18px; top: 4px; width: 40px; height: 40px; min-width: 40px; font-size: 16px; }
    body.gv-messages-page .gv-message-author strong { color: #fff; font-size: 15px; }
    body.gv-messages-page .gv-message.is-mine .gv-message-author strong { color: #b9a6ff; }
    body.gv-messages-page .gv-message-author small { color: #7f899d; font-size: 12px; }
    body.gv-messages-page .gv-message.is-continued .gv-message-author { display: none; }
    body.gv-messages-page .lp-group-sender { display: none; }
    body.gv-messages-page .gv-message-body { margin: 0; font-size: 15px; line-height: 1.45; }
    body.gv-messages-page .gv-message time { position: absolute; left: 0; top: 6px; width: 72px; color: #6f7890; font-size: 10.5px; text-align: center; opacity: 0; transition: opacity 0.1s; }
    body.gv-messages-page .gv-message:not(.is-continued) time { display: none; }
    body.gv-messages-page .gv-message.is-continued:hover time { opacity: 1; }
    body.gv-messages-page .gv-message-game, body.gv-messages-page .gv-message-invite { max-width: 440px; padding: 10px 12px; border: 1px solid #262b3a; border-left: 3px solid #7c5cff; border-radius: 8px; background: #151925; }
    /* Zone d'ecriture */
    body.gv-messages-page .gv-composer { margin: 0 20px; padding: 6px 6px 6px 16px; border: 0; border-radius: 10px; background: #1a1e2a; }
    body.gv-messages-page .gv-composer textarea { min-height: 40px; padding: 10px 0; border: 0; color: #e6e9f2; background: transparent; box-shadow: none; }
    body.gv-messages-page .gv-composer .gv-send-button { min-height: 38px; padding: 0 16px; border-radius: 8px; }
    body.gv-messages-page .gv-composer-hint { margin: 6px 24px 14px; font-size: 11.5px; }
    body.gv-messages-page .gv-thread-readonly { margin: 0 20px 18px; }
}

/* ---------- Telephone : facon Instagram ---------- */
@media (max-width: 660px) {
    body.gv-messages-page .lp-gv-shell > .lp-main, body.gv-messages-page .lp-gv-shell > div > .lp-main { padding-left: 0; padding-right: 0; padding-top: 0; }
    body.gv-messages-page .gv-messenger { margin: 0; border: 0; border-radius: 0; background: transparent; }
    /* Liste des discussions */
    body.gv-messages-page .gv-conversations { background: transparent; }
    body.gv-messages-page .gv-conversations-head { padding: 14px 16px 6px; border: 0; }
    body.gv-messages-page .gv-conversations-head h1 { font-size: 22px; font-weight: 800; }
    body.gv-messages-page .gv-conversations-head .gv-icon-link { width: 38px; height: 38px; border: 0; background: transparent; font-size: 20px; }
    body.gv-messages-page .gv-conversations-search { margin: 4px 16px 10px; min-height: 40px; border: 0; border-radius: 12px; background: #1c1f2a; }
    body.gv-messages-page .gv-conversations ul { padding: 0 0 12px; }
    body.gv-messages-page .gv-conversation { gap: 14px; padding: 8px 16px; border: 0; border-radius: 0; background: transparent; }
    body.gv-messages-page .gv-conversation:active { background: rgba(255, 255, 255, 0.05); }
    body.gv-messages-page .gv-conversation.is-active { background: transparent; box-shadow: none; }
    body.gv-messages-page .gv-conversation .gv-avatar { width: 56px; height: 56px; min-width: 56px; font-size: 22px; }
    body.gv-messages-page .gv-conversation strong { font-size: 15px; font-weight: 600; color: #f1f3f8; }
    body.gv-messages-page .gv-conversation-preview { color: #9aa1b2; font-size: 14px; }
    body.gv-messages-page .gv-conversation.is-unread strong, body.gv-messages-page .gv-conversation.is-unread .gv-conversation-preview { color: #fff; font-weight: 700; }
    body.gv-messages-page .gv-conversation .gv-nav-badge { min-width: 10px; width: 10px; height: 10px; padding: 0; border-radius: 50%; font-size: 0; background: #7c5cff; }
    /* Discussion ouverte */
    body.gv-messages-page .gv-thread { background: transparent; }
    body.gv-messages-page .gv-thread-head { padding: 8px 12px; border-bottom: 1px solid #1f2330; background: rgba(11, 14, 23, 0.94); }
    body.gv-messages-page .gv-thread-head .gv-avatar { width: 36px; height: 36px; min-width: 36px; }
    body.gv-messages-page .gv-thread-messages { gap: 0; padding: 12px 12px 8px; }
    body.gv-messages-page .gv-thread-day span { background: transparent; color: #8f99ad; font-size: 12px; font-weight: 600; }
    body.gv-messages-page .gv-message { max-width: 78%; margin-top: 10px; padding: 9px 14px; border-radius: 22px; font-size: 15px; background: #262833; animation: none; }
    body.gv-messages-page .gv-message.is-mine { background: linear-gradient(135deg, #8b6bff, #5b3ff0); color: #fff; }
    body.gv-messages-page .gv-message.is-continued { margin-top: 2px; }
    body.gv-messages-page .gv-message.is-mine.has-next { border-bottom-right-radius: 6px; }
    body.gv-messages-page .gv-message.is-mine.is-continued { border-top-right-radius: 6px; }
    body.gv-messages-page .gv-message.is-theirs.has-next { border-bottom-left-radius: 6px; }
    body.gv-messages-page .gv-message.is-theirs.is-continued { border-top-left-radius: 6px; }
    body.gv-messages-page .gv-message.is-theirs:not(.has-next) { border-bottom-left-radius: 22px; }
    body.gv-messages-page .gv-message.is-mine:not(.has-next) { border-bottom-right-radius: 22px; }
    body.gv-messages-page .gv-message.has-next time { display: none; }
    body.gv-messages-page .gv-message time { font-size: 10px; opacity: 0.7; }
    body.gv-messages-page .gv-message-body { margin: 0; line-height: 1.35; }
    body.gv-messages-page .gv-message.is-continued .lp-group-sender { display: none; }
    /* Zone d'ecriture en pilule */
    body.gv-messages-page .gv-composer { gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 0; background: transparent; }
    body.gv-messages-page .gv-composer textarea { min-height: 44px; padding: 11px 18px; border: 1px solid #2c3140; border-radius: 22px; background: #12151d; }
    body.gv-messages-page .gv-composer-hint { display: none; }
}

/* =====================================================================
   Amis (dans la messagerie) : liste propre (lignes), facon Discord sur ordinateur, facon Instagram sur telephone
   ===================================================================== */
.gv-friends-pane .gv-friend-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.gv-friends-pane .gv-friend-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 0; border-top: 1px solid #1d2230; border-radius: 10px; background: transparent; box-shadow: none; transform: none; }
.gv-friends-pane .gv-friend-card:first-child { border-top-color: transparent; }
.gv-friends-pane .gv-friend-card:hover { background: #171b27; }
.gv-friends-pane .gv-friend-card-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gv-friends-pane .gv-friend-card-head .gv-avatar { width: 44px; height: 44px; min-width: 44px; font-size: 18px; }
.gv-friends-pane .gv-friend-card-head h3 { margin: 0 0 3px; font-size: 15px; }
.gv-friends-pane .gv-friend-card-head h3 a { color: #fff; text-decoration: none; }
/* Toute la ligne ouvre le profil (les boutons restent cliquables par-dessus). */
.gv-friends-pane .gv-friend-card-head h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.gv-friends-pane .gv-friend-card-actions, .gv-friends-pane .gv-friend-card-foot { position: relative; z-index: 1; }
.gv-friends-pane .gv-friend-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.gv-friends-pane .gv-friend-card-actions .gv-small-button { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.gv-friends-pane .gv-friend-card-foot { grid-column: 1 / -1; display: none; }
.gv-friends-pane .gv-friend-card:hover .gv-friend-card-foot { display: flex; justify-content: space-between; align-items: center; padding-left: 58px; font-size: 12px; }
@media (min-width: 661px) {
        .gv-friends-pane .gv-friends-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
}
@media (max-width: 660px) {
    .gv-friends-pane .gv-page-lead, .gv-friends-pane .gv-page-head .gv-eyebrow { display: none; }
    .gv-friends-pane .gv-friends-layout { display: flex; flex-direction: column; gap: 14px; }
    .gv-friends-pane .gv-friends-side { order: -1; }
    .gv-friends-pane .gv-panel { padding: 12px 0; border: 0; background: transparent; }
    .gv-friends-pane .gv-friend-search .gv-inline-search input { border: 0; border-radius: 12px; background: #1c1f2a; }
    .gv-friends-pane .gv-friend-card { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 4px; border: 0; border-radius: 0; }
    .gv-friends-pane .gv-friend-card:hover { background: transparent; }
    .gv-friends-pane .gv-friend-card:active { background: rgba(255, 255, 255, 0.05); }
    .gv-friends-pane .gv-friend-card-head .gv-avatar { width: 54px; height: 54px; min-width: 54px; font-size: 22px; }
    .gv-friends-pane .gv-friend-card-head .lp-section-tags { display: block; overflow: hidden; color: #9aa1b2; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
    .gv-friends-pane .gv-friend-card-head .lp-section-tag { padding: 0; border: 0; background: none; color: inherit; font-size: 13px; }
    .gv-friends-pane .gv-friend-card-head .lp-section-tag + .lp-section-tag::before { content: ' · '; }
    /* Comme Instagram : seulement le bouton "Message" a droite, le reste est sur le profil. */
    .gv-friends-pane .gv-friend-card-actions > :not(:first-child) { display: none; }
    .gv-friends-pane .gv-friend-card-actions .gv-primary { min-height: 32px; padding: 0 16px; border: 0; border-radius: 8px; color: #fff; background: #262a36; font-size: 13px; font-weight: 700; }
    .gv-friends-pane .gv-friend-card:hover .gv-friend-card-foot { display: none; }
    .gv-friends-pane .gv-people-list .gv-person { padding: 8px 4px; }
}

/* Entree "Amis" en haut de la colonne des discussions, et partie Amis a droite */
.gv-friends-entry { display: flex; align-items: center; gap: 12px; margin: 8px 8px 2px; padding: 10px; border-radius: 8px; color: #dbdee6; text-decoration: none; }
.gv-friends-entry:hover { background: #1b1f2b; color: #fff; }
.gv-friends-entry.is-active { background: #262b3b; color: #fff; }
.gv-friends-entry-icon { width: 40px; height: 40px; min-width: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #4f3cc9); font-size: 18px; }
.gv-friends-entry-text { display: grid; min-width: 0; flex: 1; }
.gv-friends-entry-text strong { font-size: 15px; }
.gv-friends-entry-text small { overflow: hidden; color: #8f99ad; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.gv-conversations-label { margin: 12px 18px 4px; color: #7f899d; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gv-friends-pane { display: flex; flex-direction: column; min-height: 0; }
.gv-friends-pane .gv-thread-head .gv-friends-entry-icon { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }
.gv-friends-pane-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; }
.gv-friends-pane .gv-friends-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.gv-friends-pane .gv-panel { margin: 0 0 16px; }
@media (max-width: 660px) {
    .gv-friends-entry { margin: 4px 0 0; padding: 10px 16px; border-radius: 0; }
    .gv-friends-entry-icon { width: 56px; height: 56px; min-width: 56px; font-size: 24px; }
    .gv-conversations-label { margin: 14px 16px 4px; }
    .gv-friends-pane-body { padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
}
/* La partie Amis s'adapte a la place qu'elle a (et pas a la taille de l'ecran). */
.gv-friends-pane-body { container-type: inline-size; overflow-x: hidden; }
.gv-friends-pane .gv-friends-layout { grid-template-columns: 1fr; }
.gv-friends-pane .gv-friends-side { order: -1; }
@container (min-width: 860px) {
    .gv-friends-pane .gv-friends-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .gv-friends-pane .gv-friends-side { order: 0; }
}
@container (max-width: 620px) {
    .gv-friends-pane .gv-friend-card { grid-template-columns: minmax(0, 1fr); }
    .gv-friends-pane .gv-friend-card-actions { justify-content: flex-start; padding-left: 58px; }
}
.gv-friends-pane .gv-inline-search { display: flex; gap: 8px; }
.gv-friends-pane .gv-inline-search input { flex: 1; min-width: 0; }
.gv-friends-pane .gv-friend-card-actions { display: flex; grid-template-columns: none; }
.gv-friends-pane .gv-friend-card-actions > * { width: auto; flex: none; }
.gv-friends-pane .gv-friend-card-head > div { min-width: 0; }
.gv-friends-pane .gv-friend-grid { grid-template-columns: 1fr !important; }
/* Presence a droite de chaque ami (a la place des boutons) */
.gv-friend-presence { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: #8f99ad; font-size: 13px; white-space: nowrap; pointer-events: none; }
.gv-friend-presence i { width: 9px; height: 9px; border-radius: 50%; background: #5d6578; }
.gv-friend-presence.is-online { color: #4ade80; font-weight: 700; }
.gv-friend-presence.is-online i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.gv-friend-presence .gv-inline-badge { pointer-events: auto; }
.gv-friend-avatar { position: relative; display: inline-flex; }
.gv-friend-avatar.is-online::after { content: ''; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border: 3px solid #0e1016; border-radius: 50%; background: #22c55e; }
@container (max-width: 620px) {
    .gv-friends-pane .gv-friend-card { grid-template-columns: minmax(0, 1fr) auto; }
}
/* Telephone : zone d'ecriture juste au-dessus de la barre du bas (la barre gere deja le bas de l'ecran). */
@media (max-width: 660px) {
    body.gv-messages-page .gv-composer { padding-top: 6px; padding-bottom: 6px !important; }
    body.gv-messages-page .gv-thread-readonly { margin-bottom: 6px; }
}

/* =====================================================================
   Telephone : conversation en plein ecran par-dessus la liste (comme Instagram), sans barre du bas
   ===================================================================== */
@media (max-width: 660px) {
    body.gv-messages-page .gv-messenger.is-thread-view .gv-conversations,
    body.gv-messages-page .gv-messenger.is-list-view .gv-thread { display: flex; }
    body.gv-messages-page .gv-messenger { position: relative; overflow: visible; }
    body.gv-messages-page .gv-conversations { flex-direction: column; will-change: transform; }
    body.gv-messages-page .gv-messenger > .gv-thread {
        position: fixed; z-index: 1100; left: 0; right: 0; top: var(--gv-vvt, 0px);
        height: var(--gv-vvh, 100dvh); display: flex; flex-direction: column;
        background: #0b0e17; transform: translateX(100%); visibility: hidden;
        box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45); will-change: transform;
    }
    body.gv-messages-page .gv-messenger.is-thread-view > .gv-thread { transform: none; visibility: visible; }
    body.gv-messages-page .gv-messenger.is-thread-view .gv-conversations { transform: translateX(-28%); opacity: 0.5; pointer-events: none; }
    /* Animations seulement apres un geste (pas au chargement de la page). */
    body.gv-messages-page .gv-messenger.gv-anim > .gv-thread { transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1), visibility 0s linear 0.34s; }
    body.gv-messages-page .gv-messenger.gv-anim.is-thread-view > .gv-thread { transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1), visibility 0s; }
    body.gv-messages-page .gv-messenger.gv-anim .gv-conversations { transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.34s ease; }
    /* En-tete de la conversation sous l'heure de l'iPhone, zone d'ecriture au-dessus de la barre d'accueil / du clavier. */
    body.gv-messages-page .gv-messenger > .gv-thread .gv-thread-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
    body.gv-messages-page .gv-messenger > .gv-thread .gv-thread-messages { flex: 1 1 auto; min-height: 0; }
    body.gv-messages-page .gv-messenger > .gv-thread .gv-composer { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
    body.gv-in-thread.gv-messages-page .gv-messenger > .gv-thread .gv-composer:focus-within { padding-bottom: 8px !important; }
    body.gv-messages-page .gv-messenger > .gv-thread.is-loading .gv-composer { opacity: 0.6; transition: opacity 0.2s; }
    body.gv-messages-page .gv-messenger > .gv-thread.is-loading .gv-thread-tools { visibility: hidden; }
    /* La barre du bas et l'en-tete disparaissent dans une conversation. */
    body.gv-in-thread .gv-tabbar { transform: translateY(140%); transition: transform 0.25s ease; }
    body.gv-messages-page:not(.gv-in-thread) .gv-tabbar { transition: transform 0.25s ease; }
    body.gv-messages-page .gv-friends-pane .gv-friends-pane-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Les messages partent du bas de la conversation (comme toutes les messageries), meme s'il y en a peu. */
body.gv-messages-page .gv-thread-messages { display: flex; flex-direction: column; }
body.gv-messages-page .gv-thread-messages > :first-child { margin-top: auto !important; }
/* Telephone : le glissement horizontal d'une conversation est gere par le site (pour revenir a la liste). */
@media (max-width: 660px) {
    body.gv-messages-page .gv-messenger > .gv-thread, body.gv-messages-page .gv-messenger > .gv-thread .gv-thread-messages { touch-action: pan-y; overscroll-behavior-x: none; }
}
/* Telephone : bulles bien separees (aucune ne passe sur l'autre). */
@media (max-width: 660px) {
    body.gv-messages-page .gv-thread-messages .gv-message.is-mine + .gv-message.is-mine,
    body.gv-messages-page .gv-thread-messages .gv-message.is-theirs + .gv-message.is-theirs { margin-top: 3px; }
    body.gv-messages-page .gv-thread-messages .gv-message:not(.is-continued),
    body.gv-messages-page .gv-thread-messages .gv-message.is-mine + .gv-message.is-mine:not(.is-continued),
    body.gv-messages-page .gv-thread-messages .gv-message.is-theirs + .gv-message.is-theirs:not(.is-continued) { margin-top: 12px; }
    body.gv-messages-page .gv-thread-messages .gv-thread-day { margin: 14px 0 4px; }
    body.gv-messages-page .gv-thread-messages > :first-child { margin-top: auto !important; }
}

/* Pastille verte en bas a droite de la photo quand la personne est en ligne. */
.gv-conv-pp { position: relative; display: inline-flex; flex: 0 0 auto; border-radius: 50%; }
.gv-conv-pp.is-online::after {
    content: ''; position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px;
    border: 3px solid #0e1016; border-radius: 50%; background: #22c55e; box-sizing: border-box;
}
@media (max-width: 660px) {
    body.gv-messages-page .gv-conv-pp.is-online::after { width: 17px; height: 17px; border-color: #0b0e17; right: 0; bottom: 0; }
}

/* Telephone : profil ouvert par-dessus la conversation (la conversation reste derriere). */
.gv-profile-layer { display: none; }
@media (max-width: 660px) {
    .gv-profile-layer {
        position: fixed; z-index: 1200; left: 0; right: 0; top: var(--gv-vvt, 0px); height: var(--gv-vvh, 100dvh);
        display: flex; flex-direction: column; background: #0b0e17; transform: translateX(100%); visibility: hidden;
        box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5); will-change: transform; touch-action: pan-y;
        transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1), visibility 0s linear 0.34s;
    }
    .gv-profile-layer.is-open { transform: none; visibility: visible; transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1), visibility 0s; }
    .gv-profile-layer-head {
        display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .gv-profile-layer-head .gv-thread-back { display: grid; background: none; border: 0; cursor: pointer; }
    .gv-profile-layer-head strong { font-size: 16px; color: var(--gv-text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gv-profile-layer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .gv-profile-layer-body .pp-main { margin: 0 auto; min-height: 0; }
    .gv-profile-layer-loading { display: grid; place-items: center; height: 60%; margin: 0; }
    .gv-profile-layer-loading span { width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: #8b7bff; border-radius: 50%; animation: gv-layer-spin 0.8s linear infinite; }
    @keyframes gv-layer-spin { to { transform: rotate(360deg); } }
}

/* Amis : "Ajouter un ami" et "Demandes envoyees" restent dans leur colonne (plus de debordement sur le bord droit). */
.gv-friends-main, .gv-friends-side { grid-template-columns: minmax(0, 1fr); }
.gv-friends-side > *, .gv-friends-main > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.gv-friend-search .gv-inline-search, .gv-friend-search form { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.gv-friend-search .gv-inline-search input, .gv-friend-search form input[type="search"], .gv-friend-search form input[type="text"] { flex: 1 1 140px; min-width: 0; width: auto; }
.gv-friend-search .gv-inline-search button, .gv-friend-search form button { flex: 0 0 auto; }

/* Telephone : petite fenetre "nouveau message" en haut de l'ecran */
.lp-msg-banner {
    position: fixed; z-index: 2000; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px);
    width: min(520px, calc(100% - 16px)); box-sizing: border-box; display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 18px; color: #fff; text-decoration: none;
    background: rgba(28, 31, 44, 0.92); border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    transform: translate(-50%, calc(-100% - 30px)); opacity: 0;
    transition: transform 0.38s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.25s ease;
}
.lp-msg-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
.lp-msg-banner-avatar .gv-avatar { width: 38px; height: 38px; font-size: 16px; flex: 0 0 auto; }
.lp-msg-banner-avatar { flex: 0 0 auto; display: grid; }
.lp-msg-banner-text { display: grid; min-width: 0; }
.lp-msg-banner-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-msg-banner-text span { font-size: 13px; color: #c3c8d6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gv-composer.is-sending .gv-send-button { opacity: 0.6; }

/* Conversation qui remonte en haut (nouveau message) : petit eclairage */
.gv-conversation.is-bumped { animation: gv-conv-bump 1.2s ease-out; }
@keyframes gv-conv-bump { 0%, 35% { background-color: rgba(124, 92, 255, 0.22); } 100% { background-color: transparent; } }

/* Presence dans l'en-tete d'une conversation et sur un profil */
.gv-thread-presence, .pp-presence { color: #8d93a7; }
.gv-thread-presence.is-online, .pp-presence.is-online { color: #4ade80; }
.gv-thread-presence.is-online::before, .pp-presence.is-online::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #22c55e; vertical-align: 1px; }

/* Fenetre conseiller / jouer a deux / groupe : filtres de recherche */
.gv-social-filters { margin: 8px 0 6px; border: 1px solid #262c3b; border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.gv-social-filters > summary { cursor: pointer; padding: 8px 12px; font-size: 13px; font-weight: 600; color: #c9cede; list-style: none; }
.gv-social-filters > summary::-webkit-details-marker { display: none; }
.gv-social-filters[open] > summary { border-bottom: 1px solid #262c3b; }
.gv-social-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 10px 12px 12px; }
.gv-social-filter-grid label { display: grid; gap: 4px; font-size: 12px; color: #9ea9bc; min-width: 0; }
.gv-social-filter-grid select { width: 100%; min-width: 0; }
@media (max-width: 480px) { .gv-social-filter-grid { grid-template-columns: 1fr; } }

/* Presence envoyee par le Y&S Launcher : en jeu sur une instance Minecraft. */
.gv-friend-presence.is-playing, .gv-thread-presence.is-playing, .pp-presence.is-playing { color: #8fe0a3; }
.gv-friend-presence.is-playing i, .gv-thread-presence.is-playing::before, .pp-presence.is-playing::before { background: #3a9d55; box-shadow: 0 0 0 3px rgba(58, 157, 85, 0.25); }
