/* Site Kirikaiju — couleurs tirées du logo : bleu nuit, bleu électrique, cyan, halo. */
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("/polices/chakra-petch/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("/polices/chakra-petch/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: italic; font-display: swap; src: url("/polices/chakra-petch/chakra-petch-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/polices/inter/inter-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --nuit: #030b17;
  --fond: #061a30;
  --marine: #082848;
  --profond: #0b3a68;
  --electrique: #0898d0;
  --cyan: #38c0e0;
  --halo: #8fe6ff;
  --blanc: #f2f9ff;
  --texte: #dcebfa;
  --doux: #93acc8;
  --bord: rgba(56, 192, 224, .18);
  --bord-fort: rgba(56, 192, 224, .45);
  --carte: rgba(8, 40, 72, .55);
  --discord: #5865f2;
  --discord-2: #7b5cf5;
  --rouge: #ff4d6a;
  --vert: #3ddc97;
  --orange: #f5a524;
  --rayon: 18px;
  --titre: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --corps: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --largeur: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--nuit); color: var(--texte);
  font: 400 1rem/1.65 var(--corps); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--halo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); color: var(--blanc); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-style: italic; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--halo); outline-offset: 3px; border-radius: 6px; }
.aller-contenu { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blanc); color: var(--nuit); padding: 8px 14px; border-radius: 8px; }
.aller-contenu:focus { left: 8px; }

