/* =====================================================================
   SA:Origins — Los Santos, la nuit tombe.
   ===================================================================== */
:root {
  --fond: #0c0a12;
  --fond-2: #13101b;
  --carte: #1a1624;
  --carte-2: #221d2f;
  --ligne: #2e2840;
  --texte: #f4efe9;
  --doux: #a9a2b8;
  --pale: #6f6880;
  --orange: #ff7a1a;
  --rose: #ff3d72;
  --or: #ffc23d;
  --vert: #3ddc84;
  --rouge: #ff5964;
  --bleu: #5aa9ff;
  --degrade: linear-gradient(100deg, var(--or) 0%, var(--orange) 40%, var(--rose) 100%);
  --rayon: 14px;
  --ombre: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --titre: "Anton", "Impact", "Arial Narrow", sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 var(--corps);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--or); text-decoration: none; }
a:hover { color: #ffd77a; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
::selection { background: var(--rose); color: #fff; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }
.cache { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- titres affiche ---------- */
.surtitre {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .9rem;
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: var(--degrade); }
.titre-section {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .01em; line-height: 1;
}
.titre-page {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin: 0;
}
.degrade-txt { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapeau { color: var(--doux); font-size: 1.1rem; max-width: 62ch; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--degrade); color: #1a0c06; font: 700 .95rem/1 var(--corps);
  box-shadow: 0 10px 30px -10px rgba(255, 90, 50, .7);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  white-space: nowrap;
}
.btn:hover { color: #1a0c06; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 90, 50, .85); filter: saturate(1.15); }
.btn:active { transform: translateY(0); }
.btn-petit { padding: .6em 1.1em; font-size: .85rem; }
.btn-grand { padding: 1.05em 1.9em; font-size: 1.05rem; }
.btn-fantome {
  background: rgba(255, 255, 255, .06); color: var(--texte); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.btn-fantome:hover { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-sobre { background: var(--carte-2); color: var(--texte); box-shadow: inset 0 0 0 1px var(--ligne); }
.btn-sobre:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--pale); }
.btn-danger { background: rgba(255, 89, 100, .12); color: var(--rouge); box-shadow: inset 0 0 0 1px rgba(255, 89, 100, .35); }
.btn-danger:hover { color: #fff; background: var(--rouge); }
.btn-vert { background: rgba(61, 220, 132, .14); color: var(--vert); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .4); }
.btn-vert:hover { color: #0c1a12; background: var(--vert); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lien-btn { background: none; border: 0; padding: 0; color: var(--doux); cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: .35em; }
.lien-btn:hover { color: var(--texte); }

/* ---------- barre de navigation ---------- */
.barre {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 18, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.barre-int { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { font-family: var(--titre); font-size: 1.55rem; letter-spacing: .02em; color: var(--texte); display: inline-flex; align-items: baseline; }
.logo:hover { color: var(--texte); }
.logo-sa { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sep { color: var(--orange); margin: 0 .04em; }
.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav > a, .nav-form button {
  color: var(--doux); font-weight: 600; font-size: .92rem; padding: .5em .8em; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .4em;
}
.nav > a:hover, .nav-form button:hover { color: var(--texte); background: rgba(255, 255, 255, .05); }
.nav > a.actif { color: var(--texte); }
.nav > a.actif:not(.btn)::after { content: ""; position: absolute; }
.nav > a.btn { color: #1a0c06; margin-left: .3rem; padding: .6em 1.1em; }
.nav-sep { width: 1px; height: 22px; background: var(--ligne); margin: 0 .4rem; }
.nav-compte { color: var(--texte) !important; background: rgba(255, 255, 255, .05); }
.nav-form { margin: 0; }
.nav-form button { background: none; border: 0; cursor: pointer; font: inherit; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--texte); padding: .4rem; cursor: pointer; }
.burger .ic { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fond-2); border-bottom: 1px solid var(--ligne); padding: .5rem 16px 1rem;
    transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - 68px); overflow: auto;
  }
  .nav.ouvert { transform: none; }
  .nav > a, .nav-form button { padding: .85em .6em; font-size: 1rem; }
  .nav-sep { width: auto; height: 1px; margin: .4rem 0; }
  .nav > a.btn { margin: .5rem 0 0; }
}

/* ---------- messages ---------- */
.flashs { margin-top: 1.2rem; display: grid; gap: .6rem; }
.flash { padding: .9rem 1.1rem; border-radius: 10px; background: var(--carte); border-left: 3px solid var(--bleu); font-weight: 500; }
.flash-ok { border-color: var(--vert); }
.flash-erreur { border-color: var(--rouge); }
.flash-info { border-color: var(--or); }

/* =====================================================================
   HÉROS
   ===================================================================== */
.heros {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px); display: grid; align-items: center;
  margin-top: -68px; padding: 140px 0 180px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(255, 122, 26, .55), transparent 70%),
    linear-gradient(180deg, #0c0a12 0%, #1b1030 30%, #3d1446 55%, #8a2350 75%, #e0573a 92%, #ff9a3d 100%);
}
.heros-soleil {
  position: absolute; left: 50%; bottom: 20px; width: min(460px, 72vw); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; z-index: -2;
  background: linear-gradient(180deg, #ffe08a 0%, #ffb340 40%, #ff5e4d 75%, #ff3d72 100%);
  box-shadow: 0 0 120px 40px rgba(255, 120, 60, .35);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 45% no-repeat, linear-gradient(#000, #000) top / 100% 55% no-repeat;
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 45% no-repeat, linear-gradient(#000, #000) top / 100% 55% no-repeat;
  animation: lever 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes lever { from { transform: translateY(80px); opacity: 0; } }
.heros-etoiles {
  position: absolute; inset: 0 0 45% 0; z-index: -3; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 15%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 53% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 35% 25%, #fff 50%, transparent 51%);
  animation: scintille 6s ease-in-out infinite alternate;
}
@keyframes scintille { to { opacity: .35; } }
.heros-ville { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: clamp(190px, 24vw, 360px); }
.heros-ville svg { width: 100%; height: 100%; display: block; }
.heros::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 0;
  background: linear-gradient(180deg, transparent, var(--fond));
}
.heros-contenu { position: relative; z-index: 1; text-align: center; }
.heros-etat {
  display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em; border-radius: 999px;
  background: rgba(12, 10, 18, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.6rem;
}
.point { width: 9px; height: 9px; border-radius: 50%; background: var(--pale); flex: none; }
.point-on { background: var(--vert); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.heros h1 {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase; margin: 0;
  font-size: clamp(3.6rem, 13vw, 9.5rem); line-height: .9; letter-spacing: .01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
}
.heros h1 .degrade-txt { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.heros-slogan { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #f1dfd6; max-width: 40ch; margin: 1.2rem auto 2.2rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 2px 24px rgba(0, 0, 0, .6); }
.heros-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.copier-ip { font-variant-numeric: tabular-nums; }
.copier-ip.copie { box-shadow: inset 0 0 0 1px var(--vert); color: var(--vert); }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-tete { margin-bottom: 3rem; }
.section-tete.centre { text-align: center; }
.section-tete.centre .chapeau { margin-inline: auto; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ligne); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.chiffre { background: var(--fond-2); padding: 1.8rem 1.5rem; }
.chiffre b { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; }
.chiffre span { color: var(--doux); font-size: .9rem; font-weight: 500; }
@media (max-width: 640px) { .chiffres { grid-template-columns: 1fr; } }

.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
.intro-texte p { color: var(--doux); font-size: 1.08rem; }
.intro-texte strong { color: var(--texte); }

/* cartes de fonctionnalités */
.onglets { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.onglet {
  background: var(--carte); border: 1px solid var(--ligne); color: var(--doux); border-radius: 999px;
  padding: .6em 1.1em; font: 600 .9rem/1 var(--corps); cursor: pointer; display: inline-flex; align-items: center; gap: .45em;
  transition: all .15s;
}
.onglet:hover { color: var(--texte); border-color: var(--pale); }
.onglet[aria-selected="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.panneau { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; animation: apparait .35s ease both; }
[hidden] { display: none !important; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
.fonction {
  background: linear-gradient(180deg, var(--carte), var(--fond-2)); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.5rem; position: relative; overflow: hidden; transition: transform .2s, border-color .2s;
}
.fonction:hover { transform: translateY(-3px); border-color: rgba(255, 122, 26, .45); }
.fonction-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(255, 122, 26, .12); color: var(--orange); }
.fonction-ic .ic { width: 22px; height: 22px; }
.fonction h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.fonction p { color: var(--doux); font-size: .95rem; margin: 0; }
.fonction code, .etape code, .prose code { background: rgba(255, 255, 255, .07); padding: .1em .4em; border-radius: 5px; font-size: .88em; color: var(--or); }

/* bandeau ville vivante */
.bandeau {
  border-radius: calc(var(--rayon) + 6px); overflow: hidden; position: relative; isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid rgba(255, 122, 26, .25);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255, 61, 114, .35), transparent 60%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(255, 122, 26, .25), transparent 60%),
    var(--fond-2);
}
.bandeau-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .bandeau-grille { grid-template-columns: 1fr; } }
.puces { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.puces li { display: flex; gap: .8rem; align-items: flex-start; color: var(--doux); }
.puces li .ic { color: var(--orange); margin-top: .2em; }
.puces li strong { color: var(--texte); }

/* étapes */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: etape; }
@media (max-width: 960px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
.etape { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.6rem 1.4rem; position: relative; }
.etape::before {
  counter-increment: etape; content: "0" counter(etape);
  font-family: var(--titre); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: .8rem;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.etape h3 { font-size: 1.08rem; }
.etape p { color: var(--doux); font-size: .93rem; margin: 0 0 .9rem; }
.etape p:last-child { margin: 0; }

/* forum (aperçu accueil) + listes */
.deux-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } }
.boite { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.boite-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--ligne); }
.boite-tete h2, .boite-tete h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .5em; }
.boite-corps { padding: 1.4rem; }
.boite-vide { padding: 2rem 1.4rem; color: var(--pale); text-align: center; }
.ligne-liste { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.4rem; border-bottom: 1px solid var(--ligne); color: var(--texte); }
.ligne-liste:last-child { border-bottom: 0; }
a.ligne-liste:hover { background: rgba(255, 255, 255, .03); color: var(--texte); }
.ligne-liste .meta { color: var(--pale); font-size: .82rem; }
.ligne-titre { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.ligne-fin { margin-left: auto; text-align: right; flex: none; }
.joueurs-en-ligne { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1.2rem 1.4rem; }
.joueur-tag { background: var(--carte-2); border: 1px solid var(--ligne); border-radius: 999px; padding: .3em .8em; font-size: .85rem; font-weight: 500; }

/* =====================================================================
   PAGES INTÉRIEURES
   ===================================================================== */
.page-tete {
  padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--ligne); margin-bottom: 2.5rem;
  background: radial-gradient(ellipse 70% 120% at 85% 0%, rgba(255, 61, 114, .16), transparent 60%), radial-gradient(ellipse 50% 100% at 10% 0%, rgba(255, 122, 26, .12), transparent 60%);
}
.page-tete .chapeau { margin: .8rem 0 0; }
.page-tete-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.fil { font-size: .85rem; color: var(--pale); margin-bottom: .8rem; display: flex; gap: .5em; flex-wrap: wrap; }
.fil a { color: var(--doux); }
.fil a:hover { color: var(--texte); }
.bas-page { padding-bottom: 5rem; }

/* formulaires */
.carte-form {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: calc(var(--rayon) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--ombre);
}
.page-auth { display: grid; place-items: center; padding: 4rem 0 6rem; }
.page-auth .carte-form { width: min(460px, 100% - 32px); }
.carte-form h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; margin-bottom: .3rem; }
.carte-form > p.doux { margin-bottom: 1.6rem; }
.champ { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.champ label { font-weight: 600; font-size: .9rem; }
.champ .aide { color: var(--pale); font-size: .82rem; }
input[type=text], input[type=password], input[type=email], input[type=search], select, textarea {
  width: 100%; background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px; color: var(--texte);
  padding: .8em .95em; font: 500 1rem/1.4 var(--corps); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.case { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--doux); margin-bottom: 1.2rem; }
.case input { margin-top: .25em; accent-color: var(--orange); }
.form-bas { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.doux { color: var(--doux); }
.pale { color: var(--pale); }
.petit { font-size: .85rem; }
.erreurs { background: rgba(255, 89, 100, .1); border: 1px solid rgba(255, 89, 100, .35); color: #ffb3b8; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: .92rem; }
.erreurs ul { margin: 0; padding-left: 1.1rem; }

/* compte / personnages */
.grille-persos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 960px) { .grille-persos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grille-persos { grid-template-columns: 1fr; } }
.perso {
  background: linear-gradient(180deg, var(--carte-2), var(--carte)); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; color: var(--texte);
  transition: transform .2s, border-color .2s;
}
a.perso:hover { transform: translateY(-3px); border-color: rgba(255, 122, 26, .5); color: var(--texte); }
.perso-tete { display: flex; gap: 1rem; align-items: center; }
.perso-nom { font-family: var(--titre); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; }
.perso-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: .88rem; }
.perso-stats div { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: .5rem .7rem; }
.perso-stats span { display: block; color: var(--pale); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.perso-vide {
  border: 2px dashed var(--ligne); background: transparent; align-items: center; justify-content: center; text-align: center;
  min-height: 230px; color: var(--doux);
}
.perso-vide .ic { width: 34px; height: 34px; color: var(--orange); }
.avatar {
  width: 64px; height: 64px; border-radius: 14px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 120%, rgba(255, 122, 26, .5), transparent 70%), var(--fond-2);
  border: 1px solid var(--ligne);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.5) translateY(14%); }
.avatar-vide { font-family: var(--titre); font-size: 1.8rem; color: var(--orange); }
.avatar-grand { width: 120px; height: 120px; border-radius: 20px; }
.avatar-grand.avatar-vide { font-size: 3.2rem; }

.pastille { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pastille-ok { background: rgba(61, 220, 132, .14); color: var(--vert); }
.pastille-attente { background: rgba(255, 194, 61, .14); color: var(--or); }
.pastille-refus { background: rgba(255, 89, 100, .14); color: var(--rouge); }
.pastille-staff { background: rgba(255, 61, 114, .16); color: #ff8fb0; }
.pastille-neutre { background: rgba(255, 255, 255, .07); color: var(--doux); }

.fiche { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } }
.fiche-id { text-align: center; position: sticky; top: 88px; }
@media (max-width: 900px) { .fiche-id { position: static; } }
.fiche-id .avatar { margin: 0 auto 1rem; }
.fiche-id .perso-nom { font-size: 1.9rem; }
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.info { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start; }
.info .ic { color: var(--orange); width: 20px; height: 20px; margin-top: .15em; }
.info span { display: block; color: var(--pale); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info b { font-weight: 600; font-size: 1.02rem; }
.jauge { height: 6px; background: var(--fond-2); border-radius: 99px; overflow: hidden; margin-top: .45rem; }
.jauge i { display: block; height: 100%; background: var(--degrade); border-radius: 99px; }
.liste-biens { display: grid; gap: .5rem; }
.bien { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; background: var(--fond-2); border-radius: 10px; font-size: .95rem; }
.bien .ic { color: var(--orange); }

/* logs */
.filtres { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filtres select, .filtres input { width: auto; min-width: 180px; padding: .6em .8em; font-size: .9rem; }
.table-logs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-logs th { text-align: left; color: var(--pale); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .7rem 1rem; border-bottom: 1px solid var(--ligne); }
.table-logs td { padding: .7rem 1rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.table-logs tr:last-child td { border-bottom: 0; }
.table-logs td:first-child { white-space: nowrap; color: var(--doux); font-variant-numeric: tabular-nums; }
.defile { overflow-x: auto; }
@media (max-width: 640px) {
  .table-logs thead { display: none; }
  .table-logs tr { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--ligne); }
  .table-logs td { display: block; padding: .1rem 0; border: 0; }
}

/* =====================================================================
   FORUM
   ===================================================================== */
.categories { display: grid; gap: .7rem; }
.categorie {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.2rem; align-items: center;
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.15rem 1.4rem; color: var(--texte);
  transition: border-color .15s, background .15s;
}
.categorie:hover { border-color: rgba(255, 122, 26, .45); color: var(--texte); background: var(--carte-2); }
.categorie-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 122, 26, .12); color: var(--orange); }
.categorie-ic .ic { width: 22px; height: 22px; }
.categorie h2 { font-size: 1.08rem; margin: 0 0 .15rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.categorie p { margin: 0; color: var(--doux); font-size: .9rem; }
.categorie-nb { text-align: center; color: var(--doux); font-size: .82rem; min-width: 70px; }
.categorie-nb b { display: block; color: var(--texte); font-size: 1.15rem; }
.categorie-dernier { width: 220px; font-size: .85rem; color: var(--doux); }
.categorie-dernier b { color: var(--texte); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
@media (max-width: 860px) {
  .categorie { grid-template-columns: auto 1fr; }
  .categorie-nb, .categorie-dernier { display: none; }
}
.sujets .ligne-liste { gap: 1rem; }
.sujet-ic { color: var(--pale); flex: none; display: flex; gap: .2rem; }
.sujet-ic .ic-on { color: var(--or); }
.sujet-reponses { min-width: 80px; text-align: center; color: var(--doux); font-size: .82rem; flex: none; }
.sujet-reponses b { display: block; color: var(--texte); font-size: 1.05rem; }
@media (max-width: 640px) { .sujet-reponses { display: none; } }

.message { display: grid; grid-template-columns: 190px 1fr; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; margin-bottom: 1rem; }
.message-auteur { background: var(--fond-2); padding: 1.3rem; border-right: 1px solid var(--ligne); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.message-auteur .avatar { width: 72px; height: 72px; }
.message-auteur b { word-break: break-word; }
.message-corps { padding: 1.3rem 1.5rem; min-width: 0; display: flex; flex-direction: column; }
.message-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--pale); font-size: .82rem; margin-bottom: .9rem; flex-wrap: wrap; }
.message-actions { display: flex; gap: .9rem; }
.message-actions form { margin: 0; }
.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 .9em; }
.prose p:last-child { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.message-signature { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ligne); color: var(--pale); font-size: .85rem; font-style: italic; }
.message-op { border-color: rgba(255, 122, 26, .3); }
@media (max-width: 700px) {
  .message { grid-template-columns: 1fr; }
  .message-auteur { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--ligne); padding: .9rem 1.1rem; }
  .message-auteur .avatar { width: 44px; height: 44px; }
  .message-auteur .avatar-vide { font-size: 1.3rem; }
}
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.5rem 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .7rem; border-radius: 9px; background: var(--carte); border: 1px solid var(--ligne); color: var(--doux); font-weight: 600; font-size: .9rem; }
.pagination a:hover { color: var(--texte); border-color: var(--pale); }
.pagination .actuelle { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.outils-mod { display: flex; gap: .5rem; flex-wrap: wrap; }
.outils-mod form { margin: 0; }
.aide-format { color: var(--pale); font-size: .8rem; margin-top: .4rem; }

/* téléchargements */
.telechargements { display: grid; gap: 1rem; }
.fichier { display: flex; align-items: center; gap: 1.2rem; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.3rem 1.5rem; }
.fichier-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 122, 26, .12); color: var(--orange); flex: none; }
.fichier-ic .ic { width: 26px; height: 26px; }
.fichier h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.fichier p { margin: 0; color: var(--doux); font-size: .92rem; }
.fichier .btn { margin-left: auto; }
@media (max-width: 640px) { .fichier { flex-wrap: wrap; } .fichier .btn { margin-left: 0; width: 100%; } }
.encart { border-left: 3px solid var(--or); background: rgba(255, 194, 61, .07); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; color: var(--doux); }
.encart strong { color: var(--texte); }
.chemin { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; background: var(--fond-2); border: 1px solid var(--ligne); padding: .15em .5em; border-radius: 6px; color: var(--texte); word-break: break-all; }

/* pied */
.pied { border-top: 1px solid var(--ligne); background: var(--fond-2); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.pied-int { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.pied-txt { color: var(--pale); font-size: .88rem; margin-top: .6rem; }
.pied-liens { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.pied-liens a { color: var(--doux); font-weight: 500; font-size: .92rem; }
.pied-liens a:hover { color: var(--texte); }
.pied-mention { color: var(--pale); font-size: .78rem; margin-top: 2rem; }

/* apparition au défilement */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}

.titre-page .ic { width: .62em; height: .62em; vertical-align: .08em; color: var(--or); }
.discord-membres .joueur-tag { display: inline-flex; align-items: center; gap: .4em; }
.discord-membres img { width: 20px; height: 20px; border-radius: 50%; margin-left: -.35em; }
.statut { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.statut-idle { background: var(--or); }
.statut-dnd { background: var(--rouge); }
.pastille-discord { background: rgba(88, 101, 242, .18); color: #a5adff; margin-left: .3rem; }
.pastille-discord .ic { width: 1em; height: 1em; }
