:root {
  --rouge: #ff5053;
  --rouge-fonce: #e1262f;
  --rouge-lueur: rgba(255, 60, 70, .55);
  --texte: #f4f1f1;
  --doux: #b9b1b2;
  --verre: rgba(22, 16, 18, .62);
  --bord: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #07050a;
  color: var(--texte);
  font-family: Outfit, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- fond */
.fond { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.fond-img {
  position: absolute; inset: -40px;
  background: url("assets/fond-accueil.jpg") center / cover no-repeat;
  filter: blur(10px) saturate(1.05) brightness(.62);
  transform: scale(1.08);
  animation: respirer 28s ease-in-out infinite alternate;
  transition: filter 1.2s var(--ease);
}
body[data-vue="accueil"] .fond-img { filter: blur(6px) saturate(1.1) brightness(.7); }
.fond-voile {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(120, 10, 20, .18), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, .7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 22%, transparent 70%, rgba(0, 0, 0, .7));
}
@keyframes respirer { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.braises { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------------------------------------------------------------- barre */
.barre {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 56px;
  padding: 18px 52px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
}
.barre-logo .logo-teiko { width: 96px; }
.barre-liens { display: flex; gap: 38px; font-weight: 500; font-size: 15px; }
.barre-liens a { position: relative; color: #ddd; padding: 6px 0; transition: color .25s; }
.barre-liens a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.barre-liens a:hover, .barre-liens a.actif { color: #fff; }
.barre-liens a:hover::after, .barre-liens a.actif::after { transform: scaleX(1); }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.langues { display: flex; gap: 14px; font-weight: 700; font-size: 15px; }
.langues button { color: #777; transition: color .2s; }
.langues button.actif, .langues button:hover { color: #fff; }

/* ---------------------------------------------------------------- boutons */
.bouton-rouge, .bouton-verre {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.bouton-rouge {
  background: linear-gradient(180deg, #ff6466, var(--rouge-fonce));
  box-shadow: 0 8px 30px var(--rouge-lueur), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bouton-rouge:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 60, 70, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.bouton-verre { background: rgba(255, 255, 255, .07); border: 1px solid var(--bord); backdrop-filter: blur(10px); }
.bouton-verre:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.grand { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

/* ---------------------------------------------------------------- vues */
main { min-height: 100vh; position: relative; }
.vue {
  position: absolute; inset: 0; min-height: 100vh;
  display: grid; place-items: center; padding: 110px 24px 90px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(18px) scale(.985);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .6s;
}
.vue.actif { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }

/* accueil */
.heros { display: flex; flex-direction: column; align-items: center; text-align: center; }
.heros-logo { width: min(680px, 86vw); }
.vue-accueil.actif .heros-logo { animation: logoEntree 1.3s var(--ease) both; }
.vue-accueil.actif .heros-sous { animation: monter .9s .45s var(--ease) both; }
.vue-accueil.actif .heros-actions { animation: monter .9s .6s var(--ease) both; }
.vue-accueil.actif .statut { animation: monter .9s .75s var(--ease) both; }
@keyframes logoEntree {
  0% { opacity: 0; transform: scale(1.25); filter: blur(14px); }
  60% { opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}
@keyframes monter { from { opacity: 0; transform: translateY(16px); } }
.heros-sous { margin: 6px 0 34px; font-size: 18px; letter-spacing: 5px; text-transform: uppercase; color: #e9dcdc; font-weight: 500; text-shadow: 0 2px 12px #000; }
.heros-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.statut {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; color: #ddd;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--bord); backdrop-filter: blur(8px);
}
.point { width: 9px; height: 9px; border-radius: 50%; background: #888; }
.statut.en-ligne .point { background: #3ddc84; box-shadow: 0 0 12px #3ddc84; animation: pulse 2s infinite; }
.statut.hors-ligne .point { background: var(--rouge); box-shadow: 0 0 10px var(--rouge); }
@keyframes pulse { 50% { opacity: .45; } }

/* logo */
.logo-teiko { aspect-ratio: 760 / 330; }
.logo-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo-svg .logo-virgule { filter: drop-shadow(0 0 14px rgba(255, 50, 60, .8)); }
.logo-svg .logo-kunai { filter: drop-shadow(0 0 18px rgba(255, 40, 50, .7)); }

/* cartes de verre */
.carte-verre {
  width: min(980px, 100%);
  padding: 54px 48px 50px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(30, 22, 25, .78), rgba(18, 13, 16, .72));
  border: 1px solid var(--bord);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px);
  position: relative; overflow: hidden;
}
.carte-verre::before {
  content: ""; position: absolute; left: 48px; top: 0; width: 120px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--rouge), transparent);
}
.carte-verre h1 { margin: 0 0 16px; font-size: 52px; font-weight: 800; letter-spacing: -1px; }
.chapo { margin: 0 0 22px; font-size: 19px; font-weight: 600; }
.texte { margin: 0 0 34px; color: var(--doux); font-size: 16px; line-height: 1.7; max-width: 680px; }
.grille-3, .grille-2 { display: grid; gap: 16px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.tuile {
  padding: 22px 22px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--bord);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.tuile:hover { transform: translateY(-4px); border-color: rgba(255, 80, 83, .45); background: rgba(255, 80, 83, .06); }
.tuile h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.tuile p { margin: 0; color: var(--doux); line-height: 1.6; font-size: 15px; }
.note { margin: 28px 0 0; color: var(--doux); font-size: 15px; }
.vue.actif .carte-verre { animation: carteEntree .8s var(--ease) both; }
.vue.actif .tuile { animation: monter .7s var(--ease) both; }
.vue.actif .tuile:nth-child(2) { animation-delay: .07s; }
.vue.actif .tuile:nth-child(3) { animation-delay: .14s; }
.vue.actif .tuile:nth-child(4) { animation-delay: .21s; }
@keyframes carteEntree { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); } }

/* pied */
.pied {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: space-between;
  width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0;
  font-size: 14px; color: #a49b9c;
  opacity: 0; transition: opacity .5s;
}
body:not([data-vue="accueil"]) .pied { opacity: 1; }
.pied a:hover { color: #fff; }

@media (max-width: 860px) {
  .barre { padding: 14px 16px; gap: 18px; flex-wrap: wrap; }
  .barre-liens { gap: 18px; font-size: 14px; }
  .barre-droite { gap: 14px; }
  .barre-droite .bouton-rouge { padding: 10px 14px; font-size: 13px; }
  .grille-3, .grille-2 { grid-template-columns: 1fr; }
  .carte-verre { padding: 36px 22px; }
  .carte-verre h1 { font-size: 36px; }
  .vue { padding-top: 150px; position: relative; }
  .vue:not(.actif) { display: none; }
}
@media (min-width: 861px) { html, body { overflow: hidden; } }


/* =====================================================================
   Accueil facon « Free-Access » : pilules en haut, titre et JOUER en bas a gauche
   ===================================================================== */
.fond-img { background-image: url("assets/fonds/uchiha.jpg"); }
body[data-vue="accueil"] .fond-img { filter: blur(1.5px) saturate(1.05) brightness(.72); }
body[data-vue="accueil"] .fond-voile { background:
  linear-gradient(90deg, rgba(8, 8, 12, .92) 0%, rgba(8, 8, 12, .55) 38%, rgba(8, 8, 12, .1) 70%),
  linear-gradient(0deg, rgba(8, 8, 12, .95) 0%, rgba(8, 8, 12, .35) 40%, transparent 65%),
  linear-gradient(180deg, rgba(8, 8, 12, .6), transparent 18%),
  radial-gradient(ellipse at 80% 60%, rgba(255, 60, 70, .12), transparent 55%); }
.barre { justify-content: space-between; padding: 22px 46px; background: none; }
.pilule-wrap { position: relative; }
.pilule { display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px; border-radius: 16px;
  background: rgba(14, 14, 20, .62); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(12px);
  transition: background .25s, border-color .25s; text-align: left; }
.pilule:hover { background: rgba(22, 22, 30, .8); border-color: rgba(255, 80, 83, .35); }
.pilule img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
#espace-avatar { border-radius: 50%; object-fit: cover; }
.pilule .pt { display: flex; flex-direction: column; line-height: 1.25; }
.pilule b { font-size: 14.5px; font-weight: 700; }
.pilule small { font-size: 13px; color: #9a9aa6; }
.pilule .chev { width: 16px; height: 16px; color: #9a9aa6; margin-left: 6px; transition: transform .3s var(--ease); }
.pilule.ouvert .chev { transform: rotate(180deg); }
.torii { width: 30px; height: 30px; display: grid; place-items: center; color: var(--rouge); }
.torii svg { width: 24px; height: 24px; }
.menu-monde { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px; border-radius: 14px;
  background: rgba(14, 14, 20, .92); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.menu-monde.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.droite .menu-monde { left: auto; right: 0; }
.menu-monde a { padding: 10px 12px; border-radius: 9px; color: #d6d6de; font-size: 14px; }
.menu-monde a:hover { background: rgba(255, 80, 83, .12); color: #fff; }
.mm-serveur { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mm-serveur span:last-child { display: flex; flex-direction: column; }
.mm-serveur small { color: #9a9aa6; font-size: 12.5px; }

.vue-accueil { place-items: end start; padding: 0 46px 120px; }
.vue-accueil .heros { align-items: flex-start; text-align: left; }
.vue-accueil .heros-logo { width: min(470px, 80vw); margin-left: -22px; margin-bottom: 14px; }
.vue-accueil .heros-actions { display: flex; align-items: center; gap: 22px; }
.bouton-jouer { display: inline-flex; align-items: center; gap: 14px; padding: 19px 42px; border-radius: 999px;
  background: linear-gradient(180deg, #ff6466, var(--rouge-fonce)); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 10px 34px var(--rouge-lueur), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.bouton-jouer svg { width: 14px; height: 14px; }
.bouton-jouer:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 46px rgba(255, 60, 70, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.pas-installe { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.pas-installe small { color: #9a9aa6; font-size: 13px; }
.pas-installe a { color: var(--rouge); font-weight: 700; }
.pas-installe a:hover { text-decoration: underline; }
.vue-accueil .statut { margin-top: 18px; }
.vue-accueil.actif .heros-actions { animation: monter .9s .45s var(--ease) both; }

.pied { left: 46px; right: auto; width: auto; margin: 0; padding: 0 0 26px; justify-content: flex-start; align-items: center; gap: 22px; opacity: 1 !important; font-size: 13.5px; color: #8d8d99; }
.pied a:hover { color: #fff; }
.pied .langues { gap: 10px; font-size: 13px; margin-left: 6px; }
@media (max-width: 860px) {
  .barre { padding: 14px 16px; }
  .vue-accueil { padding: 0 16px 140px; }
  .vue-accueil .heros-actions { flex-direction: column; align-items: flex-start; }
  .pied { left: 16px; flex-wrap: wrap; gap: 12px; }
}
