@font-face {
  font-family: "Pixelify Sans";
  src: url("../assets/fonts/pixelify-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #040a18;
  --deep: #081a3a;
  --panel: #0a1c3d;
  --panel-2: #0e2650;
  --line: #1d4378;
  --blue: #1e8fff;
  --ice: #7fdcff;
  --text: #e8f4ff;
  --muted: #a3bbd8;
  --done: #4ff0b0;
  --doing: #ffc24d;
  --todo: #7d94b5;
  --idea: #c9a6ff;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --titre: "Arial Black", Arial, Helvetica, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arete: rgb(127 220 255 / .22);
  --verre: linear-gradient(160deg, rgb(21 56 112 / .86), rgb(7 20 46 / .94));
  --ombre: 0 18px 44px rgb(1 6 18 / .5);
  --cristal: linear-gradient(180deg, #a5ecff 0%, #5cc8fb 48%, #2a9df4 100%);
}

html[data-theme="clair"] {
  color-scheme: light;
  --ink: #eef5fb;
  --deep: #d9e8f6;
  --panel: #ffffff;
  --panel-2: #f3f8fd;
  --line: #9ebad6;
  --blue: #1570d0;
  --ice: #0b5fad;
  --text: #0a1c3d;
  --muted: #3a5470;
  --arete: rgb(20 90 160 / .22);
  --verre: linear-gradient(160deg, rgb(255 255 255 / .97), rgb(240 247 253 / .99));
  --ombre: 0 16px 40px rgb(30 70 120 / .12);
  --todo: #5a7290;
}

html[data-theme="clair"] body {
  background: radial-gradient(ellipse 90% 70% at 50% 28%, #d9ebfa 0%, #eef5fb 50%, #f7fafd 100%) fixed var(--ink);
  color: var(--text);
}

html[data-theme="clair"] .nav {
  background: rgb(255 255 255 / .92);
  border-color: rgb(20 90 160 / .16);
  box-shadow: 0 12px 32px rgb(30 70 120 / .1);
}
html[data-theme="clair"] .nav.nav-defile {
  background: rgb(255 255 255 / .98);
  border-color: rgb(21 112 208 / .35);
  box-shadow: 0 10px 28px rgb(30 70 120 / .14);
}
html[data-theme="clair"] .nav-liens a { color: #3a5470; }
html[data-theme="clair"] .nav-liens a:hover {
  color: var(--text);
  background: rgb(21 112 208 / .08);
}
html[data-theme="clair"] .nav-liens a[aria-current] {
  color: #0b5fad;
  background: rgb(21 112 208 / .12);
}
html[data-theme="clair"] .logo-clair {
  filter: brightness(.82) saturate(1.15);
}

html[data-theme="clair"] .ip,
html[data-theme="clair"] .statut,
html[data-theme="clair"] .etapes li,
html[data-theme="clair"] .carte,
html[data-theme="clair"] .document code,
html[data-theme="clair"] .journal-texte code,
html[data-theme="clair"] .journal-texte pre {
  background: rgb(255 255 255 / .84);
}
html[data-theme="clair"] .pied {
  background: linear-gradient(180deg, rgb(236 245 253 / .98), #e8f2fc);
}
html[data-theme="clair"] .pied::before {
  background: linear-gradient(90deg, transparent, var(--blue), var(--ice), transparent);
}
html[data-theme="clair"] .onglets a {
  background: rgb(255 255 255 / .8);
}
html[data-theme="clair"] .onglets a[aria-current] { color: #03234f; }
html[data-theme="clair"] .journal-spoiler {
  background: #c5d6e8;
}
html[data-theme="clair"] .journal-spoiler.visible {
  background: rgb(30 143 255 / .12);
}
html[data-theme="clair"] .surtitre,
html[data-theme="clair"] .journal-tete .journal-sur-titre,
html[data-theme="clair"] .profil-sur-titre { color: #0b5fad; }
html[data-theme="clair"] .nav-discord {
  color: #3a5470;
  background: rgb(88 101 242 / .12);
}
html[data-theme="clair"] .nav-theme {
  color: #0b5fad;
  background: rgb(21 112 208 / .1);
}

/* Documents légaux : titres / chiffres lisibles sur fond clair */
html[data-theme="clair"] .document h2,
html[data-theme="clair"] .document h3,
html[data-theme="clair"] .document a:not(.block),
html[data-theme="clair"] .juridique-tete time,
html[data-theme="clair"] .sommaire a::before {
  color: #0a3d78;
}
html[data-theme="clair"] .juridique .document section h2::before {
  color: #0a1c3d;
}
html[data-theme="clair"] .sommaire a {
  color: #2a4060;
}
html[data-theme="clair"] .sommaire a:hover {
  color: #0a3d78;
}
html[data-theme="clair"] .maj {
  color: #3a5470;
}
html[data-theme="clair"] .essentiel {
  background: rgb(21 112 208 / .08);
  border-color: rgb(20 90 160 / .22);
}
html[data-theme="clair"] .essentiel h2 {
  color: #0a1c3d;
}
html[data-theme="clair"] .onglets a {
  color: #2a4060;
  background: rgb(255 255 255 / .88);
  border-color: rgb(20 90 160 / .2);
}
html[data-theme="clair"] .onglets a:hover {
  color: #0a1c3d;
  background: rgb(21 112 208 / .1);
}
html[data-theme="clair"] th {
  background: rgb(21 112 208 / .08);
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: radial-gradient(ellipse 90% 70% at 50% 38%, #103a78 0%, #081a3a 45%, var(--ink) 100%) fixed var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
}

body.page-accueil {
  background:
    radial-gradient(ellipse 70% 45% at 50% 12%, rgb(40 130 230 / .35), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 70%, #0a244f 0%, #061428 42%, var(--ink) 100%) fixed var(--ink);
}
html[data-theme="clair"] body.page-accueil {
  background:
    radial-gradient(ellipse 70% 40% at 50% 8%, rgb(180 220 255 / .7), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 55%, #d9ebfa 0%, #eef5fb 55%, #f7fafd 100%) fixed var(--ink);
}

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }

/* Les pages longues défilent : rien ne doit être écrasé par le flex du body */
body > * { flex-shrink: 0; }

.link {
  padding: 4px 2px;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
.link:hover { color: var(--ice); }

/* Boutons : facettes de cristal, reflet en haut et lueur au survol */

.block, .nav-bouton, .copier {
  --edge: #0d4f9e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #c9f3ff;
  border-radius: 8px;
  color: #03234f;
  background: var(--cristal);
  font: 600 1.1rem/1.2 var(--pixel);
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 8px 22px rgb(30 143 255 / .32);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.block:hover, .nav-bouton:hover, .copier:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 12px 30px rgb(92 200 251 / .5);
}
.block:active, .nav-bouton:active, .copier:active { transform: translateY(1px); filter: brightness(.96); }

.block { min-height: 50px; padding: 12px 26px; font-size: 1.2rem; }
.block:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; }

.bouton-discord {
  border-color: #a9b1ff;
  color: #fff;
  background: linear-gradient(180deg, #7985f7 0%, #5865f2 50%, #424ed0 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 22px rgb(88 101 242 / .35);
}
.bouton-discord:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 12px 30px rgb(88 101 242 / .55); }

.bouton-discret {
  border-color: var(--arete);
  color: var(--text);
  background: rgb(127 220 255 / .08);
  box-shadow: none;
}
.bouton-discret:hover { background: rgb(127 220 255 / .16); box-shadow: none; }

/* Marqueurs de stade : forme et couleur différentes pour rester lisibles sans la couleur */

.mark {
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}
.mark.terminé { background: var(--done); }
.mark.terminé::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #04261a;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}
.mark.en-cours { border: 2px solid var(--doing); background: linear-gradient(90deg, var(--doing) 50%, transparent 50%); }
.mark.à-faire { border: 2px solid var(--todo); }
.mark.idée { border: 2px dashed var(--idea); }
.mark.idée::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--idea);
}

/* Barre de navigation */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  width: min(1200px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--arete);
  border-radius: 14px;
  background: rgb(7 21 48 / .82);
  backdrop-filter: blur(14px);
  box-shadow: var(--ombre);
  animation: nav-arrivee .45s ease-out;
  transition: background .25s, border-color .25s, box-shadow .25s;
}

/* Au défilement, la barre s'éclaire ; sa hauteur ne change pas pour ne pas faire sauter la page */
.nav.nav-defile {
  border-color: rgb(127 220 255 / .5);
  background: rgb(7 21 48 / .94);
  box-shadow: 0 10px 30px rgb(1 6 18 / .55), 0 0 22px rgb(92 200 251 / .28);
}

@keyframes nav-arrivee {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav { animation: none; transition: none; }
}

.nav-marque img { display: block; width: 138px; height: auto; transition: filter .15s; }
.nav-marque:hover img { filter: brightness(1.15); }

.nav-liens { display: flex; gap: 4px; margin-right: auto; }
.nav-liens a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-liens a:hover { color: var(--text); background: rgb(127 220 255 / .1); }
.nav-liens a[aria-current] { color: var(--ice); background: rgb(127 220 255 / .14); }

.nav-actions { display: flex; gap: 8px; }
.nav-bouton { min-height: 40px; padding: 7px 16px; font-size: 1.05rem; }
.nav-discord {
  border-color: var(--arete);
  color: var(--text);
  background: rgb(88 101 242 / .28);
  box-shadow: none;
}
.nav-discord:hover { background: rgb(88 101 242 / .55); box-shadow: none; }

.nav-bouton.nav-boutique {
  border-color: #ffe28a;
  color: #463000;
  background: #ffd630;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 8px 22px rgb(255 176 0 / .4);
}
.nav-bouton.nav-boutique:hover {
  background: #ffe052;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 12px 30px rgb(255 193 0 / .55);
}
html[data-theme="clair"] .nav-bouton.nav-boutique { color: #5a3a00; }


.nav-theme {
  width: 44px;
  padding: 0;
  border-color: var(--arete);
  color: var(--text);
  background: rgb(127 220 255 / .1);
  box-shadow: none;
}
.nav-theme:hover { background: rgb(127 220 255 / .22); box-shadow: none; }
.nav-theme svg { display: block; }
.nav-theme .icone-lune { display: none; }
html[data-theme="clair"] .nav-theme .icone-soleil { display: none; }
html[data-theme="clair"] .nav-theme .icone-lune { display: block; }
html[data-theme="clair"] .nav-theme {
  background: rgb(30 143 255 / .1);
  color: #0a4a8a;
}
html[data-theme="clair"] .nav-theme:hover { background: rgb(30 143 255 / .2); }

.nav-menu {
  display: none;
  flex: none;
  width: 42px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--arete);
  border-radius: 8px;
  background: rgb(127 220 255 / .08);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .15s, border-color .15s;
}
.nav-menu:hover { background: rgb(127 220 255 / .16); }
.nav-menu span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-ouverte .nav-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ouverte .nav-menu span:nth-child(2) { opacity: 0; }
.nav-ouverte .nav-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Accueil */

.hero {
  position: relative;
  min-height: calc(92dvh - 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 10vh;
  text-align: center;
}

.logo-wrap {
  margin: 0;
  width: min(760px, 92vw);
  animation: drop .7s steps(7) both, float 6s ease-in-out .7s infinite;
  filter: drop-shadow(0 18px 40px rgb(20 120 255 / .28));
}
.logo {
  display: block;
  width: 100%;
  height: auto;
  transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px));
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-48px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.tagline {
  margin: 8px 0 28px;
  max-width: 34ch;
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  text-shadow: 0 2px 18px var(--ink);
  animation: rise .5s .35s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: rise .5s .5s both;
}
.hero-discord {
  min-height: 58px;
  padding: 12px 22px;
}

.ip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px;
  border: 1px solid rgb(127 220 255 / .45);
  border-radius: 14px;
  background: rgb(5 16 38 / .9);
  box-shadow: var(--ombre), 0 0 40px rgb(30 143 255 / .32);
}
.ip code {
  padding: 4px 18px;
  font: 600 clamp(1.25rem, 4vw, 1.7rem)/1.2 var(--pixel);
  letter-spacing: .02em;
  user-select: all;
}
.copier { min-width: 102px; min-height: 44px; padding: 8px 16px; }

.statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 6px 16px;
  border: 1px solid rgb(255 194 77 / .22);
  border-radius: 999px;
  background: rgb(5 16 38 / .72);
  font-size: .95rem;
  animation: rise .5s .65s both;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--doing);
  animation: pulse 1.6s steps(4) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(255 194 77 / .28); } }

.contenu {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px 72px;
}

.bloc {
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--arete);
  border-radius: 20px;
  background: var(--verre);
  backdrop-filter: blur(10px);
  box-shadow: var(--ombre);
}
.bloc-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.bloc-tete h2 { margin: 2px 0 0; }
.accueil-lien {
  color: var(--ice);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.accueil-lien:hover { text-decoration: underline; }
.accueil-lien span { display: inline-block; transition: transform .15s; }
.accueil-lien:hover span { transform: translateX(3px); }

.surtitre {
  margin: 0;
  color: var(--ice);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bloc h2 { margin: 2px 0 22px; font: 900 clamp(1.6rem, 3.6vw, 2.2rem)/1.15 var(--titre); }

.accueil-actus-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.accueil-actus-vide {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.accueil-actu {
  --i: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--arete);
  border-radius: 14px;
  background: rgb(4 12 30 / .5);
  color: inherit;
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
  animation: rise .5s calc(.08s * var(--i)) both;
}
.accueil-actu:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ice) 55%, var(--arete));
  background: rgb(8 24 52 / .72);
  box-shadow: 0 14px 28px rgb(1 6 18 / .35);
}
.accueil-actu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: .82rem;
  color: var(--muted);
}
.accueil-actu-cat {
  color: var(--ice);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
}
.accueil-actu-cat[data-c="Mise à jour"] { color: var(--ice); }
.accueil-actu-cat[data-c="Annonce"] { color: var(--doing); }
.accueil-actu-cat[data-c="Événement"] { color: var(--idea); }
.accueil-actu-titre {
  font: 900 1.15rem/1.25 var(--titre);
  color: var(--text);
}
.accueil-actu-extrait {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.accueil-actu-lire {
  margin-top: 4px;
  color: var(--ice);
  font-weight: 700;
  font-size: .9rem;
}
.accueil-actu:hover .accueil-actu-lire { text-decoration: underline; }

html[data-theme="clair"] .accueil-actu {
  background: rgb(255 255 255 / .72);
}
html[data-theme="clair"] .accueil-actu:hover {
  background: #fff;
  box-shadow: 0 14px 28px rgb(30 70 120 / .12);
}
html[data-theme="clair"] .ip {
  background: rgb(255 255 255 / .92);
  border-color: rgb(20 90 160 / .28);
  box-shadow: 0 12px 28px rgb(30 70 120 / .12);
}
html[data-theme="clair"] .statut {
  background: rgb(255 255 255 / .85);
  border-color: rgb(200 140 40 / .28);
  color: #3a5470;
}

.etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes li {
  counter-increment: etape;
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgb(4 12 30 / .45);
}
.etapes li::before {
  content: counter(etape);
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #03234f;
  background: var(--cristal);
  font: 600 1.25rem/1 var(--pixel);
}

.univers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.univers-accueil {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pilier {
  padding: 8px 4px;
}
.pilier-icone {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: var(--ice);
  background: color-mix(in srgb, var(--ice) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ice) 28%, transparent);
}
.pilier h3 { margin: 0 0 6px; font: 900 1.25rem/1.2 var(--titre); }
.pilier p { margin: 0; color: var(--muted); max-width: 32ch; }

.carte {
  --c: var(--ice);
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(4 12 30 / .45);
  transition: transform .15s, border-color .15s, background .15s;
}
.carte:hover { transform: translateY(-3px); border-color: var(--c); background: rgb(4 12 30 / .7); }
.carte svg { display: block; width: 38px; height: 38px; margin-bottom: 10px; color: var(--c); }
.carte h3 { margin: 0 0 4px; font: 900 1.3rem/1.2 var(--titre); }
.carte p { margin: 0; color: var(--muted); }
.carte:nth-child(1) { --c: #4ff0b0; }
.carte:nth-child(2) { --c: #7fdcff; }
.carte:nth-child(3) { --c: #ffc24d; }
.carte:nth-child(4) { --c: #c9a6ff; }
.carte:nth-child(5) { --c: #ff9db8; }
.carte:nth-child(6) { --c: #8fb6ff; }

@media (max-width: 900px) {
  .accueil-actus-liste,
  .univers-accueil { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-discord { width: min(100%, 320px); }
}

/* Liaison Discord */
.lien-flow h1 {
  margin: 4px 0 8px;
  font: 900 clamp(1.8rem, 4vw, 2.4rem)/1.15 var(--titre);
}
.lien-panneau {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--arete);
  border-radius: 18px;
  background: var(--verre);
  box-shadow: var(--ombre);
}
.lien-texte { margin: 0 0 18px; color: var(--muted); }
.lien-compte {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lien-avatar {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  background: #071428;
  image-rendering: pixelated;
  border: 1px solid var(--arete);
}
.lien-avatar-rond {
  border-radius: 50%;
  image-rendering: auto;
  border-color: color-mix(in srgb, #5865f2 55%, var(--arete));
}
.lien-label {
  margin: 0 0 2px;
  color: var(--ice);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lien-nom {
  margin: 0;
  font: 900 1.25rem/1.2 var(--titre);
  overflow-wrap: anywhere;
}
.lien-duo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 22px;
}
.lien-plus {
  color: var(--ice);
  font-size: 1.4rem;
  font-weight: 700;
}
.lien-panneau .block { margin-top: 4px; }
.lien-discord {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}
.lien-discord img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--arete);
}

/* Pages de texte */

.document {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto 56px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--arete);
  border-radius: 18px;
  background: var(--verre);
  box-shadow: var(--ombre);
}
.document h1 { margin: 0; font: 900 clamp(1.8rem, 5vw, 2.5rem)/1.15 var(--titre); }
.maj { margin: 6px 0 24px; color: var(--muted); font-size: .92rem; }
.document section { margin-top: 28px; }
.document h2 { margin: 0 0 10px; font: 900 1.45rem/1.2 var(--titre); color: var(--ice); }
.document h3 { margin: 20px 0 4px; font-size: 1.02rem; font-weight: 600; }
.document p { margin: 0 0 10px; }
.document ul { margin: 0 0 10px; padding-left: 22px; }
.document li { margin-bottom: 4px; }
.document a:not(.block) { color: var(--ice); text-underline-offset: 3px; }
.document dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.document dt { color: var(--muted); }
.document dd { margin: 0; font-weight: 600; }
.document code { padding: 2px 6px; border-radius: 5px; background: var(--ink); color: var(--ice); overflow-wrap: anywhere; }

.tableau { overflow-x: auto; margin-bottom: 12px; border: 1px solid var(--arete); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--arete); }
tr:last-child td { border-bottom: 0; }
th { background: rgb(127 220 255 / .1); }
.tableau code { padding: 0; background: none; }

.bientot { width: min(560px, calc(100% - 32px)); margin-top: 8vh; text-align: center; }
.bientot p { margin: 12px 0 20px; color: var(--muted); }

/* Documents légaux */

.juridique {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px 24px;
  align-items: start;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.onglets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.onglets a {
  padding: 7px 14px;
  border: 1px solid var(--arete);
  border-radius: 8px;
  background: rgb(7 21 48 / .7);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.onglets a:hover { color: var(--text); background: rgb(127 220 255 / .12); }
.onglets a[aria-current] { color: #03234f; background: var(--cristal); border-color: #c9f3ff; }

.juridique-tete { grid-column: 1 / -1; }
.juridique-tete h1 { margin: 6px 0 0; font: 900 clamp(1.8rem, 5vw, 2.7rem)/1.15 var(--titre); }
.juridique-tete .maj { margin: 8px 0 0; color: var(--text); }
.juridique-tete time { font-weight: 600; color: var(--ice); white-space: nowrap; }

.sommaire {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid var(--arete);
  border-radius: 14px;
  background: var(--verre);
}
.sommaire h2 { margin: 0 0 8px; font: 900 1.15rem/1.2 var(--titre); }
.sommaire ol { margin: 0; padding: 0; list-style: none; counter-reset: sommaire; }
.sommaire li { counter-increment: sommaire; }
.sommaire a { display: flex; gap: 8px; padding: 5px 0; color: var(--muted); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.sommaire a::before { content: counter(sommaire); color: var(--ice); font-weight: 600; }
.sommaire a:hover { color: var(--ice); }

.juridique .document { width: auto; margin: 0; counter-reset: article; }
.juridique .document section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--arete); scroll-margin-top: 92px; }
.juridique .document section h2 { counter-increment: article; display: flex; gap: 10px; }
.juridique .document section h2::before { content: counter(article) "."; color: var(--text); }

.essentiel { padding: 14px 18px; border-radius: 12px; background: rgb(127 220 255 / .1); border: 1px solid var(--arete); }
.essentiel h2 { margin: 0 0 4px; font: 900 1.2rem/1.2 var(--titre); color: var(--text); }
.essentiel p { margin: 0; }
.essentiel p + p { margin-top: 12px; }
.essentiel .block { display: inline-flex; margin-top: 4px; }

/* Pied de page */

.pied {
  position: relative;
  margin-top: auto;
  padding: 0 max(16px, calc((100% - 1200px) / 2));
  border-top: 1px solid var(--arete);
  background: linear-gradient(180deg, rgb(8 26 58 / .96), var(--ink));
}
.pied::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ice), var(--blue), transparent);
}



.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--arete);
  color: var(--muted);
  font-size: .85rem;
}
.pied-bas p { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.pied-bas a { color: inherit; text-underline-offset: 3px; }
.pied-bas a:hover { color: var(--ice); }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .juridique { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: static; max-height: none; }
  .juridique .document section { scroll-margin-top: 130px; }
  .etapes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { top: 6px; }
  .nav-marque img { width: 108px; }
  .nav-bouton { min-height: 36px; padding: 5px 10px; font-size: .95rem; }
}

@media (max-width: 560px) {
  .document dl { grid-template-columns: 1fr; gap: 0; }
  .document dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Profil joueur */

.nav-skin { display: block; flex: none; width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; }

.page-profil {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgb(30 120 220 / .22), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 55%, #0a244f 0%, #061428 45%, var(--ink) 100%) fixed var(--ink);
}
html[data-theme="clair"] .page-profil {
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgb(160 210 255 / .55), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 50%, #d9ebfa 0%, #eef5fb 55%, #f7fafd 100%) fixed var(--ink);
}

.profil-page {
  flex: 1;
  width: min(720px, calc(100% - 32px));
  margin: 36px auto 64px;
}
.profil-erreur {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #b23a4c;
  border-radius: 12px;
  background: rgb(122 34 48 / .35);
}

.profil-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--arete);
  border-radius: 22px;
  background: var(--verre);
  box-shadow: var(--ombre);
}
.profil-hero-fond {
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  background:
    linear-gradient(120deg, rgb(30 143 255 / .35), rgb(127 220 255 / .12) 45%, transparent 75%),
    radial-gradient(circle at 85% 20%, rgb(127 220 255 / .28), transparent 45%);
  pointer-events: none;
}
.profil-hero-corps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 18px 22px;
  padding: 28px 24px 24px;
}
.profil-avatar {
  flex: none;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(160deg, #a5ecff, #1e8fff 60%, #0b4f9e);
  box-shadow: 0 12px 28px rgb(20 100 220 / .35);
}
.profil-skin {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #071428;
  image-rendering: pixelated;
}
.profil-skin-erreur { opacity: .35; }
.profil-identite { flex: 1; min-width: 12rem; padding-bottom: 4px; }
.profil-sur-titre {
  margin: 0 0 4px;
  color: var(--ice);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.profil-identite h1 {
  margin: 0;
  font: 900 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--titre);
  overflow-wrap: anywhere;
}
.profil-soustitre { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.profil-hero .block { min-height: 42px; padding: 8px 18px; font-size: 1.05rem; align-self: center; }

.profil-liaison {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--arete);
  border-radius: 18px;
  background: var(--verre);
  box-shadow: var(--ombre);
}
.profil-liaison-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.profil-liaison-tete h2 {
  margin: 2px 0 0;
  font: 900 1.45rem/1.15 var(--titre);
}
.profil-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profil-badge[data-etat="vide"] {
  color: #9a6400;
  background: color-mix(in srgb, var(--doing) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--doing) 35%, transparent);
}
.profil-badge[data-etat="ok"] {
  color: #0d6b4a;
  background: color-mix(in srgb, var(--done) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--done) 40%, transparent);
}
html[data-theme="clair"] .profil-badge[data-etat="ok"] { color: #0a5a3e; }
html[data-theme="clair"] .profil-badge[data-etat="vide"] { color: #8a5800; }

.profil-liaison-vide p { margin: 0 0 8px; color: var(--text); }
.profil-liaison-aide {
  color: var(--muted) !important;
  font-size: .92rem;
}
.profil-liaison-aide code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--ice);
  font: 600 .9rem/1.3 var(--pixel);
}

