/* KoraBot : DA du logo Kora Craft (vert néon sur vert-noir, texte argent) + couleurs officielles des messages
   (vert #61C95B, or #d7c18c, bleu #5B7AC9, rouge #C95B5B). Minimaliste, futuriste, transitions douces. */
:root {
  --fond: #020a05; --fond2: #04120a;
  --verre: rgba(10, 30, 17, .78); --verre-fort: rgba(18, 48, 28, .72); --verre-clair: rgba(97, 201, 91, .07);
  --ligne: rgba(97, 201, 91, .14); --ligne-forte: rgba(97, 201, 91, .32);
  --texte: #e6efe8; --sourd: #86a08d; --tres-sourd: #55705c;
  --neon: #19d458; --neon-doux: #61c95b; --neon-clair: #9af5b4;
  --or: #d7c18c; --bleu: #5b7ac9; --rouge: #c95b5b;
  --rayon: 14px; --rayon-petit: 9px;
  --ombre: 0 10px 40px rgba(0, 0, 0, .45);
  --cote: rgba(3, 14, 7, .7); --champ: rgba(2, 10, 5, .6); --option: #06150b; --sur-neon: #02160a;
  --halo1: rgba(25, 212, 88, .10); --halo2: rgba(25, 212, 88, .07);
  --police: 'Segoe UI Variable Display', 'Segoe UI', Inter, system-ui, -apple-system, Roboto, sans-serif;
  --mono: 'Cascadia Code', Consolas, 'SF Mono', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--fond); color: var(--texte); font: var(--taille, 15px)/1.5 var(--police); -webkit-font-smoothing: antialiased; }
/* Halos du fond sur un calque fixe à part : peint une fois, pas à chaque défilement. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 700px at 85% -10%, var(--halo1), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--halo2), transparent 60%); }
body {
  background: radial-gradient(1200px 700px at 85% -10%, var(--halo1), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--halo2), transparent 60%), var(--fond);
  background-attachment: fixed; color: var(--texte); font: 15px/1.5 var(--police); -webkit-font-smoothing: antialiased;
}
a { color: var(--neon-clair); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0 0 14px; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--sourd); font-weight: 600; }
.sourd { color: var(--sourd); } .petit { font-size: 13px; } .mono { font-family: var(--mono); font-size: 12.5px; }
.chargement { padding: 60px; text-align: center; color: var(--sourd); }
::selection { background: rgba(25, 212, 88, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(97, 201, 91, .18); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* Panneaux de verre */
.cadre { background: var(--verre); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px;
  margin-bottom: 18px; }

/* Mise en page */
.coquille { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.coquille > div { min-width: 0; }
.cote { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 2px;
  background: var(--cote); border-right: 1px solid var(--ligne); }
.marque { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.marque img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 22px rgba(25, 212, 88, .35); }
.marque b { display: block; font-size: 17px; letter-spacing: .02em; }
.marque span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--neon); }
.choix-discord { margin: 0 0 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .rubrique { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tres-sourd); padding: 14px 12px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--sourd);
  border-radius: var(--rayon-petit); transition: background .18s, color .18s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { color: var(--texte); background: var(--verre-clair); }
.nav a.actif { color: var(--texte); background: linear-gradient(90deg, rgba(25, 212, 88, .16), rgba(25, 212, 88, .03)); }
.nav a.actif::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.nav a.actif svg { color: var(--neon); opacity: 1; }
.pied-cote { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--ligne); display: flex; align-items: center; gap: 10px; }
.contenu { padding: 34px 40px; max-width: 1240px; width: 100%; min-width: 0; }
.page { animation: entree .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.barre-mobile { display: none; }

/* Barre de chargement fine en haut */
#progres { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 99; background: var(--neon);
  box-shadow: 0 0 12px var(--neon); transition: width .4s ease, opacity .3s; opacity: 0; }
#progres.actif { opacity: 1; width: 70%; transition: width 2s cubic-bezier(.1, .6, .2, 1); }
#progres.fini { opacity: 0; width: 100%; transition: width .2s, opacity .4s .15s; }
.direct { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sourd); }
.direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--tres-sourd); }
.direct.on i { background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pouls 2.4s infinite; }
@keyframes pouls { 50% { opacity: .35; } }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.entete h1 { margin: 0; }

/* Éléments */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--fond2); flex: none; object-fit: cover; }
.avatar.grand { width: 76px; height: 76px; box-shadow: 0 0 0 1px var(--ligne-forte), 0 0 28px rgba(25, 212, 88, .18); }
button, .bouton { font: 500 14px var(--police); cursor: pointer; padding: 9px 16px; color: var(--texte); background: var(--verre-clair);
  border: 1px solid var(--ligne); border-radius: var(--rayon-petit); display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .08s; }