/* ---------- Fond animé ---------- */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(8, 152, 208, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(11, 58, 104, .55), transparent 65%),
    linear-gradient(180deg, var(--fond) 0%, var(--nuit) 55%, #020812 100%); }
.fond-grille { position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(56, 192, 224, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 192, 224, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  animation: grille 30s linear infinite; }
@keyframes grille { to { background-position: 56px 56px, 56px 56px; } }
.fond-halo { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.fond-halo.h1 { width: 520px; height: 520px; background: var(--electrique); top: 12%; right: -140px; animation: derive 18s ease-in-out infinite alternate; }
.fond-halo.h2 { width: 420px; height: 420px; background: #1b4fd8; bottom: -120px; left: -120px; opacity: .3; animation: derive 22s ease-in-out infinite alternate-reverse; }
@keyframes derive { to { transform: translate(-80px, 60px) scale(1.15); } }
.fond-particules { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Barre du haut ---------- */
.barre { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px); transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent; }
.barre.defile { background: rgba(3, 11, 23, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--bord); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc);
  font: italic 700 1.3rem/1 var(--titre); letter-spacing: .06em; }
.marque img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px var(--bord-fort), 0 0 22px rgba(56, 192, 224, .35); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu > a:not(.btn) { white-space: nowrap; color: var(--texte); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.menu > a:not(.btn):hover { color: var(--blanc); background: rgba(56, 192, 224, .1); }
.menu .btn { margin-left: 10px; }
.menu-bouton { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bord); background: rgba(8, 40, 72, .6); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-bouton span { display: block; height: 2px; border-radius: 2px; background: var(--blanc); transition: transform .3s, opacity .3s; }
.menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn { --c1: var(--electrique); --c2: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 1rem/1 var(--corps); color: #fff; position: relative; isolation: isolate;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s, filter .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.3em; height: 1.3em; }
.btn-principal { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 28px rgba(8, 152, 208, .45), inset 0 1px 0 rgba(255, 255, 255, .25); color: #021220; }
.btn-principal:hover { box-shadow: 0 12px 36px rgba(56, 192, 224, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-discord { background: linear-gradient(135deg, var(--discord), var(--discord-2)); box-shadow: 0 8px 28px rgba(88, 101, 242, .5), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-discord:hover { box-shadow: 0 12px 38px rgba(123, 92, 245, .65), inset 0 1px 0 rgba(255, 255, 255, .3); filter: brightness(1.08); }
.btn-mc { background: rgba(6, 26, 48, .85); border: 1px solid var(--bord-fort); color: var(--blanc); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
.btn-mc:hover { border-color: var(--vert); box-shadow: 0 8px 28px rgba(61, 220, 151, .25); }
.btn-mc code { font-size: .82rem; color: var(--vert); background: rgba(61, 220, 151, .1); padding: 5px 8px; border-radius: 8px; }
.btn-mc.copie { border-color: var(--vert); }
.btn-contour { background: transparent; border: 1px solid var(--bord-fort); color: var(--blanc); }
.btn-contour:hover { background: rgba(56, 192, 224, .1); border-color: var(--cyan); }
.btn-petit { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: .9rem; gap: 8px; }
.btn-large { min-height: 56px; padding: 0 28px; font-size: 1.05rem; border-radius: 16px; }
.mc-bloc { width: 20px; height: 20px; flex: none; image-rendering: pixelated; border-radius: 3px;
  background:
    linear-gradient(180deg, #5dbb3a 0 32%, #4a9a2c 32% 40%, transparent 40%),
    repeating-linear-gradient(90deg, #8a5a32 0 4px, #74492a 4px 8px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }

/* ---------- Hero ---------- */
.hero { max-width: var(--largeur); margin: 0 auto; min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center; gap: clamp(32px, 6vw, 80px); padding: 40px clamp(16px, 4vw, 40px) 80px; }
.hero-logo { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; justify-self: center; display: grid; place-items: center; }
.hero-logo img { width: 72%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; position: relative; z-index: 2;
  box-shadow: 0 0 0 3px rgba(143, 230, 255, .35), 0 0 60px rgba(56, 192, 224, .55), 0 30px 80px rgba(0, 0, 0, .6);
  animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-12px); } }
.anneau { position: absolute; inset: 6%; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 15%, var(--cyan) 25%, transparent 35% 60%, var(--electrique) 72%, transparent 82%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: tourne 8s linear infinite; filter: drop-shadow(0 0 8px var(--cyan)); }
.anneau-2 { inset: 0; opacity: .45; animation-duration: 14s; animation-direction: reverse; }
@keyframes tourne { to { transform: rotate(360deg); } }
.eclair { position: absolute; z-index: 3; color: var(--halo); filter: drop-shadow(0 0 10px var(--cyan)); opacity: 0; animation: eclair 4.5s infinite; }
.eclair .ico { width: 44px; height: 44px; }
.eclair.e1 { top: 4%; left: 8%; transform: rotate(-18deg); }
.eclair.e2 { top: 18%; right: 0; transform: rotate(14deg); animation-delay: 1.6s; }
.eclair.e3 { bottom: 8%; left: 2%; transform: rotate(8deg) scale(.8); animation-delay: 3s; }
@keyframes eclair { 0%, 100% { opacity: 0; } 4% { opacity: 1; } 7% { opacity: .2; } 10% { opacity: 1; } 22% { opacity: 0; } }

.live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(8, 40, 72, .7); border: 1px solid var(--bord); color: var(--texte); font-size: .9rem; margin-bottom: 18px; }
.live strong { letter-spacing: .06em; font-size: .8rem; color: var(--doux); }
.live-point { width: 10px; height: 10px; border-radius: 50%; background: #5d6f86; }
.live-on { border-color: rgba(255, 77, 106, .55); background: rgba(255, 77, 106, .12); }
.live-on strong { color: #fff; }
.live-on .live-point { background: var(--rouge); box-shadow: 0 0 0 0 rgba(255, 77, 106, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); } }
.live-texte { color: var(--doux); }

.titre-geant { position: relative; font: italic 700 clamp(3.2rem, 10vw, 7rem)/.95 var(--titre); letter-spacing: .02em; margin: 0 0 .15em;
  background: linear-gradient(100deg, #fff 0%, var(--halo) 35%, var(--cyan) 60%, var(--electrique) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(56, 192, 224, .45)) drop-shadow(0 6px 0 rgba(3, 11, 23, .6)); }
.titre-geant::after { content: attr(data-texte); position: absolute; inset: 0; color: var(--cyan); -webkit-text-fill-color: var(--cyan);
  clip-path: inset(0 0 100% 0); animation: glitch 7s infinite steps(1); opacity: .8; }
@keyframes glitch { 0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 93% { clip-path: inset(20% 0 55% 0); transform: translateX(-6px); } 95% { clip-path: inset(60% 0 10% 0); transform: translateX(5px); } 97% { clip-path: inset(40% 0 40% 0); transform: translateX(-3px); } }
.accroche { font: italic 700 clamp(1.1rem, 2.4vw, 1.5rem)/1.3 var(--titre); color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.presentation { max-width: 620px; color: var(--texte); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.puces { display: flex; flex-wrap: wrap; gap: 10px; }
.puce { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--bord); color: var(--texte); text-decoration: none; font-size: .9rem; background: rgba(6, 26, 48, .5); transition: border-color .2s, color .2s; }
.puce:hover { border-color: var(--cyan); color: var(--blanc); }

/* ---------- Sections ---------- */
.section { max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px) 0; }
.section-etroite { max-width: 860px; }
.section-tete { margin-bottom: 36px; }
.surtitre { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font: 600 .85rem/1 var(--titre); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }

.js .apparition { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .apparition.vue { opacity: 1; transform: none; }
.js .apparition .sujet, .js .apparition .jeu { opacity: 0; transform: translateY(24px); transition: opacity .6s ease calc(var(--i, 0) * 90ms + 150ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 90ms + 150ms), border-color .25s, box-shadow .25s; }
.js .apparition.vue .sujet, .js .apparition.vue .jeu { opacity: 1; transform: none; }

/* Live */
.live-grille { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.lecteur { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord-fort); background: #000; box-shadow: 0 0 60px rgba(8, 152, 208, .25); }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur-affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.2); transform: scale(1.03); transition: transform .6s, filter .4s; }
.lecteur:hover .lecteur-affiche { transform: scale(1.07); filter: brightness(.55) saturate(1.3); }
.lecteur-bouton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: none; border: 0; color: #fff; cursor: pointer; font: 600 1rem var(--corps); }
.lecteur-bouton .ico { width: 78px; height: 78px; padding: 22px 18px 22px 26px; border-radius: 50%; background: linear-gradient(135deg, var(--electrique), var(--cyan)); color: #021220;
  box-shadow: 0 0 0 10px rgba(56, 192, 224, .18), 0 0 50px rgba(56, 192, 224, .6); transition: transform .25s; fill: currentColor; }
.lecteur-bouton:hover .ico { transform: scale(1.08); }
.lecteur-note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .6); margin: 0; }
.planning h3 { display: flex; align-items: center; gap: 10px; }
.planning ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.planning li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(3, 11, 23, .35); border: 1px solid var(--bord); }
.planning li span { color: var(--cyan); font-family: var(--titre); text-align: right; }
.planning li em { grid-column: 1 / -1; color: var(--doux); font-style: normal; font-size: .92rem; }
.planning .btn { width: 100%; }

/* Sujets */
.grille-sujets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sujet { transition: transform .3s, border-color .3s, box-shadow .3s; }
.sujet:hover { border-color: var(--bord-fort); box-shadow: 0 20px 60px rgba(8, 152, 208, .2); transform: translateY(-4px); }
.sujet-icone { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: var(--halo);
  background: linear-gradient(135deg, rgba(8, 152, 208, .35), rgba(56, 192, 224, .08)); border: 1px solid var(--bord-fort); box-shadow: 0 0 24px rgba(56, 192, 224, .25); }
.sujet-icone .ico { width: 26px; height: 26px; }
.sujet p { color: var(--doux); margin: 0; }

/* Jeux */
.grille-jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.jeu { border-radius: var(--rayon); overflow: hidden; background: var(--carte); border: 1px solid var(--bord); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.jeu:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--bord-fort); box-shadow: 0 24px 60px rgba(8, 152, 208, .25); }
.jeu-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--marine); }
.jeu-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.jeu:hover .jeu-image img { transform: scale(1.06); }
.jeu-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 11, 23, .9)); }
.jeu-vide { display: grid; place-items: center; height: 100%; color: var(--cyan); }
.jeu-vide .ico { width: 64px; height: 64px; opacity: .5; }
.jeu-statut { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font: 600 .78rem/1.2 var(--corps); letter-spacing: .03em;
  background: rgba(3, 11, 23, .75); border: 1px solid var(--bord-fort); backdrop-filter: blur(6px); color: var(--texte); }
.statut-en-ce-moment .jeu-statut { background: linear-gradient(135deg, var(--electrique), var(--cyan)); color: #021220; border-color: transparent; box-shadow: 0 0 20px rgba(56, 192, 224, .7); }
.statut-en-ce-moment { border-color: var(--bord-fort); }
.statut-ancien .jeu-image img { filter: grayscale(.6) brightness(.8); }
.jeu-texte { padding: 16px 18px 20px; }
.jeu-texte h3 { margin-bottom: 6px; }
.jeu-texte p { color: var(--doux); font-size: .93rem; margin: 0; }

/* Minecraft */
.mc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.mc-statut { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(3, 11, 23, .45); border: 1px solid var(--bord); font-size: .9rem; margin-bottom: 18px; }
.mc-point { width: 10px; height: 10px; border-radius: 50%; background: #5d6f86; }
.mc-statut.en-ligne .mc-point { background: var(--vert); box-shadow: 0 0 12px var(--vert); }
.mc-statut.hors-ligne .mc-point { background: var(--rouge); }
.etapes { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 10px; }
.etapes li { counter-increment: e; display: flex; gap: 12px; align-items: baseline; color: var(--texte); }
.etapes li::before { content: counter(e); flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 .9rem var(--titre); color: #021220; background: linear-gradient(135deg, var(--vert), #7af0c0); }
.mc-version { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--doux); font-size: .93rem; margin: 0; }
.mc-joueurs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.mc-joueurs span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .3); font-size: .85rem; }
.mc-joueurs img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; }
.mc-adresse { display: flex; }
.mc-carte { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--rayon); text-align: center;
  background:
    linear-gradient(180deg, rgba(61, 220, 151, .1), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 10px, transparent 10px 20px),
    rgba(6, 26, 48, .8);
  border: 1px solid rgba(61, 220, 151, .35); box-shadow: 0 0 60px rgba(61, 220, 151, .12), inset 0 1px 0 rgba(255, 255, 255, .05); }
.mc-libelle { color: var(--doux); text-transform: uppercase; letter-spacing: .14em; font: 600 .8rem var(--titre); }
.mc-ip { display: block; font-size: clamp(1.4rem, 3.6vw, 2.2rem); color: var(--blanc); padding: 16px 12px; border-radius: 14px; background: rgba(3, 11, 23, .6); border: 1px dashed rgba(61, 220, 151, .45); word-break: break-all; text-shadow: 0 0 18px rgba(61, 220, 151, .45); }
.mc-carte .btn { width: 100%; }
.mc-carte .btn-mc { background: linear-gradient(135deg, #2fbf7f, var(--vert)); color: #02170d; border: 0; box-shadow: 0 8px 28px rgba(61, 220, 151, .35); }
.mc-note { color: var(--doux); font-size: .85rem; margin: 0; }

/* Communauté */
.communaute { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.communaute-discord { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #4450d8, var(--discord) 45%, var(--discord-2));
  box-shadow: 0 30px 80px rgba(88, 101, 242, .35); }
.communaute-discord h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.communaute-discord p { color: rgba(255, 255, 255, .88); max-width: 460px; margin: 0; }
.communaute-logo { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .16); color: #fff; }
.communaute-logo .ico { width: 38px; height: 38px; }
.communaute-discord::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; opacity: .12; background: currentColor;
  -webkit-mask: url("/img/discord.svg") center / contain no-repeat; mask: url("/img/discord.svg") center / contain no-repeat; color: #fff; transform: rotate(-12deg); }
.communaute-discord .btn-discord { background: #fff; color: var(--discord); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.communaute-discord .btn-discord:hover { filter: none; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.communaute-autres { display: grid; gap: 16px; }
.lien-carte { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--texte); transition: border-color .25s, transform .25s; padding: 20px 22px; }
.lien-carte:hover { border-color: var(--bord-fort); transform: translateX(4px); }
.lien-carte > .ico:first-child { width: 30px; height: 30px; color: var(--cyan); }
.lien-carte span { flex: 1; display: flex; flex-direction: column; }
.lien-carte strong { color: var(--blanc); font-family: var(--titre); font-size: 1.1rem; }
.lien-carte em { font-style: normal; color: var(--doux); font-size: .9rem; }
.lien-carte > .ico:last-child { color: var(--doux); }

/* ---------- Pages intérieures ---------- */
.entete-page { max-width: 860px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 40px) 0; text-align: center; }
.entete-page h1 { font: italic 700 clamp(2.4rem, 7vw, 4.2rem)/1 var(--titre); background: linear-gradient(100deg, #fff, var(--halo) 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entete-page p { color: var(--doux); font-size: 1.08rem; max-width: 640px; margin-inline: auto; }
.entete-page .actions { justify-content: center; }
.page-tickets .section, .page-suivi .section, .page-mentions .section { padding-top: 36px; }

.formulaire { display: grid; gap: 20px; }
.categories { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.categories legend { font: 600 1rem var(--titre); color: var(--blanc); margin-bottom: 12px; padding: 0; }
.categorie input { position: absolute; opacity: 0; pointer-events: none; }
.categorie-carte { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--bord); background: rgba(3, 11, 23, .35); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.categorie-carte .ico { width: 24px; height: 24px; color: var(--cyan); margin-bottom: 6px; }
.categorie-carte strong { color: var(--blanc); font-family: var(--titre); }
.categorie-carte small { color: var(--doux); font-size: .8rem; line-height: 1.4; }
.categorie input:checked + .categorie-carte { border-color: var(--cyan); background: rgba(56, 192, 224, .12); box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(56, 192, 224, .25); }
.categorie input:focus-visible + .categorie-carte { outline: 2px solid var(--halo); outline-offset: 2px; }
.ligne-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ > span { font-weight: 600; color: var(--blanc); font-size: .95rem; }
.champ b { color: var(--cyan); }
.champ input, .champ textarea, .champ select { width: 100%; font: inherit; color: var(--blanc); background: rgba(3, 11, 23, .55); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.champ textarea { resize: vertical; min-height: 110px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 192, 224, .2); }
.champ small { color: var(--doux); font-size: .82rem; }
.champ-erreur input, .champ-erreur textarea { border-color: var(--rouge); }
.champ small.erreur, .categories.champ-erreur legend { color: var(--rouge); }
.erreur-globale { color: #fff; background: rgba(255, 77, 106, .15); border: 1px solid rgba(255, 77, 106, .5); padding: 12px 16px; border-radius: 12px; margin: 0; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire > .btn { justify-self: start; }
.mention { color: var(--doux); font-size: .82rem; margin: 0; }
.alerte-carte, .succes-carte { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.alerte-carte > .ico, .succes-carte > .ico { width: 30px; height: 30px; flex: none; }
.alerte-carte > .ico { color: var(--orange); }
.succes-carte { border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.succes-carte > .ico { color: var(--vert); }
.succes-carte p { margin: 4px 0 0; color: var(--doux); }
.mes-tickets { margin-bottom: 20px; }
.mes-tickets h3 { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; }
.mes-tickets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mes-tickets a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(3, 11, 23, .35); text-decoration: none; color: var(--texte); }
.mes-tickets a:hover { background: rgba(56, 192, 224, .1); }
.mes-tickets small { color: var(--doux); }

.statut { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 600 .8rem/1.3 var(--corps); margin-right: 8px; vertical-align: middle; }
.statut-ouvert { background: rgba(56, 192, 224, .18); color: var(--halo); border: 1px solid var(--bord-fort); }
.statut-en-cours { background: rgba(245, 165, 36, .16); color: #ffd28a; border: 1px solid rgba(245, 165, 36, .45); }
.statut-ferme { background: rgba(147, 172, 200, .14); color: var(--doux); border: 1px solid rgba(147, 172, 200, .35); }
.lien-suivi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; }
.lien-suivi > span { display: flex; align-items: center; gap: 8px; color: var(--doux); font-size: .92rem; }
.fil-messages { display: grid; gap: 14px; margin-bottom: 20px; }
.message { max-width: 85%; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--bord); background: var(--carte); }
.message header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: .9rem; }
.message header strong { color: var(--blanc); }
.message time { color: var(--doux); font-size: .8rem; margin-left: auto; }
.message-texte { white-space: normal; overflow-wrap: anywhere; }
.message-visiteur { justify-self: end; border-bottom-right-radius: 6px; background: rgba(11, 58, 104, .6); }
.message-staff { justify-self: start; border-bottom-left-radius: 6px; border-color: var(--bord-fort); background: linear-gradient(135deg, rgba(8, 152, 208, .2), rgba(8, 40, 72, .6)); }
.message.nouveau { animation: arrive .6s cubic-bezier(.2, .8, .2, 1.1); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.etiquette { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--cyan); color: #021220; text-transform: uppercase; letter-spacing: .05em; }
.texte-long { white-space: normal; }
.texte-long p { color: var(--texte); }

.page-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.code-404 { position: relative; font: italic 700 clamp(6rem, 24vw, 12rem)/1 var(--titre); color: transparent; -webkit-text-stroke: 2px var(--cyan); filter: drop-shadow(0 0 30px rgba(56, 192, 224, .6)); }
.code-404::after { content: attr(data-texte); position: absolute; inset: 0; color: var(--electrique); -webkit-text-stroke: 0; opacity: .25; transform: translate(6px, 6px); }

/* ---------- Pied ---------- */
.pied { max-width: var(--largeur); margin: clamp(70px, 10vw, 120px) auto 0; padding: 36px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--bord);
  display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.pied-marque { display: flex; align-items: center; gap: 12px; font: italic 700 1.15rem var(--titre); color: var(--blanc); }
.pied-marque img { border-radius: 10px; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.pied-liens a, .pied-bas a { display: inline-flex; align-items: center; gap: 8px; color: var(--doux); text-decoration: none; font-size: .92rem; }
.pied-liens a:hover, .pied-bas a:hover { color: var(--blanc); }
.pied-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #5f7895; font-size: .85rem; }
.pied-bas span { margin-right: auto; }
.pied-bas a { font-size: .85rem; color: #5f7895; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 14px 20px; border-radius: 14px; background: rgba(3, 11, 23, .92); border: 1px solid var(--vert); color: var(--blanc); font-weight: 500;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(61, 220, 151, .2); transition: transform .45s cubic-bezier(.2, .9, .2, 1.2); backdrop-filter: blur(10px); }
.toast.visible { transform: translate(-50%, 0); }
.toast .ico { color: var(--vert); width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 24px; }
  .hero-logo { max-width: 300px; }
  .presentation { margin-inline: auto; }
  .actions, .puces { justify-content: center; }
  .live-grille, .mc, .communaute { grid-template-columns: 1fr; }
  .ligne-champs { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-bouton { display: flex; }
  .menu { position: fixed; inset: 68px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 18px;
    background: rgba(3, 11, 23, .96); border: 1px solid var(--bord); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .25s; }
  .menu.ouvert { opacity: 1; transform: none; pointer-events: auto; }
  .menu > a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
  .menu .btn { margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .btn-mc code { display: none; }
  .message { max-width: 100%; }
  .pied { grid-template-columns: 1fr; }
  .pied-liens { justify-content: flex-start; }
  .eclair .ico { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .apparition, .js .apparition .sujet, .js .apparition .jeu { opacity: 1; transform: none; }
}