.profil-liaison-lie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.profil-discord {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.profil-discord img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #5865f2 55%, var(--arete));
  background: #5865f2;
}
.profil-discord-infos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profil-discord-infos strong {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.profil-discord-infos span {
  color: var(--muted);
  font-size: .88rem;
}
.profil-liaison-lie .block {
  min-height: 40px;
  padding: 7px 16px;
  font-size: 1rem;
}

.profil-note {
  margin: 18px 2px 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

@media (max-width: 560px) {
  .profil-hero-corps { padding: 22px 16px 18px; }
  .profil-hero-fond { height: 72px; }
  .profil-skin { width: 88px; height: 88px; }
  .profil-hero .block,
  .profil-liaison-lie .block { width: 100%; }
  .profil-liaison { padding: 18px 16px; }
}

.nav-discord { padding: 0; width: 44px; }
.nav-discord svg { display: block; width: 24px; height: 24px; }
@media (max-width: 760px) { .nav-discord { width: 40px; padding: 0; } }

/* Pages centrées dans la barre, avec une icône devant chaque nom */
.nav-liens { margin: 0; }
.nav-liens a { display: inline-flex; align-items: center; gap: 7px; }
.nav-liens svg { display: block; flex: none; width: 18px; height: 18px; }

@media (min-width: 961px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; padding-inline: 14px; }
  .nav-marque { justify-self: start; }
  .nav-actions { justify-self: end; }
  .nav-menu { display: none !important; }
}

/* Mobile : hamburger + panneau de liens */
@media (max-width: 960px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
  .nav-marque { margin-right: auto; }
  .nav-actions { order: 2; }
  .nav-menu { display: inline-flex; order: 3; margin-left: 0; }
  .nav-liens {
    display: none;
    order: 4;
    width: 100%;
    margin: 4px 0 0;
    padding: 8px;
    border: 1px solid var(--arete);
    border-radius: 12px;
    background: rgb(4 12 30 / .55);
    flex-direction: column;
    gap: 4px;
  }
  html[data-theme="clair"] .nav-liens {
    background: rgb(255 255 255 / .9);
  }
  .nav-ouverte .nav-liens { display: flex; }
  .nav-liens a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: .98rem;
    border-radius: 10px;
  }
  .nav-actions .nav-connexion { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 560px) {
  .nav-actions .nav-connexion {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .nav { column-gap: 6px; padding-inline: 10px; }
  .nav-marque img { width: 84px; }
  .nav-actions { gap: 6px; }
  .nav-bouton { padding-inline: 8px; }
  .nav-theme, .nav-discord, .nav-menu { width: 38px; height: 36px; }
}

/* Titres : Arial Black */
h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 900;
}

/* Actualités */

.journal { flex: 1; width: min(1200px, calc(100% - 24px)); margin: 40px auto 56px; }
.journal-tete { margin-bottom: 24px; text-align: center; }
.journal-tete h1 { margin: 0; font: 900 clamp(2.2rem, 6vw, 3.2rem)/1.1 var(--titre); }
.journal-tete p { margin: 8px 0 0; color: var(--muted); }
.journal-tete .journal-sur-titre { margin: 0 0 4px; color: var(--ice); font-weight: 600; }

.journal-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.journal-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.journal-filtres button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--arete);
  border-radius: 999px;
  background: rgb(127 220 255 / .06);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  transition: background .15s, color .15s, border-color .15s;
}
.journal-filtres button:hover { color: var(--text); background: rgb(127 220 255 / .14); }
.journal-filtres button[aria-pressed="true"] { color: #03234f; background: var(--cristal); border-color: #c9f3ff; }
#journal-recherche {
  flex: 0 1 260px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--arete);
  border-radius: 10px;
  background: rgb(4 10 24 / .6);
  color: var(--text);
  font: inherit;
}
#journal-recherche::placeholder { color: var(--muted); }
#journal-recherche:focus { outline: 0; border-color: var(--ice); box-shadow: 0 0 0 3px rgb(127 220 255 / .25); }