button:hover, .bouton:hover { background: rgba(97, 201, 91, .14); border-color: var(--ligne-forte); color: var(--texte); }
button:active { transform: scale(.97); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px rgba(25, 212, 88, .55); }
button.vert, .bouton.vert { background: var(--neon); border-color: var(--neon); color: var(--sur-neon); font-weight: 600; }
button.vert:hover, .bouton.vert:hover { background: var(--neon-clair); box-shadow: 0 0 22px rgba(25, 212, 88, .45); color: var(--sur-neon); }
button.rouge { background: rgba(201, 91, 91, .14); border-color: rgba(201, 91, 91, .45); color: #f0b4b4; }
button.rouge:hover { background: rgba(201, 91, 91, .28); box-shadow: 0 0 18px rgba(201, 91, 91, .3); }
button.or { background: rgba(215, 193, 140, .12); border-color: rgba(215, 193, 140, .4); color: var(--or); }
button.or:hover { background: rgba(215, 193, 140, .22); }
button.icone { padding: 8px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
input, select, textarea { font: 14px var(--police); color: var(--texte); background: var(--champ); border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit); padding: 10px 12px; width: 100%; transition: border-color .18s, box-shadow .18s; }
input:hover, select:hover, textarea:hover { border-color: var(--ligne-forte); }
select option { background: var(--option); }
textarea { min-height: 96px; resize: vertical; }
label { display: block; margin-bottom: 14px; }
label > span { display: block; font-size: 12.5px; color: var(--sourd); margin-bottom: 6px; }
.aide { font-size: 12px; color: var(--tres-sourd); margin-top: 5px; }
.ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.espace { justify-content: space-between; }
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); margin-bottom: 18px; }
.grille2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.tuile { position: relative; overflow: hidden; background: var(--verre); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 16px 18px; transition: border-color .2s, transform .2s; }
.tuile:hover { border-color: var(--ligne-forte); transform: translateY(-2px); }
.tuile::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(rgba(25, 212, 88, .14), transparent 70%); }
.tuile .n { font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile .l { font-size: 12px; color: var(--sourd); margin-top: 4px; letter-spacing: .02em; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; font-size: 11.5px; font-weight: 500; border-radius: 999px;
  background: rgba(134, 160, 141, .12); color: var(--sourd); white-space: nowrap; }
.badge.avertissement { background: rgba(215, 193, 140, .14); color: var(--or); }
.badge.mute, .badge.expulsion { background: rgba(91, 122, 201, .16); color: #9fb4ea; }
.badge.ban, .badge.alerte { background: rgba(201, 91, 91, .16); color: #f0a8a8; }
.badge.deban, .badge.demute, .badge.ok { background: rgba(25, 212, 88, .14); color: var(--neon-clair); }
.badge.annulee { text-decoration: line-through; opacity: .6; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 12px 6px; border-bottom: 1px solid rgba(97, 201, 91, .07); }
.liste li:last-child { border-bottom: 0; }
.liste .cliquable { cursor: pointer; border-radius: var(--rayon-petit); transition: background .15s; }
.liste .cliquable:hover { background: var(--verre-clair); }
.liste .nouveau { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(25, 212, 88, .18); } to { background: transparent; } }
.details { margin-top: 8px; padding: 10px 12px; background: var(--champ); border-left: 2px solid var(--neon-doux);
  border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; white-space: pre-wrap; word-break: break-word; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(97, 201, 91, .07); vertical-align: middle; }
th { font-weight: 600; color: var(--tres-sourd); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--verre-clair); }
.defile { overflow-x: auto; }

.bandeau { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--rayon); margin-bottom: 18px;
  background: rgba(201, 91, 91, .12); border: 1px solid rgba(201, 91, 91, .4); color: #f3c0c0; }
.bandeau.or { background: rgba(215, 193, 140, .1); border-color: rgba(215, 193, 140, .35); color: var(--or); }

.coches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.coches label { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; cursor: pointer; }
.module { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--neon-doux); margin: 16px 0 8px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--neon); flex: none; cursor: pointer; }
input[type=color] { padding: 3px; height: 40px; }
.bascule { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.bascule input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 22px; background: rgba(134, 160, 141, .25);
  position: relative; transition: background .2s; padding: 0; border: 0; }
.bascule input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #cfe0d4; transition: transform .2s cubic-bezier(.3, .7, .3, 1.3); }
.bascule input:checked { background: var(--neon); box-shadow: 0 0 14px rgba(25, 212, 88, .4); }
.bascule input:checked::after { transform: translateX(16px); background: var(--sur-neon); }

/* Fenêtre modale */
.voile { position: fixed; inset: 0; background: rgba(1, 6, 3, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fondu .2s; }
.modale { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: var(--verre-fort); box-shadow: var(--ombre);
  animation: monte .25s cubic-bezier(.2, .7, .2, 1); }
.modale h2 { color: var(--texte); font-size: 18px; text-transform: none; letter-spacing: 0; }
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(12px) scale(.98); } }

