/* ==========================================================================
   GamePulse — thème « Liquid Glass » (inspiré d'iOS 26)
   Verre translucide, flou + saturation, reflets spéculaires sur les bords.
   ========================================================================== */
:root {
  color-scheme: dark;
  --radius: 28px;
  --radius-sm: 18px;
  --text: #f4f5ff;
  --muted: rgba(232, 235, 255, .68);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .15);
  --stroke: rgba(255, 255, 255, .22);
  --hi: rgba(255, 255, 255, .5);
  --shadow: 0 18px 50px rgba(4, 5, 28, .45);
  --accent: #5b6cff;
  --accent2: #3aa0ff;
  --link: #aab6ff;
  --bg-a: #0a0b22;
  --bg-b: #1a1046;
  --field: rgba(0, 0, 0, .26);
  --blob-opacity: .7;
  --ok: #3ee6b0;
  --warn: #ffc04d;
  --bad: #ff6b86;
}
[data-theme="light"] {
  color-scheme: light;
  --text: #14172e;
  --muted: rgba(20, 23, 46, .66);
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .72);
  --stroke: rgba(255, 255, 255, .85);
  --hi: #fff;
  --shadow: 0 18px 50px rgba(70, 80, 160, .22);
  --link: #3342d6;
  --bg-a: #dde4ff;
  --bg-b: #f7e8ff;
  --field: rgba(255, 255, 255, .62);
  --blob-opacity: .5;
  --ok: #0e9f74;
  --warn: #b97700;
  --bad: #d4294b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-a), var(--bg-b)) fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ---- Arrière-plan : nappes de couleur qui dérivent lentement ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-opacity); animation: drift 26s ease-in-out infinite alternate; }