.journal-etat { margin: 32px 0; color: var(--muted); text-align: center; }
.journal-etat:empty { display: none; }

.journal-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.journal-carte {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.journal-carte:hover { transform: none; }

.journal-visuel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ice) 28%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgb(92 200 251 / .35), transparent 60%),
    linear-gradient(145deg, #0e2a58, #081a3a);
  box-shadow: var(--ombre);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
html[data-theme="clair"] .journal-visuel {
  background:
    radial-gradient(circle at 30% 20%, rgb(30 143 255 / .16), transparent 60%),
    linear-gradient(145deg, #c8ddf3, #a8c6e6);
}
.journal-carte:hover .journal-visuel {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ice) 68%, var(--line));
  box-shadow: var(--ombre), 0 15px 34px color-mix(in srgb, var(--ice) 16%, transparent);
}
.journal-visuel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgb(4 9 20 / .45));
  pointer-events: none;
}
.journal-visuel-image::after {
  background: linear-gradient(transparent 58%, rgb(4 9 20 / .62));
}
.journal-visuel > img,
.journal-visuel-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-couverture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c, var(--ice)) 26%, transparent), transparent 55%);
}
.journal-couverture[data-c="Mise à jour"] { --c: var(--ice); }
.journal-couverture[data-c="Annonce"] { --c: var(--idea); }
.journal-couverture[data-c="Événement"] { --c: var(--done); }
.journal-couverture[data-c="Boutique"] { --c: var(--doing); }
.journal-couverture[data-c="Maintenance"] { --c: #ff9d9d; }
.journal-couverture-logo {
  position: relative;
  z-index: 0;
  width: min(46%, 150px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / .35));
}
.journal-couverture-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  background: rgb(4 9 20 / .55);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.journal-coin {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: 10px;
  background: rgb(4 9 20 / .72);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.journal-corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  padding: 16px 4px 4px;
  overflow: hidden;
}
.journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.journal-tag {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ice);
  font-weight: 900;
  font-size: inherit;
  line-height: inherit;
}
.journal-tag[data-c="Mise à jour"] { color: var(--ice); }
.journal-tag[data-c="Annonce"] { color: var(--idea); }
.journal-tag[data-c="Événement"] { color: var(--done); }
.journal-tag[data-c="Boutique"] { color: var(--doing); }
.journal-tag[data-c="Maintenance"] { color: #ff9d9d; }
.journal-sep {
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
}
.journal-titre {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font: 900 clamp(1.1rem, 2vw, 1.35rem)/1.2 var(--titre);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.journal-extrait {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  max-width: 100%;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.journal-lire {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .16s;
}
.journal-lire > span {
  color: var(--ice);
  font-size: 1rem;
  transition: transform .16s;
}
.journal-carte:hover .journal-lire { color: var(--ice); }
.journal-carte:hover .journal-lire > span { transform: translateX(4px); }

/* Une : dernière actu en grand au-dessus */
@media (min-width: 761px) {
  .journal-une {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px 28px;
    align-items: stretch;
    overflow: visible;
  }
  .journal-une .journal-visuel {
    aspect-ratio: 16 / 10;
    min-height: 300px;
  }
  .journal-une .journal-corps {
    justify-content: center;
    padding: 18px 6px 10px;
    overflow: visible;
  }
  .journal-une .journal-titre {
    -webkit-line-clamp: 3;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  }
  .journal-une .journal-extrait {
    -webkit-line-clamp: 5;
    margin-top: 12px;
    font-size: .98rem;
  }
  .journal-une .journal-couverture-logo { width: min(38%, 180px); }
}

@media (max-width: 960px) {
  .journal-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-une { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .journal-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .journal-une {
    grid-template-columns: minmax(0, 1fr);
  }
  .journal-une .journal-visuel { min-height: 0; }
  #journal-recherche { flex: 1 1 100%; }
}

.journal-plus { margin: 28px 0 0; text-align: center; }
.journal-plus .block { min-height: 44px; font-size: 1.05rem; }

.journal-article {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--arete);
  border-radius: 18px;
  background: var(--verre);
  box-shadow: var(--ombre);
}
.journal-retour { display: inline-block; margin-bottom: 18px; color: var(--ice); font-weight: 600; text-decoration: none; }
.journal-retour:hover { text-decoration: underline; }
.journal-article h1 { margin: 16px 0 18px; font: 900 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--titre); overflow-wrap: anywhere; }
.journal-article h1:focus { outline: 0; }
.journal-texte { overflow-wrap: anywhere; }
.journal-texte h2, .journal-texte h3, .journal-texte h4 { margin: 26px 0 8px; font-family: var(--titre); font-weight: 900; color: var(--ice); line-height: 1.25; }
.journal-texte p { margin: 0 0 12px; }
.journal-texte ul { margin: 0 0 14px; padding-left: 22px; }
.journal-texte li { margin-bottom: 4px; }
.journal-texte li::marker { color: var(--ice); }
.journal-texte blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--ice); border-radius: 0 8px 8px 0; background: rgb(127 220 255 / .07); }
.journal-texte a { color: var(--ice); text-underline-offset: 3px; }
.journal-lien {
  display: inline;
  padding: .08em .42em;
  border-radius: 5px;
  font-weight: 700;
  color: var(--ice);
  background: color-mix(in srgb, var(--ice) 18%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-theme="clair"] .journal-lien {
  color: #0b5fad;
  background: color-mix(in srgb, #0b5fad 14%, transparent);
}
.journal-texte code { padding: 2px 6px; border-radius: 5px; background: var(--ink); color: var(--ice); }
.journal-texte pre { overflow-x: auto; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--ink); }
.journal-texte pre code { padding: 0; background: none; }

/* Mentions Discord dans le journal */
.journal-mention {
  display: inline;
  padding: .08em .38em;
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}
.journal-auteur {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.journal-auteur-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--arete);
  background: var(--panel-2);
  flex-shrink: 0;
}
.journal-auteur-infos {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}
.journal-auteur-nom {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.journal-auteur-via {
  font-size: .78rem;
  color: var(--muted);
}
.journal-mention-salon {
  background: color-mix(in srgb, var(--ice) 18%, transparent);
  color: var(--ice);
}
.journal-mention-role {
  background: color-mix(in srgb, var(--doing) 22%, transparent);
  color: var(--doing);
}
.journal-mention-user {
  background: color-mix(in srgb, #9aa6ff 20%, transparent);
  color: #c3caff;
}
html[data-theme="clair"] .journal-mention-salon {
  background: color-mix(in srgb, #0b5fad 14%, transparent);
  color: #0b5fad;
}
html[data-theme="clair"] .journal-mention-role {
  background: color-mix(in srgb, #c98400 16%, transparent);
  color: #9a6400;
}
html[data-theme="clair"] .journal-mention-user {
  background: color-mix(in srgb, #5865f2 14%, transparent);
  color: #3c4bc7;
}

.journal-article-bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--arete);
}
.journal-article-bandeau .journal-meta {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
}
.journal-article-bandeau .journal-auteur {
  margin: 0;
  margin-right: auto;
}
.journal-modifie { color: var(--muted); font-weight: 500; }

.journal-spoiler { border-radius: 4px; background: #03081a; color: transparent; cursor: pointer; }
.journal-spoiler.visible { background: rgb(127 220 255 / .12); color: inherit; cursor: auto; }
.journal-galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 22px 0; }
.journal-galerie a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--arete); }
.journal-galerie img { display: block; width: 100%; height: auto; }
.journal-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--arete); }
.journal-pied .block { min-height: 44px; font-size: 1.05rem; }
.journal-voisins { display: flex; flex-wrap: wrap; gap: 14px; }
.journal-voisins a { color: var(--ice); font-weight: 600; text-decoration: none; }
.journal-voisins a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .journal-visuel, .journal-lire > span { transition: none; }
  .journal-carte:hover .journal-visuel { transform: none; }
  .journal-carte:hover .journal-lire > span { transform: none; }
  .nav-menu span { transition: none; }
}