#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; max-width: calc(100% - 40px); }
.toast { padding: 12px 16px; border-radius: var(--rayon-petit); background: var(--verre-fort); border: 1px solid var(--ligne-forte);
  box-shadow: var(--ombre); animation: monte .25s; border-left: 3px solid var(--neon); }
.toast.erreur { border-left-color: var(--rouge); }

.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.connexion .cadre { max-width: 400px; width: 100%; text-align: center; padding: 40px 32px; box-shadow: var(--ombre); }
.connexion img { width: 108px; height: 108px; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 0 50px rgba(25, 212, 88, .35); }
.connexion h1 { font-size: 30px; margin-bottom: 4px; }
.connexion .bouton { margin-top: 22px; justify-content: center; width: 100%; padding: 12px; }

@media (max-width: 860px) {
  .coquille { grid-template-columns: 1fr; }
  .cote { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
  .coquille.ouvert .cote { transform: none; box-shadow: var(--ombre); }
  .barre-mobile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 30;
    background: var(--cote); border-bottom: 1px solid var(--ligne); }
  .barre-mobile img { width: 28px; height: 28px; border-radius: 50%; }
  .contenu { padding: 20px 16px; }
  .grille2 { grid-template-columns: 1fr; }
  .grille { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Thèmes (choix gardé dans le navigateur de chaque staff) ---------- */
/* « Sombre » : noir profond, aucun halo, vert seulement pour l'essentiel. */
:root[data-theme="sombre"] {
  --fond: #050505; --fond2: #0b0b0b; --verre: rgba(16, 16, 16, .92); --verre-fort: rgba(22, 22, 22, .97);
  --verre-clair: rgba(255, 255, 255, .045); --ligne: rgba(255, 255, 255, .08); --ligne-forte: rgba(255, 255, 255, .18);
  --texte: #ececec; --sourd: #8b8b8b; --tres-sourd: #5c5c5c; --neon: #61c95b; --neon-doux: #61c95b; --neon-clair: #9fdc9b;
  --cote: #0a0a0a; --champ: #0e0e0e; --option: #111; --halo1: transparent; --halo2: transparent;
}
:root[data-theme="sombre"] .marque img, :root[data-theme="sombre"] .avatar.grand,
:root[data-theme="sombre"] .connexion img { box-shadow: none; }
:root[data-theme="sombre"] .nav a.actif { background: rgba(255, 255, 255, .06); }
:root[data-theme="sombre"] .nav a.actif::before { box-shadow: none; }
:root[data-theme="sombre"] .tuile::after { display: none; }
/* « Clair » : pour le plein jour. */
:root[data-theme="clair"] {
  color-scheme: light;
  --fond: #eef4f0; --fond2: #e3ece6; --verre: rgba(255, 255, 255, .78); --verre-fort: rgba(255, 255, 255, .95);
  --verre-clair: rgba(19, 120, 60, .06); --ligne: rgba(19, 90, 45, .13); --ligne-forte: rgba(19, 90, 45, .3);
  --texte: #0f2216; --sourd: #4f6957; --tres-sourd: #7d9484; --neon: #12a548; --neon-doux: #2f9a3c; --neon-clair: #0d7f37;
  --cote: rgba(255, 255, 255, .7); --champ: #fff; --option: #fff; --sur-neon: #fff;
  --halo1: rgba(18, 165, 72, .10); --halo2: rgba(18, 165, 72, .06); --ombre: 0 10px 40px rgba(15, 50, 25, .12);
}
:root[data-theme="clair"] .badge.avertissement { color: #8a6d24; }
:root[data-theme="clair"] .badge.mute, :root[data-theme="clair"] .badge.expulsion { color: #34539c; }
:root[data-theme="clair"] .badge.ban, :root[data-theme="clair"] .badge.alerte, :root[data-theme="clair"] button.rouge { color: #a03a3a; }
:root[data-theme="clair"] .bandeau { color: #8a2f2f; }
:root[data-theme="clair"] button.or, :root[data-theme="clair"] .bandeau.or { color: #7d6320; }
.themes { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--verre-clair); border: 1px solid var(--ligne); margin: 10px 6px 0; }
.themes button { flex: 1; justify-content: center; padding: 5px 0; font-size: 12px; border: 0; background: transparent; border-radius: 999px; color: var(--sourd); }
.themes button.actif { background: var(--neon); color: var(--sur-neon); box-shadow: none; }

/* ---------- Animation d'arrivée (une fois par visite) ---------- */
#intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--fond); animation: intro-fin .5s ease 1.55s forwards; }
#intro .anneau { position: relative; width: 132px; height: 132px; }
#intro img { width: 132px; height: 132px; border-radius: 50%; animation: intro-logo 1.1s cubic-bezier(.2, .8, .2, 1) both; }
#intro .anneau::before, #intro .anneau::after { content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--neon); opacity: 0; animation: intro-onde 1.4s ease-out .25s both; }
#intro .anneau::after { animation-delay: .55s; }
#intro .nom { font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: var(--neon); padding-left: .5em;
  animation: intro-texte .8s ease .45s both; }
#intro .trait { width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent);
  transform: scaleX(0); animation: intro-trait .9s cubic-bezier(.2, .8, .2, 1) .6s forwards; }
@keyframes intro-logo { from { opacity: 0; transform: scale(.7) rotate(-8deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-onde { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes intro-texte { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; } }
@keyframes intro-trait { to { transform: scaleX(1); } }
@keyframes intro-fin { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* ---------- Permissions par rôle ---------- */
details.role { padding: 0; margin-bottom: 10px; transition: border-color .2s; }
details.role[open] { border-color: var(--ligne-forte); }
details.role summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-radius: var(--rayon); }
details.role summary::-webkit-details-marker { display: none; }
details.role summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--sourd); border-bottom: 1.5px solid var(--sourd);
  transform: rotate(-45deg); transition: transform .2s; margin-left: 4px; }
details.role[open] summary::after { transform: rotate(45deg); }
details.role summary:hover { background: var(--verre-clair); }
.pastille { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.corps-role { padding: 4px 18px 18px; animation: entree .22s ease; }
.coches .bascule span { margin: 0; font-size: 14px; color: var(--texte); }
.coches .bascule { padding: 6px 0; }
.bascule input:disabled { opacity: .55; cursor: not-allowed; }
button.lien-mini { padding: 2px 8px; font-size: 11.5px; background: transparent; border-color: transparent; color: var(--sourd); }
button.lien-mini:hover { color: var(--neon-clair); background: var(--verre-clair); }

button svg { width: 18px; height: 18px; flex: none; }
:root[data-theme="clair"] .bascule input { background: rgba(15, 34, 22, .22); }
:root[data-theme="clair"] .bascule input::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
:root[data-theme="clair"] .bascule input:checked::after { background: #fff; }

button.occupe { opacity: .7; cursor: progress; }
button.occupe::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Apparence personnalisée ---------- */
@font-face { font-family: 'KoraCraft'; src: url('KoraCraft-Bold.ttf') format('truetype'); font-display: swap; }
h1, h2, h3, .marque b, .tuile .n { font-family: var(--police-titre, var(--police)); }
.modeles-theme { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.modele-theme { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; font-size: 13px; }
.modele-theme.actif { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon); }
.apercu-theme { display: flex; gap: 6px; align-items: flex-end; height: 46px; padding: 8px; border-radius: var(--rayon-petit); border: 1px solid; }
.apercu-theme i { display: block; flex: 1; height: 100%; border-radius: 4px; }
.apercu-theme i + i { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.grille-couleurs { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.couleur input[type=color] { width: 46px; height: 40px; padding: 3px; flex: none; cursor: pointer; }
.couleur input.mono { min-width: 0; }
input[type=range] { padding: 0; height: 6px; border: 0; background: var(--ligne-forte); accent-color: var(--neon); cursor: pointer; }
/* « Lueurs et animations » coupées : rien ne bouge ni ne brille (ordinateurs lents). */
.sans-effets *, .sans-effets *::before, .sans-effets *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
.sans-effets body::before, .sans-effets .tuile::after { display: none; }
.sans-effets #intro { display: none; }

/* ---------- Tickets ---------- */
.transcription { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; padding-right: 6px; }
.transcription .msg { display: flex; gap: 12px; padding: 8px 6px; border-radius: var(--rayon-petit); }
.transcription .msg:hover { background: var(--verre-clair); }
.transcription .msg.bot b { color: var(--neon-clair); }
.texte-msg { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
tr.cliquable:hover td { color: var(--texte); }
.tuile .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Double authentification ---------- */
.connexion .a2f { max-width: 460px; text-align: left; }
.connexion .a2f > img:first-child { display: block; margin: 0 auto 14px; width: 84px; height: 84px; }
.connexion .a2f h1 { text-align: center; }
.code-a2f { font: 600 26px var(--mono); letter-spacing: .3em; text-align: center; padding: 14px; margin: 14px 0 12px; }
button.large { width: 100%; justify-content: center; padding: 12px; margin-bottom: 12px; }
.etapes { padding-left: 20px; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.etapes .qr { display: block; width: 200px; height: 200px; margin: 4px auto; border-radius: 12px; background: #fff; padding: 8px; }
.codes-secours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.codes-secours span { padding: 8px; text-align: center; border-radius: var(--rayon-petit); background: var(--champ); border: 1px solid var(--ligne); }
label > input[type=color] { width: 72px; }

/* Logs détaillés */
.logs li { padding: 14px 6px; }
.personne a { font-weight: 600; }
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .avant-apres { grid-template-columns: 1fr; } }

/* Rôles */
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12.5px;
  background: var(--verre-clair); border: 1px solid var(--ligne); white-space: nowrap; }
.role-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.role-chip.grade { border-color: var(--ligne-forte); font-weight: 600; }

/* ---------- Réglages : bulles d'aide, cases, paliers ---------- */
.titre-champ { display: inline-flex !important; align-items: center; gap: 6px; }
.champ { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.champ-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.champ-ligne > span { margin: 0 !important; }
.champ-bloc { margin-bottom: 18px; }
.champ-bloc > .titre-champ { font-size: 12.5px; color: var(--sourd); margin-bottom: 8px; }
.explication { margin: -4px 0 16px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--verre-clair); border-left: 3px solid var(--neon);
  font-size: 13.5px; color: var(--texte); }
.bulle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%;
  font: 600 11px var(--police); color: var(--sourd); border: 1px solid var(--ligne-forte); cursor: help; flex: none; }
.bulle:hover, .bulle:focus, .bulle.ouverte { color: var(--sur-neon); background: var(--neon); border-color: var(--neon); outline: none; }
.bulle-texte { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 320px;
  padding: 10px 12px; border-radius: var(--rayon-petit); background: var(--verre-fort); border: 1px solid var(--ligne-forte); box-shadow: var(--ombre);
  font: 400 13px/1.45 var(--police); color: var(--texte); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.bulle:hover .bulle-texte, .bulle:focus .bulle-texte, .bulle.ouverte .bulle-texte { opacity: 1; transform: translateX(-50%); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; padding: 2px; }
.case { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; border-radius: var(--rayon-petit); border: 1px solid var(--ligne);
  cursor: pointer; font-size: 13.5px; transition: background .15s, border-color .15s; min-width: 0; }
.case:hover { background: var(--verre-clair); }
.case.cochee { border-color: var(--neon); background: var(--verre-clair); }
.case input { width: 16px; height: 16px; }
.paliers { display: flex; flex-direction: column; gap: 8px; }
.palier { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--rayon-petit); background: var(--champ); }
.palier > span { color: var(--sourd); font-size: 13.5px; }

.onglets { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--ligne); }
.onglet { border: 0; border-radius: 0; background: transparent; padding: 8px 14px; color: var(--sourd); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglet.actif { color: var(--texte); border-bottom-color: var(--neon); background: transparent; }
.bascule.danger span { color: var(--rouge) !important; }

/* ---------- Aperçu façon Discord ---------- */
.discord-msg { display: flex; gap: 12px; padding: 14px; border-radius: var(--rayon-petit); background: #313338; color: #dbdee1; font: 15px/1.4 'gg sans', 'Segoe UI', sans-serif; }
.discord-msg b { color: #fff; }
.badge-app { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; vertical-align: middle; }
.discord-embed { display: flex; gap: 14px; max-width: 520px; margin-top: 6px; padding: 10px 14px 12px; background: #2b2d31; border-radius: 4px; border-left: 4px solid; }
.embed-titre { font-weight: 700; color: #fff; margin-bottom: 6px; }
.embed-texte { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.embed-image { display: block; max-width: 100%; max-height: 300px; margin-top: 12px; border-radius: 4px; }
.embed-mini { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.embed-pied { margin-top: 8px; font-size: 12px; color: #b5bac1; }
.discord-bouton { padding: 6px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; }
.discord-menu { margin-top: 6px; padding: 10px 12px; border-radius: 4px; background: #1e1f22; color: #949ba4; max-width: 400px; }

.liste-choix { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; margin-top: 8px; }
.choix-membre { justify-content: flex-start; border-color: transparent; background: transparent; }
.choix-membre:hover { background: var(--verre-clair); }

/* ---------- Accueil en catégories, menu par catégorie ---------- */
.grille-categories { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }
.grille-categories.petites { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.carte-categorie { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--rayon);
  background: var(--verre); border: 1px solid var(--ligne); color: var(--texte); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.carte-categorie:hover { color: var(--texte); border-color: var(--neon); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 0 1px var(--neon); }
.carte-categorie::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(var(--halo1), transparent 70%); pointer-events: none; }
.carte-categorie.admin { border-color: rgba(215, 193, 140, .35); }
.carte-categorie.admin .icone-categorie { color: var(--or); background: rgba(215, 193, 140, .12); }
.icone-categorie { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--verre-clair); color: var(--neon); margin-bottom: 6px; }
.icone-categorie svg { width: 24px; height: 24px; }
.carte-categorie .titre { font: 600 18px var(--police-titre, var(--police)); }
.carte-categorie .desc { font-size: 13px; color: var(--sourd); }
.carte-categorie .info { font-size: 12.5px; color: var(--neon-clair); margin-top: 4px; }
.carte-categorie .info.alerte { color: var(--rouge); font-weight: 600; }
.carte-categorie .sections { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.carte-categorie .sections span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--champ); color: var(--sourd); }
.nav .retour { color: var(--sourd); font-size: 13px; padding: 6px 12px; }
.titre-categorie { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; font: 600 15px var(--police-titre, var(--police)); color: var(--texte);
  border-bottom: 1px solid var(--ligne); margin-bottom: 8px; }
.titre-categorie svg { width: 20px; height: 20px; color: var(--neon); }
a.marque { color: inherit; }
/* Salons de logs */
.famille-logs { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.famille-logs:last-child { border-bottom: 0; }
.evenements { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.evenement { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: var(--rayon-petit); background: var(--champ); flex-wrap: wrap; }

.bandeau.vue { background: rgba(91, 122, 201, .14); border-color: rgba(91, 122, 201, .5); color: var(--texte); }

/* Tuiles de texte (page d'un ticket) : plus petites, le texte passe à la ligne au lieu d'être coupé. */
.tuile.texte .n { font-size: 17px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
/* Réponse à un ticket depuis le dashboard */
.reponse-ticket { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.reponse-ticket textarea { flex: 1; min-height: 44px; max-height: 200px; resize: vertical; }
.transcription .msg.staff b { color: var(--neon-clair); }

/* Mentions (@) dans la réponse d'un ticket : liste au-dessus de la zone de saisie */
.zone-saisie { position: relative; flex: 1; display: flex; }
.zone-saisie textarea { flex: 1; }
.mentions { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; max-height: 280px; overflow-y: auto;
  background: var(--fond2); border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit); padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.mentions .choix-membre { width: 100%; }
.mentions .choix-membre.actif { background: var(--verre-clair); border-color: var(--ligne-forte); }

/* Statistiques : graphiques SVG, carte de chaleur, classements */
.graph-boite { position: relative; }
.graph { width: 100%; height: auto; display: block; overflow: visible; }
.graph .g-grille { stroke: var(--ligne); stroke-width: 1; }
.graph .axe { fill: var(--sourd); font-size: 11px; font-family: inherit; }
.graph .curseur { stroke: var(--ligne-forte); stroke-width: 1; stroke-dasharray: 3 3; }
.graph.chaleur { max-width: 760px; }
.graph rect[fill="var(--neon)"] { transition: fill-opacity .2s; }
.bulle-graph { position: absolute; top: 6px; min-width: 150px; padding: 8px 10px; border-radius: var(--rayon-petit); pointer-events: none;
  background: var(--fond2); border: 1px solid var(--ligne-forte); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-size: 13px; z-index: 5; }
.bulle-graph b { display: inline; }
.bulle-graph > b:first-child { display: block; margin-bottom: 4px; color: var(--texte); }
.legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--sourd); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.evolution { font-size: 12px; margin-top: 6px; }
.evolution.hausse { color: var(--neon-doux); }
.evolution.baisse { color: #c95b5b; }
.classement { display: flex; flex-direction: column; gap: 8px; }
.ligne-classement { display: flex; align-items: center; gap: 10px; }
.ligne-classement .rang { width: 26px; text-align: center; color: var(--sourd); font-variant-numeric: tabular-nums; }
.ligne-classement .avatar { width: 26px; height: 26px; }
.barre-classement { position: relative; flex: 1; min-width: 0; height: 30px; border-radius: 8px; background: var(--verre-clair); overflow: hidden; }
.barre-classement .remplissage { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(25, 212, 88, .35), rgba(25, 212, 88, .12));
  border-right: 2px solid var(--neon); border-radius: 8px; }
.barre-classement .nom-classement { position: relative; display: block; padding: 0 10px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.valeur-classement { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.gros-chiffre { font-size: 18px; color: var(--neon-clair); }
.defile { overflow-x: auto; }
.apercu-carte { width: 100%; max-width: 760px; border-radius: 16px; display: block; }

/* Espace staff */
tr.cliquable { cursor: pointer; }
tr.cliquable:hover td { background: var(--verre-clair); }
.cadre.passe { opacity: .6; }

/* Menu par métier (19/10) */
.nav .sous-rubrique { font-size: 11px; color: var(--tres-sourd); margin: 6px 0 2px 12px; text-transform: none; letter-spacing: 0; }
.moi-liens { display: flex; gap: 6px; padding: 8px 12px 0; border-top: 1px solid var(--ligne); }
.moi-liens a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--sourd); }
.moi-liens a:hover { background: var(--verre-clair); color: var(--texte); }
.moi-liens svg { width: 18px; height: 18px; }
/* Mon tableau de bord */
.a-faire h2 { display: flex; align-items: center; gap: 6px; }
.a-faire h2 svg { width: 18px; height: 18px; }
.a-faire .compteur { margin-left: 6px; background: var(--neon); color: #021006; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; }

/* Réunions */
a.carte-reunion { display: block; color: inherit; text-decoration: none; }
a.carte-reunion:hover { border-color: var(--ligne-forte); }
.point-odj { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.point-odj:last-child { border-bottom: 0; }
.point-odj.traite > .ligne b { color: var(--neon-clair); }
.presence { padding: 6px 0; border-bottom: 1px solid var(--ligne); }
.presence button { padding: 4px 10px; font-size: 12px; }

/* Wiki du staff */
.wiki-contenu { line-height: 1.6; }
.wiki-contenu .wiki-titre { text-transform: none; letter-spacing: 0; color: var(--texte); margin: 18px 0 8px; }
.wiki-contenu h2.wiki-titre { font-size: 22px; } .wiki-contenu h3.wiki-titre { font-size: 18px; } .wiki-contenu h4.wiki-titre { font-size: 15px; }
.wiki-contenu blockquote { margin: 10px 0; padding: 6px 14px; border-left: 3px solid var(--neon-doux); background: var(--verre-clair); border-radius: 0 8px 8px 0; }
.wiki-contenu pre { background: var(--fond2); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.wiki-contenu code { background: var(--verre-clair); padding: 1px 5px; border-radius: 4px; }
.wiki-contenu hr { border: 0; border-top: 1px solid var(--ligne-forte); margin: 18px 0; }
.wiki-contenu ul, .wiki-contenu ol { padding-left: 22px; }
.wiki-img { max-width: 100%; border-radius: 10px; margin: 8px 0; display: block; }
.wiki-saisie { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.wiki-liste li { padding: 6px 0; }

/* Planning */
.planning { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (max-width: 1100px) { .planning { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .planning { grid-template-columns: 1fr; } }
.jour-planning { background: var(--verre); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 10px; min-width: 0; }
.jour-planning.aujourdhui { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon) inset; }
.tete-jour { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.creneau { background: var(--verre-clair); border: 1px solid var(--ligne); border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.creneau.vide { border-color: rgba(201, 91, 91, .6); background: rgba(201, 91, 91, .08); }
.creneau .personne { color: #e08b8b; font-size: 12px; margin-top: 6px; font-weight: 600; }
.puce-staff { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(97, 201, 91, .16); color: var(--neon-clair); display: inline-flex; align-items: center; gap: 4px; }
.puce-staff.absent { background: rgba(215, 193, 140, .12); color: #d7c18c; text-decoration: line-through; }
.puce-staff.remplace { background: rgba(91, 122, 201, .2); color: #a9bdf0; }
button.mini, .icone.mini { padding: 3px 8px; font-size: 12px; margin-top: 6px; }
.icone.mini { margin: 0; padding: 0 2px; min-width: 0; height: auto; background: none; border: 0; }
.cases-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; }

/* Rapports de test */
.fil-rapport { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }
.msg-rapport { padding: 10px 12px; border-radius: 10px; background: var(--verre-clair); border: 1px solid var(--ligne); }
.msg-rapport.bot { border-color: rgba(97, 201, 91, .35); }
.piece-rapport { max-width: 220px; max-height: 160px; border-radius: 8px; display: block; }

/* Tableau de bord épuré (19/10) : une liste « À traiter » */
.a-traiter h2 { display: flex; align-items: center; gap: 8px; }
.a-traiter .compteur { background: var(--neon); color: #021006; border-radius: 999px; padding: 0 9px; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.liste-a-traiter { display: flex; flex-direction: column; gap: 6px; }
.ligne-a-traiter { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--verre-clair);
  border: 1px solid var(--ligne); color: var(--texte); text-decoration: none; border-left: 3px solid var(--neon-doux); }
.ligne-a-traiter:hover { border-color: var(--ligne-forte); }
.ligne-a-traiter.or { border-left-color: #d7c18c; } .ligne-a-traiter.rouge { border-left-color: #c95b5b; }
.ligne-a-traiter .texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-a-traiter .texte b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ligne-a-traiter .fleche { color: var(--sourd); font-size: 20px; }
.pastille-icone { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(25, 212, 88, .1); color: var(--neon); flex: none; }
.pastille-icone svg { width: 18px; height: 18px; }
.a-traiter .rien { margin: 0; color: var(--neon-clair); }
.grille-semaine { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 22px; }
.tuile-lien { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--ligne); color: var(--texte); text-decoration: none; }
.tuile-lien:hover { border-color: var(--ligne-forte); }
.tuile-lien .texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
details.replie summary { cursor: pointer; color: var(--sourd); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
details.replie[open] summary { margin-bottom: 12px; }
/* Menu repliable */
.nav .rubrique-bouton { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; margin-top: 2px; background: none; border: 0; border-radius: 10px;
  color: var(--sourd); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.nav .rubrique-bouton svg { width: 18px; height: 18px; flex: none; }
.nav .rubrique-bouton:hover { background: var(--verre-clair); color: var(--texte); }
.nav .rubrique-bouton.ici { color: var(--texte); }
.nav .rubrique-bouton.ici svg { color: var(--neon); }
.nav .rubrique-bouton span:first-of-type { flex: 1; }
.nav .rubrique-bouton .chevron { transition: transform .15s; }
.nav .rubrique-bouton.ouvert .chevron { transform: rotate(90deg); }
.nav .sous-menu { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--ligne); }
.nav .sous-menu a { padding: 7px 10px; font-size: 14px; }

/* Ma fiche perso (19/10) : notes en colonnes, cases à cocher, images */
.notes { columns: 340px; column-gap: 18px; margin-top: 18px; }
.notes .note { break-inside: avoid; margin: 0 0 18px; display: block; }
.note.epinglee { border-color: var(--neon-doux); }
.note-texte { overflow-wrap: anywhere; }
.note-texte > :first-child { margin-top: 0; }
.note-case { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; cursor: pointer; }
.note-case input { margin-top: 4px; width: auto; }
.note-case.faite span { text-decoration: line-through; color: var(--sourd, #8a9a90); }
.note-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.note-image { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; }
.note-images a { max-width: 100%; }
.note-vignette { position: relative; }
.note-vignette img { height: 70px; border-radius: 8px; display: block; }
.note-vignette button { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0; border-radius: 50%; }
.note-pied { margin-top: 10px; align-items: center; }
.note-editeur textarea { width: 100%; resize: vertical; }

/* Visionneuse d'images (fiche perso, wiki) : l'image en grand par-dessus la page */
.note-image, .wiki-img, .note-vignette img { cursor: zoom-in; }
.visionneuse { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .86); display: flex; align-items: center;
  justify-content: center; padding: 24px; cursor: zoom-out; }
.visionneuse img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.visionneuse-fermer { position: absolute; top: 14px; right: 14px; font-size: 22px; width: 40px; height: 40px; }

/* Annonces (19/10) */
.annonce-nouvelle { border-color: var(--or, #d7c18c); }

/* Application PC, overlay : fenêtre étroite toujours au-dessus ; la barre KoraBot (30 px) est ajoutée par l'appli. */
.mode-overlay body { font-size: 13px; }

/* Page « Connexion réussie » de l'application PC (connexion faite dans le navigateur) */
.connexion-app { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; }
.connexion-app img { border-radius: 22px; margin-bottom: 10px; }
.connexion-app .bouton { margin: 12px 0; }

/* Page Raccourcis (appli PC) */
button.touches { min-width: 190px; font-family: 'Cascadia Code', Consolas, monospace; letter-spacing: .02em; }
button.touches.attente { border-color: var(--neon, #19d458); color: var(--neon, #19d458); }
.tableau-raccourcis select { min-width: 190px; }

/* Appli PC : mise à jour prête (DA Kora : verre sombre, liseré néon, point vert qui pulse) */
.pastille-maj { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 999px; border: 1px solid rgba(25, 212, 88, .45);
  background: rgba(3, 18, 9, .88); backdrop-filter: blur(10px); color: var(--texte, #e6f2ea); font-size: 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(25, 212, 88, .12); cursor: pointer; }
.pastille-maj b { color: #19d458; font-weight: 600; }
.pastille-maj .pastille-action { padding: 5px 12px; border-radius: 999px; background: #19d458; color: #021a0b; font-weight: 700; font-size: 12px; }
.pastille-maj:hover { border-color: rgba(25, 212, 88, .8); }
.pastille-point { width: 8px; height: 8px; border-radius: 50%; background: #19d458; box-shadow: 0 0 10px #19d458; animation: pulse-maj 1.8s ease-in-out infinite; }
@keyframes pulse-maj { 50% { opacity: .35; box-shadow: 0 0 2px #19d458; } }
@media (prefers-reduced-motion: reduce) { .pastille-point { animation: none; } }

/* Règlement à accepter (première connexion) */
.connexion .cadre.reglement-page { max-width: 860px; width: 100%; text-align: left; padding: 28px 30px; }
.reglement-page h1 { font-size: 22px; }
.reglement-texte { max-height: min(62vh, 640px); overflow-y: auto; margin: 16px 0 8px; padding: 6px 18px; border: 1px solid var(--ligne-forte, rgba(97, 201, 91, .2));
  border-radius: 12px; background: rgba(2, 10, 5, .5); }

/* Bouton « Installer l'application » au-dessus du profil (navigateur seulement) */
.installer-appli { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: auto 0 10px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(25, 212, 88, .35); background: rgba(25, 212, 88, .08);
  color: var(--texte, #e6f2ea); font-size: 13px; font-weight: 600; cursor: pointer; }
.installer-appli:hover { border-color: rgba(25, 212, 88, .7); background: rgba(25, 212, 88, .14); }
.installer-appli svg { width: 16px; height: 16px; }
.installer-appli + .pied-cote { margin-top: 0; }

/* Réglages > Salons du Discord */
.salon-ligne { padding: 6px 0; align-items: center; }
.salon-icone { width: 22px; text-align: center; opacity: .75; flex: none; }
.salon-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