.b1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: #5b4bff; }
.b2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 8vmax; background: #00b4ff; animation-delay: -9s; }
.b3 { width: 44vmax; height: 44vmax; left: 18vw; bottom: -22vmax; background: #ff3fa4; animation-delay: -15s; }
.b4 { width: 24vmax; height: 24vmax; right: 12vw; bottom: 6vmax; background: #22e6b0; animation-delay: -4s; opacity: calc(var(--blob-opacity) * .7); }
@keyframes drift { to { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); } }

/* ---- Le verre ---- */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--stroke);
  box-shadow:
    inset 0 1px 0 var(--hi),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 0 24px rgba(255, 255, 255, .05),
    var(--shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 12% -12%, rgba(255, 255, 255, .3), transparent 55%),
    radial-gradient(80% 60% at 100% 115%, rgba(255, 255, 255, .12), transparent 60%);
  opacity: .75;
}
.glass > * { position: relative; z-index: 1; }
.lift { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.lift:hover { transform: translateY(-4px) scale(1.01); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
main.wrap { padding: 8px 0 56px; }

/* ---- Navigation ---- */
.topbar { position: sticky; top: 10px; z-index: 50; width: min(1180px, 100% - 24px); margin: 10px auto 18px; display: grid; gap: 8px; }
.nav { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 16px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.search { flex: 1 1 160px; max-width: 320px; }
.search input { padding: .5rem 1rem; border-radius: 999px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links form { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: .45rem .9rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid transparent; background: none; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.pill:hover { background: rgba(255, 255, 255, .14); }
.pill.active { background: rgba(255, 255, 255, .2); border-color: var(--stroke); box-shadow: inset 0 1px 0 var(--hi); }
.count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 20px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .12); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; }
.cats { display: flex; gap: 4px; padding: 6px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: .35rem .85rem; border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.cats a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent2)); box-shadow: 0 0 10px var(--c, var(--accent2)); }
.cats a:hover, .cats a.active { background: rgba(255, 255, 255, .2); }

/* ---- Boutons & formulaires ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07));
  color: var(--text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--hi), 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; border-color: rgba(255, 255, 255, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 55%), linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn-danger { color: #fff; border-color: rgba(255, 255, 255, .4); background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 55%), linear-gradient(135deg, #e63d63, #ff7a52); }
.btn-sm { padding: .3rem .8rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input, textarea, select {
  width: 100%; padding: .7rem 1rem; border-radius: 16px;
  border: 1px solid var(--stroke); background: var(--field); color: var(--text);
  font: inherit; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .16);
}
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="color"] { padding: 3px; height: 42px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select { appearance: auto; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { margin: 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

/* ---- Messages flash ---- */
.flashes { width: min(1180px, 100% - 32px); margin: 0 auto 14px; display: grid; gap: 8px; }
.flash { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.flash.success { border-left: 4px solid var(--ok); }
.flash.error { border-left: 4px solid var(--bad); }
.flash.info { border-left: 4px solid var(--accent2); }

/* ---- Cartes d'articles ---- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; color: var(--text); text-decoration: none; }
.card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 4px 0 0; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; z-index: 1; border-radius: inherit;
  background: radial-gradient(90% 120% at 20% 0%, color-mix(in srgb, var(--c, #7b8cff) 70%, white), transparent 60%), linear-gradient(135deg, var(--c, #7b8cff), color-mix(in srgb, var(--c, #7b8cff) 35%, #0a0b22)); }
.cover svg { width: 38%; max-width: 120px; color: rgba(255, 255, 255, .85); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .cover { border-radius: 0; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: color-mix(in srgb, var(--c, #7b8cff) 38%, transparent); border: 1px solid color-mix(in srgb, var(--c, #7b8cff) 70%, white); color: var(--text); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; margin-bottom: 30px; }
.hero .cover { aspect-ratio: auto; min-height: 320px; border-radius: 0; }
.hero-body { padding: clamp(20px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hero-body p { font-size: 1.05rem; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.layout aside { display: grid; gap: 18px; position: sticky; top: 140px; }
.panel { padding: 20px 22px; border-radius: 24px; }
.panel h3 { margin-bottom: 12px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 12px; }
.ranked li { counter-increment: r; display: flex; gap: 12px; align-items: baseline; }
.ranked li::before { content: counter(r); font-weight: 800; font-size: 1.3rem; color: var(--accent2); min-width: 1.2em; }
.ranked a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; }
.ranked a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .3rem .8rem; border-radius: 99px; text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 600; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .1); }
.chip:hover { background: rgba(255, 255, 255, .22); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 14px; }
.section-title:first-child { margin-top: 0; }
.section-title a { font-size: .92rem; font-weight: 600; }
.page-head { padding: 26px 30px; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; color: var(--muted); }
.empty { padding: 34px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }

/* ---- Article ---- */
.article { max-width: 780px; margin: 0 auto; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article-head { padding: 28px 32px; margin-bottom: 20px; }
.article-head .lead { font-size: 1.15rem; color: var(--muted); margin: 8px 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.article .cover { aspect-ratio: 16 / 8; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--stroke); }
.article .cover svg { width: 20%; }
.prose { padding: 28px 32px; font-size: 1.07rem; line-height: 1.75; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--accent2); background: rgba(255, 255, 255, .08); border-radius: 0 14px 14px 0; font-style: italic; }
.banner { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; border-left: 4px solid var(--warn); }

/* ---- Authentification ---- */
.auth { width: min(460px, 100%); margin: 30px auto; padding: 32px; }
.auth h1 { font-size: 1.8rem; }
.auth .btn { width: 100%; }
.auth-foot { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .92rem; }

/* ---- Tableaux ---- */
.table-wrap { overflow-x: auto; padding: 6px 8px; border-radius: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; }
td { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .13); vertical-align: top; }
tbody tr:hover { background: rgba(255, 255, 255, .06); }
td .row { gap: 6px; }
td form { margin: 0; display: inline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .12); white-space: nowrap; }
.badge.admin { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
.badge.moderator { background: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.open, .badge.draft, .badge.off { background: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.answered, .badge.published, .badge.on { background: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.closed { opacity: .7; }
.manage summary { list-style: none; cursor: pointer; display: inline-flex; }
.manage summary::-webkit-details-marker { display: none; }
.manage-body { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .18); min-width: 250px; }
.manage-body form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.manage-body select { width: auto; padding: .35rem .7rem; }
details.create { margin-bottom: 18px; padding: 16px 22px; }
details.create summary { cursor: pointer; font-weight: 700; }
details.create .form-grid { margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 180px; max-width: 280px; }

/* ---- Admin ---- */
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { padding: 14px; position: sticky; top: 140px; display: grid; gap: 4px; }
.side a { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; border-radius: 16px; color: var(--text); text-decoration: none; font-weight: 600; }
.side a:hover { background: rgba(255, 255, 255, .14); }
.side a.active { background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 var(--hi); }
.side .sep { margin: 8px 12px 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; border-radius: 22px; text-decoration: none; color: var(--text); display: block; }
.stat b { display: block; font-size: 2rem; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .88rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cat-edit { display: grid; grid-template-columns: 54px 1fr 1.4fr 80px auto; gap: 8px; align-items: center; }
.report { padding: 18px 20px; margin-bottom: 14px; border-radius: 22px; }
.quote { padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); margin: 10px 0; white-space: pre-wrap; word-break: break-word; }

/* ---- Tickets ---- */
.thread { display: grid; gap: 14px; margin-bottom: 22px; }
.bubble { padding: 14px 18px; border-radius: 22px; max-width: 86%; }
.bubble.staff { justify-self: end; border-color: color-mix(in srgb, var(--accent2) 70%, white); }
.bubble header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: .86rem; }
.bubble .txt { white-space: pre-wrap; word-break: break-word; }

/* ---- Discussion générale ---- */
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 230px); min-height: 460px; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.chat-head h1 { font-size: 1.3rem; margin: 0; }
.live { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.chat-log { overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.msg { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 8px 10px; border-radius: 18px; align-items: start; }
.msg:hover { background: rgba(255, 255, 255, .07); }
.msg.mine { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); text-transform: uppercase; }
.msg .meta { gap: 8px; align-items: center; }
.msg .meta strong { color: var(--text); font-size: .95rem; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.msg .actions { opacity: 0; transition: opacity .15s; display: flex; gap: 6px; align-items: center; }
.msg:hover .actions, .msg:focus-within .actions { opacity: 1; }
.mod-menu { position: relative; }
.mod-menu summary { list-style: none; cursor: pointer; }
.mod-menu summary::-webkit-details-marker { display: none; }
.mod-pop { position: absolute; right: 0; top: 100%; z-index: 5; display: grid; gap: 4px; padding: 8px; border-radius: 16px; min-width: 170px; background: var(--bg-b); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.mod-pop button { text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.mod-pop button:hover { background: rgba(255, 255, 255, .14); }
.composer { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.composer form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.composer textarea { min-height: 48px; max-height: 140px; border-radius: 22px; }
.composer .info { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.composer .error { color: var(--bad); font-weight: 600; }
.notice-mute { padding: 12px 16px; border-radius: 16px; border-left: 4px solid var(--bad); font-weight: 600; margin-bottom: 10px; }

.site-foot { margin-top: 20px; padding: 24px 0 40px; text-align: center; color: var(--muted); font-size: .88rem; }
.err-page { text-align: center; padding: 50px 24px; max-width: 560px; margin: 30px auto; }
.err-page b { font-size: 4.5rem; letter-spacing: -.05em; display: block; line-height: 1; margin-bottom: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .layout aside { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero .cover { min-height: 0; aspect-ratio: 16 / 8; }
  .admin-layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; border-radius: 24px; }
  .side a { flex: none; }
  .side .sep { display: none; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { flex-wrap: wrap; border-radius: 28px; }
  .nav-links { display: none; width: 100%; margin: 0; flex-direction: column; align-items: stretch; }
  .menu-open .nav-links { display: flex; }
  .nav-links .pill, .nav-links .btn { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-edit { grid-template-columns: 54px 1fr; }
  .bubble { max-width: 100%; }
  .msg { grid-template-columns: 34px 1fr; }
  .msg .actions { grid-column: 2; opacity: 1; }
  .chat { height: calc(100dvh - 200px); }
  .article-head, .prose { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .lift, .btn { transition: none; }
  html { scroll-behavior: auto; }
}
/* Navigateurs sans backdrop-filter : verre plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 28, 70, .88); }
  [data-theme="light"] .glass { background: rgba(255, 255, 255, .9); }
}

/* ---- Page de maintenance / suspension ---- */
.maint { width: min(580px, 100% - 32px); margin: 10vh auto 0; padding: 40px 34px 30px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.maint h1 { margin: 0; }
.maint-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stroke); background: linear-gradient(135deg, var(--glass-strong), var(--glass)); box-shadow: inset 0 1px 0 var(--hi); }
.maint-icon svg { width: 38px; height: 38px; }
.maint .reason { width: 100%; padding: 14px 18px; border-radius: 18px; background: var(--field); text-align: left; white-space: pre-wrap; word-break: break-word; font-size: 1.05rem; }
.maint .when { margin: 0; font-size: 1.05rem; }
.maint .small-note { margin: 0; font-size: .88rem; }
.maint .admin-link { font-size: .85rem; color: var(--muted); }

/* ---- Page « Service » de l'administration ---- */
.mode-grid { display: grid; gap: 10px; }
.mode-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); cursor: pointer; font-weight: 400; margin: 0; }
.mode-opt:hover { background: rgba(255, 255, 255, .12); }
.mode-opt:has(input:checked) { background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 var(--hi); border-color: var(--accent2); }
.mode-opt input { margin-top: 4px; }
input[type="radio"] { width: auto; flex: none; accent-color: var(--accent); box-shadow: none; }
