/* Functional layouts, isolated below the current design system. */
@layer legacy {

:root{
  --p8-bg:#070709;
  --p8-bg2:#101015;
  --p8-panel:rgba(20,20,27,.72);
  --p8-panel2:rgba(28,28,36,.78);
  --p8-panel3:rgba(34,34,42,.88);
  --p8-line:rgba(255,255,255,.09);
  --p8-line2:rgba(212,175,55,.30);
  --p8-gold:#d4af37;
  --p8-gold2:#f4d97e;
  --p8-gold3:#ffefb1;
  --p8-text:#f8f2e9;
  --p8-muted:#c9bfad;
  --p8-dim:#8f8779;
  --p8-red:#ff5c71;
  --p8-green:#9be7b2;
  --p8-shadow:0 28px 90px rgba(0,0,0,.48);
  --p8-radius:30px;
  --p8-brand-font:"Avenir Next","Avenir","Manrope","Montserrat","Helvetica Neue","Segoe UI","Inter",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.p8, body.prism-theme{
  margin:0; min-height:100vh; color:var(--p8-text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% -8%, rgba(212,175,55,.16), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(155deg,#070709 0%,#111017 50%,#09090d 100%) ;
}
body.p8::before, body.prism-theme::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.020) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), transparent 84%);
}
body.p8::after, body.prism-theme::after{
  content:"";position:fixed;z-index:-1;pointer-events:none;
  inset:auto auto -120px -120px;width:420px;height:420px;border-radius:999px;
  background:radial-gradient(circle, rgba(212,175,55,.17), rgba(212,175,55,0) 68%);
  filter:blur(54px);
  animation:p8Float 16s ease-in-out infinite;
}
@keyframes p8Float{
  0%,100%{transform:translate(0,0)}
  50%{transform:translate(40px,-30px)}
}
@keyframes p8FadeUp{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}
a{color:inherit;text-decoration:none}
img{max-width:100%}

.p8-header{
  width:min(1280px,calc(100% - 28px));
  margin:18px auto 0;
  min-height:84px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 16px 12px 18px;
  border:1px solid var(--p8-line);
  background:rgba(8,8,11,.78);
  border-radius:28px;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  box-shadow:0 16px 50px rgba(0,0,0,.32);
  position:sticky;top:12px;z-index:30;
}
.p8-brand{display:flex;align-items:center;gap:16px;min-width:0}
.p8-brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(212,175,55,.22))}
.p8-brand span{
  font-family:var(--p8-brand-font);
  font-size:2rem;
  font-weight:520;
  letter-spacing:.18em;
  color:var(--p8-text);
  line-height:1;
}
.p8-menu-button{
  display:none;
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--p8-line);
  color:var(--p8-text);
  background:rgba(255,255,255,.05);
}
.p8-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.p8-nav a{
  padding:11px 14px;
  border-radius:14px;
  color:var(--p8-muted);
  font-weight:850;
  transition:.2s ease;
  border:1px solid transparent;
}
.p8-nav a:hover{
  color:var(--p8-gold2);
  background:rgba(212,175,55,.07);
  border-color:rgba(212,175,55,.20);
}
.p8-nav .p8-nav-cta{
  color:#111;
  background:linear-gradient(135deg,var(--p8-gold),var(--p8-gold2));
  border-color:rgba(244,217,126,.52);
  box-shadow:0 10px 28px rgba(212,175,55,.18);
}
.p8-nav .p8-nav-cta:hover{color:#111}

.p8-page{
  width:min(1280px,calc(100% - 28px));
  margin:30px auto 54px;
  display:grid;
  gap:22px;
}
.p8-glass,.p8-card,.prism-card,.support-public-card{
  background:linear-gradient(145deg,rgba(25,25,32,.76),rgba(13,13,18,.58)) ;
  border:1px solid var(--p8-line) ;
  box-shadow:var(--p8-shadow) ;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border-radius:var(--p8-radius) ;
  color:var(--p8-text) ;
}
.p8-hero,.prism-hero{
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(300px,.72fr);
  gap:30px;
  align-items:center;
  min-height:620px;
  padding:44px;
  overflow:hidden;
  position:relative;
  animation:p8FadeUp .7s ease both;
}
.p8-hero::after,.prism-hero::after{
  content:"";
  position:absolute;
  width:360px;height:360px;border-radius:999px;
  right:-90px;bottom:-120px;
  background:radial-gradient(circle, rgba(212,175,55,.18), rgba(212,175,55,0) 72%);
  filter:blur(30px);
  pointer-events:none;
}
.p8-kicker,.prism-eyebrow{
  margin:0 0 12px ;
  color:var(--p8-gold2) ;
  text-transform:uppercase;
  letter-spacing:.20em;
  font-size:.80rem;
  font-weight:950;
}
.p8-hero h1,.prism-hero h1{
  margin:0 0 18px;
  font-family:var(--p8-brand-font);
  font-weight:650;
  font-size:clamp(2.85rem,6vw,6rem);
  line-height:.90;
  letter-spacing:-.065em;
}
.p8-lead,.prism-lead,.prism-muted{
  color:var(--p8-muted) ;
  line-height:1.82;
  font-size:1.08rem;
  max-width:70ch;
}
.p8-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.p8-btn,.prism-btn,button,input[type=submit]{
  min-height:50px;
  padding:0 18px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:16px ;
  border:1px solid rgba(255,255,255,.10) ;
  background:rgba(255,255,255,.055) ;
  color:var(--p8-text) ;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p8-btn:hover,.prism-btn:hover,button:hover,input[type=submit]:hover{transform:translateY(-2px)}
.p8-btn-gold,.prism-btn.primary,.prism-btn.turquoise,button[type=submit],input[type=submit]{
  color:#111 ;
  background:linear-gradient(135deg,var(--p8-gold),var(--p8-gold2) 62%,var(--p8-gold3)) ;
  border-color:rgba(244,217,126,.56) ;
  box-shadow:0 14px 38px rgba(212,175,55,.20) ;
}
.p8-btn-soft{background:rgba(255,255,255,.05) }
.p8-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.p8-chip-row span{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);
  color:var(--p8-muted);
  font-weight:800;
  font-size:.9rem;
}
.p8-hero-visual,.hero-visual-panel{
  min-height:390px;
  border:1px solid var(--p8-line);
  border-radius:26px;
  background:rgba(255,255,255,.04);
  display:grid;
  place-items:center;
  padding:24px;
  position:relative;
  z-index:1;
}
.p8-hero-visual img,.prism-hero-logo,.hero-emblem{
  max-height:360px;
  object-fit:contain;
  filter:drop-shadow(0 28px 58px rgba(0,0,0,.52));
}
.p8-hero-intro-card{align-content:center}
.p8-hero-note{
  margin-top:18px;
  text-align:center;
  display:grid;
  gap:10px;
}
.p8-hero-note strong{font-size:1.18rem}
.p8-hero-note p{margin:0;color:var(--p8-muted);line-height:1.7}

.p8-cards,.p8-connexion-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.p8-card{
  padding:28px;
  min-height:270px;
  display:flex;
  flex-direction:column;
  transition:.22s ease;
  animation:p8FadeUp .7s ease both;
}
.p8-card:hover{
  transform:translateY(-4px);
  border-color:var(--p8-line2) ;
  box-shadow:0 30px 90px rgba(212,175,55,.10) ;
}
.p8-card span{
  color:var(--p8-gold2);
  font-weight:950;
  letter-spacing:.14em;
  margin-bottom:26px;
}
.p8-card h2{
  margin:0 0 12px;
  font-family:var(--p8-brand-font);
  font-weight:650;
  font-size:1.45rem;
}
.p8-card p{margin:0;color:var(--p8-muted);line-height:1.8}

.p8-welcome{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.68fr);
  gap:26px;
  padding:34px;
  align-items:start;
}
.p8-welcome h2{
  margin:0 0 14px;
  font-family:var(--p8-brand-font);
  font-weight:620;
  font-size:clamp(2rem,4vw,3.3rem);
  line-height:1.02;
}
.p8-welcome p{margin:0;color:var(--p8-muted);line-height:1.8}
.p8-bullets{display:grid;gap:14px;margin-top:24px}
.p8-bullets > div{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:20px;
  padding:16px 18px;
  display:grid;gap:6px;
}
.p8-bullets strong{color:var(--p8-gold2)}
.p8-bullets span{color:var(--p8-muted)}
.p8-side-panel{display:grid;gap:12px}
.p8-spot-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  border-radius:22px;
  padding:18px;
  display:grid;
  gap:10px;
}
.p8-spot-card strong{
  font-family:var(--p8-brand-font);
  font-weight:640;
  font-size:1.08rem;
}
.p8-spot-card span{color:var(--p8-muted);line-height:1.6}
.p8-spot-card a{color:var(--p8-gold2);font-weight:900}
.p8-soon{opacity:.9}

.p8-news-head{padding:4px 2px 0}
.p8-news-head h2{
  margin:0 0 10px;
  font-family:var(--p8-brand-font);
  font-weight:620;
  font-size:clamp(1.9rem,3.5vw,3rem);
}
.p8-news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.p8-news-card{
  border:1px solid var(--p8-line);
  background:linear-gradient(145deg,rgba(25,25,32,.76),rgba(13,13,18,.58));
  border-radius:26px;
  box-shadow:var(--p8-shadow);
  padding:24px;
  display:grid;
  gap:14px;
  transition:.22s ease;
}
.p8-news-card:hover{
  transform:translateY(-3px);
  border-color:var(--p8-line2);
}
.p8-news-meta{
  display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;
  color:var(--p8-gold2);font-size:.88rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;
}
.p8-news-meta em{font-style:normal;color:var(--p8-dim)}
.p8-news-card h3{
  margin:0;
  font-family:var(--p8-brand-font);
  font-weight:630;
  font-size:1.3rem;
  line-height:1.15;
}
.p8-news-card p{margin:0;color:var(--p8-muted);line-height:1.72}
.p8-news-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.p8-news-footer span{color:var(--p8-dim);font-size:.94rem}
.p8-news-footer a{color:var(--p8-gold2);font-weight:900}

.p8-login-card{justify-content:space-between}
.p8-login-card small{display:block;margin-top:12px;color:var(--p8-dim)}

input,select,textarea{
  background:rgba(0,0,0,.24) ;
  border:1px solid rgba(255,255,255,.10) ;
  color:var(--p8-text) ;
  border-radius:16px ;
  padding:12px ;
  font:inherit;
}
input::placeholder,textarea::placeholder{color:rgba(201,191,173,.64) }
input:focus,select:focus,textarea:focus{
  outline:none ;
  border-color:rgba(244,217,126,.56) ;
  box-shadow:0 0 0 4px rgba(212,175,55,.12) ;
}
table{background:rgba(255,255,255,.035) ;color:var(--p8-text) ;border-color:var(--p8-line) }
th,td{border-color:rgba(255,255,255,.08) }
th,thead{background:rgba(212,175,55,.09) ;color:var(--p8-gold2) }

@media(max-width:980px){
  .p8-hero,.prism-hero,.p8-welcome,.p8-news-grid,.p8-cards,.p8-connexion-grid{grid-template-columns:1fr}
  .p8-hero,.prism-hero{min-height:auto;padding:30px}
}
@media(max-width:720px){
  .p8-header{align-items:flex-start;flex-wrap:wrap}
  .p8-menu-button{display:inline-flex}
  .p8-nav{display:none;width:100%;flex-direction:column;align-items:stretch}
  body.nav-open .p8-nav{display:flex}
  .p8-nav a{text-align:center}
  .p8-brand span{font-size:1.65rem;letter-spacing:.14em}
  .p8-btn,.prism-btn,button,input[type=submit]{width:100%}
}


/* PRISM 8.3 — squared modern polish */
:root{
  --p8-radius:14px;
}
.p8-header{
  position:sticky ;
  top:0 ;
  z-index:100 ;
  width:100% ;
  margin:0 0 12px 0 ;
  border-radius:0 ;
  border-left:none ;
  border-right:none ;
  padding:14px 22px ;
  min-height:78px ;
  background:rgba(7,7,10,.86) ;
}
.p8-page{width:min(1360px,calc(100% - 32px)) ;margin:24px auto 54px }
.p8-glass,.p8-card,.p8-news-card,.support-public-card,.prism-card{border-radius:14px }
.p8-hero,.p8-welcome,.p8-hero-visual,.p8-spot-card,.p8-news-card,.p8-card,.p8-login-card,.p8-chip-row span{border-radius:14px }
.p8-btn,.prism-btn,button,input[type=submit]{border-radius:10px }
input,select,textarea{border-radius:10px }
.p8-nav a{border-radius:10px }
.p8-brand span{
  font-size:2.45rem ;
  font-weight:500 ;
  letter-spacing:.22em ;
}
.p8-hero{
  min-height:580px ;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.72fr) ;
}
.p8-hero h1{
  font-size:clamp(3.2rem,6.3vw,6.6rem) ;
  line-height:.92 ;
}
.p8-neon-gradient{
  background:linear-gradient(90deg,#c77dff 0%, #d6a6ff 24%, #b68fff 42%, #a9b6ff 70%, #8fd3ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent ;
  text-shadow:0 0 22px rgba(183,145,255,.18), 0 0 38px rgba(143,211,255,.14);
}
.p8-card:hover,.p8-news-card:hover,.p8-spot-card:hover{
  transform:translateY(-3px);
  box-shadow:0 26px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(244,217,126,.08) ;
}
.p8-side-panel{display:grid;gap:14px}
.p8-spot-card a{display:none }
.p8-login-subtle-links{
  display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:.95rem
}
.p8-login-subtle-links a{color:var(--p8-muted);text-decoration:underline;text-underline-offset:3px}
.p8-login-subtle-links a:hover{color:var(--p8-gold2)}
.p8-connexion-single{grid-template-columns:minmax(0,760px) ;justify-content:center}
.p8-connexion-single .p8-card{min-height:unset}
.p8-news-card h3,.p8-card h2,.p8-welcome h2{
  letter-spacing:-.04em ;
}
@media(max-width:980px){
  .p8-header{padding:12px 14px }
  .p8-brand span{font-size:1.95rem ;letter-spacing:.16em }
}


/* =========================================================
   PRISM 8.14 — Navbar membre premium
   Remplace le rendu enfantin par une barre plus sobre, glass, éditoriale.
   ========================================================= */

body.p8 .p8-header{
  position:sticky ;
  top:0 ;
  z-index:300 ;
  width:100% ;
  min-height:86px ;
  margin:0 ;
  padding:0 34px ;
  border-radius:0 ;
  border:0 ;
  border-bottom:1px solid rgba(255,255,255,.075) ;
  background:
    linear-gradient(180deg,rgba(10,10,14,.92),rgba(7,7,10,.84)),
    radial-gradient(circle at 16% 0%,rgba(212,175,55,.10),transparent 42%) ;
  backdrop-filter:blur(22px) saturate(135%) ;
  -webkit-backdrop-filter:blur(22px) saturate(135%) ;
  box-shadow:0 18px 48px rgba(0,0,0,.28) ;
}

body.p8 .p8-header::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(244,217,126,.32),transparent);
  pointer-events:none;
}

body.p8 .p8-brand{
  min-width:0 ;
  gap:14px ;
}

body.p8 .p8-brand img{
  width:38px ;
  height:38px ;
  filter:drop-shadow(0 0 16px rgba(244,217,126,.18)) ;
}

body.p8 .p8-brand span{
  font-family:"Avenir Next","Avenir","Manrope","Montserrat","Helvetica Neue","Segoe UI",sans-serif ;
  font-size:2.15rem ;
  line-height:1 ;
  font-weight:460 ;
  letter-spacing:.24em ;
  color:#f8f2e9 ;
  text-shadow:none ;
}

body.p8 .p8-nav{
  gap:6px ;
  align-items:center ;
}

body.p8 .p8-nav a{
  position:relative ;
  min-height:44px ;
  display:inline-flex ;
  align-items:center ;
  justify-content:center ;
  padding:0 15px ;
  border-radius:999px ;
  border:1px solid transparent ;
  background:transparent ;
  color:#c9bfad ;
  font-size:.82rem ;
  font-weight:850 ;
  letter-spacing:.075em ;
  text-transform:uppercase ;
  text-decoration:none ;
  box-shadow:none ;
  transition:color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease ;
}

body.p8 .p8-nav a::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:8px;
  height:1px;
  transform:scaleX(0);
  transform-origin:center;
  background:linear-gradient(90deg,transparent,#f4d97e,transparent);
  transition:transform .18s ease;
  opacity:.9;
}

body.p8 .p8-nav a:hover{
  color:#f8f2e9 ;
  border-color:rgba(244,217,126,.18) ;
  background:rgba(255,255,255,.035) ;
  transform:translateY(-1px);
}

body.p8 .p8-nav a:hover::after{
  transform:scaleX(1);
}

body.p8 .p8-nav .p8-nav-cta{
  min-height:48px ;
  margin-left:8px ;
  padding:0 22px ;
  color:#14110a ;
  border-color:rgba(244,217,126,.62) ;
  background:
    linear-gradient(135deg,#c99d2e 0%,#f4d97e 54%,#fff2b8 100%) ;
  box-shadow:
    0 16px 34px rgba(212,175,55,.20),
    inset 0 1px 0 rgba(255,255,255,.75) ;
}

body.p8 .p8-nav .p8-nav-cta::after{
  display:none ;
}

body.p8 .p8-nav .p8-nav-cta:hover{
  color:#111 ;
  border-color:rgba(255,242,184,.78) ;
  background:
    linear-gradient(135deg,#d4af37 0%,#ffe18b 58%,#fff6c9 100%) ;
  transform:translateY(-1px);
}

body.p8 .p8-menu-button{
  border-radius:999px ;
  border:1px solid rgba(255,255,255,.12) ;
  background:rgba(255,255,255,.045) ;
  color:#f8f2e9 ;
  text-transform:uppercase ;
  letter-spacing:.08em ;
  font-size:.8rem ;
  font-weight:850 ;
}

@media(max-width:860px){
  body.p8 .p8-header{
    padding:12px 16px ;
    min-height:76px ;
  }

  body.p8 .p8-brand span{
    font-size:1.65rem ;
    letter-spacing:.18em ;
  }

  body.p8 .p8-nav{
    width:100% ;
    gap:8px ;
    padding-top:8px ;
  }

  body.p8 .p8-nav a,
  body.p8 .p8-nav .p8-nav-cta{
    width:100% ;
    margin-left:0 ;
  }
}

/* Code PRISM public : même direction premium, sans emojis */
body .topbar.wrap{
  border-radius:0 ;
  border-left:0 ;
  border-right:0 ;
  background:
    linear-gradient(180deg,rgba(10,10,14,.92),rgba(7,7,10,.84)) ;
  box-shadow:0 18px 48px rgba(0,0,0,.28) ;
}

body .main-nav a{
  border-radius:999px ;
  font-size:.8rem ;
  font-weight:850 ;
  letter-spacing:.07em ;
  text-transform:uppercase ;
}

body .main-nav .site-return{
  background:rgba(212,175,55,.10) ;
  border-color:rgba(244,217,126,.28) ;
}


/* =========================================================
   PRISM 8.15 — Correctif mobile zone membre
   ========================================================= */

@media (max-width: 720px){
  html, body{
    overflow-x:hidden ;
  }

  body.p8{
    background:
      radial-gradient(circle at 20% -8%, rgba(212,175,55,.14), transparent 30%),
      linear-gradient(155deg,#070709 0%,#111017 54%,#09090d 100%) ;
  }

  /* Header mobile premium : logo + menu sur la même ligne */
  body.p8 .p8-header{
    width:100% ;
    min-height:70px ;
    margin:0 ;
    padding:10px 16px ;
    display:grid ;
    grid-template-columns:minmax(0,1fr) auto ;
    align-items:center ;
    gap:12px ;
    border-radius:0 ;
  }

  body.p8 .p8-brand{
    min-width:0 ;
    gap:12px ;
  }

  body.p8 .p8-brand img{
    width:32px ;
    height:32px ;
  }

  body.p8 .p8-brand span{
    font-size:1.42rem ;
    letter-spacing:.18em ;
    line-height:1 ;
  }

  body.p8 .p8-menu-button{
    display:inline-flex ;
    width:auto ;
    min-width:86px ;
    min-height:40px ;
    padding:0 14px ;
    border-radius:999px ;
    font-size:.72rem ;
    letter-spacing:.12em ;
  }

  body.p8 .p8-nav{
    grid-column:1 / -1 ;
    display:none ;
    width:100% ;
    margin:4px 0 0 ;
    padding:10px ;
    border:1px solid rgba(255,255,255,.09) ;
    border-radius:16px ;
    background:rgba(10,10,15,.88) ;
    box-shadow:0 18px 45px rgba(0,0,0,.28) ;
  }

  body.p8.nav-open .p8-nav{
    display:grid ;
    grid-template-columns:1fr ;
    gap:8px ;
  }

  body.p8 .p8-nav a,
  body.p8 .p8-nav .p8-nav-cta{
    width:100% ;
    min-height:44px ;
    margin:0 ;
    padding:0 14px ;
    border-radius:12px ;
    justify-content:center ;
    font-size:.78rem ;
    letter-spacing:.07em ;
  }

  /* Layout général mobile */
  body.p8 .p8-page{
    width:100% ;
    margin:16px 0 42px ;
    padding:0 14px ;
    gap:16px ;
  }

  body.p8 .p8-glass,
  body.p8 .p8-card,
  body.p8 .p8-news-card{
    border-radius:18px ;
  }

  /* Hero mobile : plus d'effet “un mot par ligne” */
  body.p8 .p8-hero{
    min-height:auto ;
    grid-template-columns:1fr ;
    gap:18px ;
    padding:28px 20px ;
    overflow:hidden ;
  }

  body.p8 .p8-hero-home{
    padding-top:30px ;
  }

  body.p8 .p8-hero-copy{
    min-width:0 ;
  }

  body.p8 .p8-kicker,
  body.p8 .prism-eyebrow{
    display:block ;
    max-width:100% ;
    margin:0 0 12px ;
    font-size:.72rem ;
    line-height:1.55 ;
    letter-spacing:.12em ;
    word-spacing:.08em ;
    overflow-wrap:normal ;
    word-break:normal ;
    text-wrap:balance ;
  }

  body.p8 .p8-hero h1{
    max-width:100% ;
    margin:0 0 16px ;
    font-size:clamp(2.35rem, 12vw, 3.25rem) ;
    line-height:1.02 ;
    letter-spacing:-.055em ;
    text-wrap:balance ;
    overflow-wrap:normal ;
    word-break:normal ;
  }

  body.p8 .p8-neon-gradient{
    display:inline ;
    white-space:normal ;
  }

  body.p8 .p8-lead,
  body.p8 .prism-lead,
  body.p8 .prism-muted{
    max-width:100% ;
    font-size:1rem ;
    line-height:1.72 ;
    text-wrap:pretty ;
  }

  body.p8 .p8-actions{
    display:grid ;
    grid-template-columns:1fr ;
    gap:10px ;
    margin-top:20px ;
  }

  body.p8 .p8-btn,
  body.p8 .prism-btn,
  body.p8 button,
  body.p8 input[type=submit]{
    width:100% ;
    min-height:50px ;
  }

  body.p8 .p8-chip-row{
    gap:8px ;
    margin-top:16px ;
  }

  body.p8 .p8-chip-row span{
    width:auto ;
    max-width:100% ;
    padding:8px 10px ;
    font-size:.82rem ;
  }

  /* Image Spectrum : plus compacte sur mobile */
  body.p8 .p8-hero-visual{
    min-height:0 ;
    padding:16px ;
  }

  body.p8 .p8-hero-visual img{
    max-height:210px ;
  }

  body.p8 .p8-hero-note{
    margin-top:12px ;
  }

  /* Cartes mobile */
  body.p8 .p8-cards,
  body.p8 .p8-news-grid,
  body.p8 .p8-connexion-grid{
    grid-template-columns:1fr ;
    gap:12px ;
  }

  body.p8 .p8-card{
    min-height:0 ;
    padding:22px ;
  }

  body.p8 .p8-card span{
    margin-bottom:14px ;
  }

  body.p8 .p8-card h2{
    font-size:1.35rem ;
    line-height:1.15 ;
  }

  body.p8 .p8-welcome{
    grid-template-columns:1fr ;
    gap:18px ;
    padding:24px 20px ;
  }

  body.p8 .p8-welcome h2{
    font-size:clamp(2rem, 9vw, 2.65rem) ;
    line-height:1.04 ;
    letter-spacing:-.055em ;
    text-wrap:balance ;
  }

  body.p8 .p8-bullets{
    gap:10px ;
  }

  body.p8 .p8-bullets > div,
  body.p8 .p8-spot-card{
    border-radius:14px ;
    padding:14px ;
  }

  body.p8 .p8-news-head{
    padding:6px 2px 0 ;
  }

  body.p8 .p8-news-head h2{
    font-size:clamp(1.75rem, 8vw, 2.35rem) ;
    line-height:1.08 ;
  }

  body.p8 .p8-news-card{
    padding:20px ;
  }

  body.p8 .p8-news-footer{
    align-items:flex-start ;
  }
}

@media (max-width: 380px){
  body.p8 .p8-page{
    padding:0 10px ;
  }

  body.p8 .p8-hero{
    padding:24px 16px ;
  }

  body.p8 .p8-hero h1{
    font-size:2.25rem ;
  }

  body.p8 .p8-brand span{
    font-size:1.25rem ;
    letter-spacing:.15em ;
  }

  body.p8 .p8-menu-button{
    min-width:74px ;
    padding:0 10px ;
  }
}

/* Code PRISM public mobile */
@media (max-width: 720px){
  body .topbar.wrap{
    min-height:70px ;
    padding:10px 16px ;
  }

  body .brand span strong{
    font-size:1.35rem ;
    letter-spacing:.14em ;
  }

  body .main-nav{
    width:100% ;
    display:grid ;
    grid-template-columns:1fr ;
    gap:8px ;
    margin-top:8px ;
  }

  body .main-nav a{
    width:100% ;
    justify-content:center ;
    min-height:42px ;
  }

  body .hero.wrap,
  body .code-levels-wrap,
  body .footer.wrap{
    width:100% ;
    padding-left:14px ;
    padding-right:14px ;
  }

  body .official-card,
  body .hero-card,
  body .footer-card{
    padding:22px ;
  }

  body h1{
    font-size:clamp(2.1rem, 11vw, 3rem) ;
    line-height:1.02 ;
    text-wrap:balance ;
  }
}


/* =========================================================
   PRISM 8.17 — Correctif haut de page soutien mobile
   ========================================================= */
@media (max-width: 720px){
  body.p8.p8-support .support-public-wrap,
  body.p8.p8-support .prism-page.support-public-wrap{
    width:100% ;
    max-width:100% ;
    margin:0 ;
    padding:14px 12px 42px ;
    overflow-x:hidden ;
  }

  body.p8.p8-support .support-public-hero,
  body.p8.p8-support .prism-hero.support-public-hero{
    width:100% ;
    max-width:100% ;
    min-height:auto ;
    margin:0 0 14px ;
    padding:24px 20px ;
    display:grid ;
    grid-template-columns:1fr ;
    gap:18px ;
    align-items:start ;
    overflow:hidden ;
    border-radius:18px ;
  }

  body.p8.p8-support .support-public-hero > div,
  body.p8.p8-support .prism-hero.support-public-hero > div{
    min-width:0 ;
    width:100% ;
    max-width:100% ;
  }

  body.p8.p8-support .support-public-hero .prism-eyebrow{
    display:block ;
    margin:0 0 12px ;
    font-size:.72rem ;
    line-height:1.35 ;
    letter-spacing:.12em ;
    word-break:normal ;
    overflow-wrap:normal ;
  }

  body.p8.p8-support .support-public-hero h1{
    max-width:100% ;
    margin:0 0 14px ;
    font-size:clamp(2.05rem, 10vw, 2.75rem) ;
    line-height:1.05 ;
    letter-spacing:-.055em ;
    text-wrap:balance ;
    word-break:normal ;
    overflow-wrap:normal ;
  }

  body.p8.p8-support .support-public-hero .prism-lead{
    max-width:100% ;
    width:100% ;
    margin:0 ;
    font-size:1rem ;
    line-height:1.68 ;
    text-wrap:pretty ;
    word-break:normal ;
    overflow-wrap:normal ;
  }

  body.p8.p8-support .support-public-hero .prism-hero-logo{
    display:block ;
    justify-self:center ;
    width:min(240px, 78vw) ;
    max-width:100% ;
    max-height:170px ;
    margin:2px auto 0 ;
    object-fit:contain ;
    float:none ;
  }

  body.p8.p8-support #root.support-public-card{
    margin:0 ;
    padding:14px ;
    border-radius:18px ;
  }
}

@media (max-width: 380px){
  body.p8.p8-support .support-public-wrap,
  body.p8.p8-support .prism-page.support-public-wrap{
    padding-left:10px ;
    padding-right:10px ;
  }

  body.p8.p8-support .support-public-hero,
  body.p8.p8-support .prism-hero.support-public-hero{
    padding:22px 16px ;
  }

  body.p8.p8-support .support-public-hero h1{
    font-size:2.05rem ;
  }

  body.p8.p8-support .support-public-hero .prism-hero-logo{
    width:min(210px, 74vw) ;
  }
}

:root{
  --games-bg:#09090d;
  --games-panel:rgba(17,17,26,.74);
  --games-panel-strong:rgba(20,19,31,.92);
  --games-line:rgba(255,255,255,.09);
  --games-line-strong:rgba(178,157,255,.25);
  --games-text:#f6f3fb;
  --games-muted:#aaa5b5;
  --games-dim:#747080;
  --games-violet:#9278ff;
  --games-violet-soft:#d5caff;
  --games-radius:28px;
  --games-shadow:0 30px 90px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html{background:var(--games-bg)}
body.p8-games{
  min-height:100vh;
  margin:0;
  color:var(--games-text);
  background:
    radial-gradient(circle at 13% 14%,rgba(117,82,255,.12),transparent 28rem),
    radial-gradient(circle at 86% 18%,rgba(208,192,255,.07),transparent 28rem),
    linear-gradient(180deg,#0b0a10 0%,#08080c 58%,#09090d 100%);
  overflow-x:hidden;
}
body.p8-games::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.21;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url("/game/assets/css/%23n")' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode:soft-light;
}
.p8-games .p8-nav a.is-active{
  color:#fff;
  border-color:rgba(157,135,255,.24);
  background:rgba(139,111,255,.10);
}
.games-page{
  width:min(1320px,calc(100% - 56px));
  margin:42px auto 70px;
}
.games-hero{
  position:relative;
  min-height:260px;
  padding:54px 60px;
  overflow:hidden;
  border:1px solid var(--games-line);
  border-radius:30px;
  background:
    linear-gradient(145deg,rgba(20,19,30,.92),rgba(10,10,16,.82)),
    radial-gradient(circle at 15% 10%,rgba(142,111,255,.18),transparent 44%);
  box-shadow:var(--games-shadow);
}
.games-hero::before{
  content:"";
  position:absolute;
  width:540px;
  height:540px;
  right:-285px;
  top:-330px;
  border:1px solid rgba(160,137,255,.12);
  border-radius:50%;
  box-shadow:
    0 0 0 72px rgba(150,125,255,.028),
    0 0 0 144px rgba(150,125,255,.014);
}
.games-hero::after{
  content:"";
  position:absolute;
  left:60px;
  bottom:0;
  width:min(260px,38%);
  height:2px;
  background:linear-gradient(90deg,#9278ff,rgba(146,120,255,0));
  box-shadow:0 0 24px rgba(146,120,255,.38);
}
.games-hero__copy{position:relative;z-index:1;max-width:940px}
.games-kicker{
  margin:0 0 16px;
  color:#bcaeff;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.20em;
}
.games-hero h1{
  margin:0;
  max-width:940px;
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:clamp(3rem,6.2vw,6.3rem);
  font-weight:700;
  line-height:.92;
  letter-spacing:-.065em;
}
.games-hero h1 span{
  color:transparent;
  background:linear-gradient(100deg,#fbf9ff 0%,#d2c7ff 42%,#9479ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
}
.games-hero__copy>p:last-child{
  max-width:690px;
  margin:25px 0 0;
  color:var(--games-muted);
  font-size:1.02rem;
  line-height:1.72;
}
.games-section{margin-top:50px}
.games-section__head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:end;
  margin-bottom:20px;
  padding:0 4px;
}
.games-section__head h2{
  margin:0;
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:clamp(2rem,4vw,3.4rem);
  font-weight:650;
  letter-spacing:-.055em;
}
.games-section__meta{
  color:var(--games-dim);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.16em;
}
.games-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.game-card{
  position:relative;
  display:grid;
  min-height:470px;
  padding:28px;
  overflow:hidden;
  border:1px solid var(--games-line);
  border-radius:var(--games-radius);
  background:linear-gradient(145deg,rgba(19,18,29,.91),rgba(10,10,16,.82));
  box-shadow:0 22px 62px rgba(0,0,0,.30);
  isolation:isolate;
  transition:transform .38s cubic-bezier(.2,.8,.2,1),border-color .32s ease,box-shadow .38s ease;
  animation:gamesCardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.game-card:hover{
  transform:translateY(-7px);
  border-color:var(--games-line-strong);
  box-shadow:0 34px 90px rgba(0,0,0,.46),0 0 0 1px rgba(149,121,255,.06);
}
.game-card__glow{
  position:absolute;
  z-index:-1;
  width:380px;
  height:380px;
  right:-190px;
  top:-170px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(136,103,255,.28) 0%,rgba(128,96,255,.08) 42%,transparent 72%);
  filter:blur(6px);
  transition:transform .7s cubic-bezier(.2,.8,.2,1),opacity .5s ease;
}
.game-card:hover .game-card__glow{transform:translate(-22px,24px) scale(1.1)}
.game-card__topline,.game-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.chess-mark{
  display:grid;
  grid-template-columns:repeat(3,7px);
  align-items:end;
  gap:5px;
  width:36px;
  height:46px;
  padding:5px;
  transform:skewX(-10deg);
}
.chess-mark span{
  display:block;
  width:7px;
  border-radius:7px;
  background:linear-gradient(180deg,#d5caff,#846cff);
  box-shadow:0 0 26px rgba(147,119,255,.45);
  animation:markPulse 3.6s ease-in-out infinite;
}
.chess-mark span:nth-child(1){height:54%;animation-delay:-.4s}
.chess-mark span:nth-child(2){height:100%;animation-delay:-1.2s}
.chess-mark span:nth-child(3){height:76%;animation-delay:-2s}
.checkers-mark,.go-mark,.connect4-mark,.werewolf-mark{
  display:block;
  flex:0 0 46px;
  width:46px;
  height:46px;
  object-fit:contain;
  filter:drop-shadow(0 0 13px rgba(151,125,255,.34));
  transform:translateZ(0);
  transition:filter .32s ease,transform .38s cubic-bezier(.2,.8,.2,1);
}
.game-card:hover .checkers-mark,.game-card:hover .go-mark,.game-card:hover .connect4-mark,.game-card:hover .werewolf-mark{
  filter:drop-shadow(0 0 19px rgba(169,147,255,.55));
  transform:translateY(-2px) rotate(-3deg) scale(1.04);
}
.game-card--checkers .game-card__glow{
  background:radial-gradient(circle,rgba(98,201,178,.18) 0%,rgba(125,96,255,.08) 45%,transparent 72%);
}
.game-card--go .game-card__glow{
  background:radial-gradient(circle,rgba(218,165,93,.22) 0%,rgba(125,96,255,.07) 47%,transparent 72%);
}
.game-card--connect4 .game-card__glow{
  background:radial-gradient(circle,rgba(255,91,117,.20) 0%,rgba(255,202,82,.10) 44%,transparent 72%);
}
.game-card--werewolf{
  grid-column:1/-1;
  min-height:420px;
  background:
    linear-gradient(112deg,rgba(24,23,29,.96),rgba(11,13,20,.86)),
    radial-gradient(circle at 80% 30%,rgba(226,188,95,.09),transparent 40%);
}
.game-card--werewolf::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:5%;
  top:50%;
  width:280px;
  height:280px;
  transform:translateY(-50%);
  border:1px solid rgba(232,201,121,.10);
  border-radius:50%;
  box-shadow:0 0 0 54px rgba(232,201,121,.018),0 0 0 108px rgba(232,201,121,.01);
}
.game-card--werewolf .game-card__glow{
  width:520px;
  height:520px;
  right:-160px;
  top:-190px;
  background:radial-gradient(circle,rgba(226,186,89,.21) 0%,rgba(126,75,83,.09) 46%,transparent 72%);
}
.game-card--werewolf .game-card__body{max-width:820px}
.game-card--werewolf .game-card__body h3{
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  color:#f1dfb3;
  font-weight:500;
}
.availability-badge--royal{color:#e7ce91;border-color:rgba(231,206,145,.22);background:rgba(231,206,145,.06)}
.availability-badge--royal i{background:#e4c26f;box-shadow:0 0 12px rgba(228,194,111,.72)}
.play-button--royal{min-width:205px;background:linear-gradient(135deg,#ead18e,#bc9144);color:#17130d}
.availability-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid rgba(127,231,184,.15);
  border-radius:999px;
  color:#b8f2d6;
  background:rgba(76,197,142,.07);
  font-size:.72rem;
  font-weight:800;
}
.availability-badge i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#75e0ad;
  box-shadow:0 0 12px rgba(117,224,173,.7);
}
.game-card__body{align-self:center;padding:42px 0 26px}
.game-card__eyebrow{
  margin:0 0 13px;
  color:#9f8df2;
  font-size:.71rem;
  font-weight:900;
  letter-spacing:.16em;
}
.game-card__body h3{
  margin:0;
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:clamp(2.5rem,4.2vw,4.1rem);
  font-weight:660;
  letter-spacing:-.065em;
}
.game-card__body>p:last-child{
  margin:18px 0 0;
  color:var(--games-muted);
  line-height:1.72;
}
.game-card__tags{display:flex;flex-wrap:wrap;gap:8px;align-self:end;margin-bottom:26px}
.game-card__tags span{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:10px;
  color:#c2bdcb;
  background:rgba(255,255,255,.025);
  font-size:.72rem;
  font-weight:750;
}
.game-card__footer{
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.07);
}
.game-card__reward{display:grid;gap:4px}
.game-card__reward small{color:var(--games-dim);font-size:.63rem;font-weight:850;letter-spacing:.13em}
.game-card__reward strong{font-size:.86rem}
.play-button{
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:13px;
  padding:0 18px 0 20px;
  border:1px solid rgba(178,157,255,.34);
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,#8d70ff,#6c50e5);
  box-shadow:0 16px 34px rgba(99,71,220,.24),inset 0 1px 0 rgba(255,255,255,.25);
  font-size:.83rem;
  font-weight:850;
  text-decoration:none;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease;
}
.play-button:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(99,71,220,.34),inset 0 1px 0 rgba(255,255,255,.28)}
.play-button svg{width:18px;fill:currentColor;transition:transform .24s ease}
.play-button:hover svg{transform:translateX(3px)}
.games-footer{
  width:min(1320px,calc(100% - 56px));
  margin:0 auto 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 4px 0;
  color:var(--games-dim);
  font-size:.78rem;
}
.games-footer a{color:#bcb4cc;text-decoration:none}
.games-footer a:hover{color:#fff}
@keyframes gamesOrbit{to{transform:rotate(360deg)}}
@keyframes gamesCardIn{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes markPulse{0%,100%{filter:brightness(1);opacity:.86}50%{filter:brightness(1.28);opacity:1}}
@media(max-width:980px){
  .games-page,.games-footer{width:min(100% - 32px,1320px)}
  .games-hero{min-height:auto;padding:46px}
  .games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .games-page{margin-top:22px}
  .games-hero{padding:34px 28px 38px;border-radius:25px}
  .games-hero::after{left:28px;width:180px}
  .games-hero h1{font-size:clamp(2.8rem,15vw,5.2rem)}
  .games-section{margin-top:38px}
  .games-section__head{align-items:flex-start;flex-direction:column}
  .games-grid{grid-template-columns:1fr}
  .game-card{min-height:440px;padding:24px;border-radius:23px}
  .game-card__body{padding-top:34px}
  .game-card__footer{align-items:flex-end}
  .games-footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:440px){
  .games-page,.games-footer{width:calc(100% - 20px)}
  .games-hero{padding:30px 22px}
  .game-card{padding:21px}
  .game-card__footer{align-items:stretch;flex-direction:column}
  .play-button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}
}

/* 2.1.2 — Player profile header */
.player-banner{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);
  align-items:center;
  gap:52px;
  min-height:230px;
  padding:42px 48px;
  overflow:hidden;
  border:1px solid var(--games-line);
  border-radius:30px;
  background:
    linear-gradient(145deg,rgba(20,19,30,.94),rgba(10,10,16,.86)),
    radial-gradient(circle at 12% 14%,rgba(142,111,255,.18),transparent 42%);
  box-shadow:var(--games-shadow);
}
.player-banner::before{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  right:-330px;
  top:-340px;
  border:1px solid rgba(160,137,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 72px rgba(150,125,255,.026),0 0 0 144px rgba(150,125,255,.013);
  pointer-events:none;
}
.player-banner::after{
  content:"";
  position:absolute;
  left:48px;
  bottom:0;
  width:min(240px,30%);
  height:2px;
  background:linear-gradient(90deg,#9278ff,rgba(146,120,255,0));
  box-shadow:0 0 24px rgba(146,120,255,.38);
}
.player-banner__identity,.player-banner__progress{position:relative;z-index:1}
.player-banner__identity{display:flex;align-items:center;gap:26px;min-width:0}
.player-avatar{
  position:relative;
  display:grid;
  flex:0 0 96px;
  width:96px;
  height:96px;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(183,164,255,.32);
  border-radius:27px;
  color:#fff;
  background:linear-gradient(145deg,rgba(142,111,255,.9),rgba(75,50,183,.92));
  box-shadow:0 22px 52px rgba(83,54,203,.28),inset 0 1px 0 rgba(255,255,255,.22);
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:2.45rem;
  font-weight:720;
  letter-spacing:-.06em;
  text-decoration:none;
  transform:translateY(6px);
  opacity:0;
  transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .4s ease,box-shadow .28s ease;
}
.player-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.player-avatar::after{
  content:"";
  position:absolute;
  inset:-35%;
  background:linear-gradient(110deg,transparent 38%,rgba(255,255,255,.24) 50%,transparent 62%);
  transform:translateX(-65%) rotate(10deg);
  animation:playerAvatarSheen 5.5s ease-in-out infinite;
}
.player-avatar:hover{box-shadow:0 28px 62px rgba(83,54,203,.38),inset 0 1px 0 rgba(255,255,255,.25)}
.player-banner.is-ready .player-avatar{transform:translateY(0);opacity:1}
.player-banner__name{min-width:0}
.player-banner__name .games-kicker{margin-bottom:10px}
.player-banner__name h1{
  margin:0;
  overflow:hidden;
  color:var(--games-text);
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:clamp(2.45rem,5vw,5rem);
  font-weight:680;
  line-height:.95;
  letter-spacing:-.06em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.player-banner__name>a{
  display:inline-flex;
  margin-top:16px;
  color:#aaa4ba;
  font-size:.82rem;
  font-weight:720;
  text-decoration:none;
  transition:color .22s ease,transform .22s ease;
}
.player-banner__name>a:hover{color:#e2dbff;transform:translateX(3px)}
.player-banner__progress{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  align-items:stretch;
  gap:14px;
}
.player-level,.player-xp{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.028);
  backdrop-filter:blur(14px);
}
.player-level{
  display:grid;
  min-height:118px;
  place-content:center;
  text-align:center;
  border-radius:22px;
}
.player-level small,.player-xp__head span{
  color:var(--games-dim);
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.15em;
}
.player-level strong{
  margin-top:3px;
  color:#d9d0ff;
  font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  font-size:2.9rem;
  font-weight:700;
  line-height:1;
  letter-spacing:-.06em;
  text-shadow:0 0 30px rgba(146,120,255,.24);
}
.player-xp{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:23px 24px;border-radius:22px}
.player-xp__head,.player-xp__foot{display:flex;align-items:center;justify-content:space-between;gap:14px}
.player-xp__head strong{font-size:.9rem}
.player-xp__track{
  position:relative;
  height:8px;
  margin:16px 0 11px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35);
}
.player-xp__track>span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#7658f0,#b49fff);
  box-shadow:0 0 24px rgba(146,120,255,.55);
  transition:width 1s cubic-bezier(.2,.8,.2,1);
}
.player-xp__foot{color:#85808f;font-size:.7rem;font-weight:700}
.player-banner.is-guest .player-avatar{filter:saturate(.6)}
.player-banner.has-error .player-level strong{color:#aaa5b5;text-shadow:none}
@keyframes playerAvatarSheen{0%,68%,100%{transform:translateX(-70%) rotate(10deg)}82%{transform:translateX(70%) rotate(10deg)}}
@media(max-width:980px){
  .player-banner{grid-template-columns:1fr;gap:30px;padding:40px}
  .player-banner__progress{grid-template-columns:118px minmax(0,1fr)}
}
@media(max-width:620px){
  .player-banner{padding:30px 24px 34px;border-radius:25px}
  .player-banner::after{left:24px;width:160px}
  .player-banner__identity{align-items:flex-start;gap:18px}
  .player-avatar{flex-basis:72px;width:72px;height:72px;border-radius:21px;font-size:1.9rem}
  .player-banner__name h1{font-size:clamp(2rem,10vw,3.2rem)}
  .player-banner__progress{grid-template-columns:90px minmax(0,1fr);gap:10px}
  .player-level{min-height:106px;border-radius:18px}
  .player-level strong{font-size:2.3rem}
  .player-xp{padding:19px 17px;border-radius:18px}
  .player-xp__head{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(max-width:420px){
  .player-banner__identity{display:grid;grid-template-columns:64px minmax(0,1fr)}
  .player-avatar{width:64px;height:64px}
  .player-banner__name .games-kicker{margin-bottom:7px;font-size:.65rem}
  .player-banner__name>a{margin-top:11px}
  .player-banner__progress{grid-template-columns:1fr}
  .player-level{min-height:82px;grid-template-columns:auto auto;gap:10px;align-items:center}
  .player-level strong{margin:0}
}


/* PRISM GAMES ZERO GAP START */
/* Site 27.4.7 / Webservices 11.1.27
   Aucun espace vertical artificiel : les panneaux suivent leur contenu. */

/* =========================================================
   Catalogue /game/
   ========================================================= */
body.p8-games .games-page{
  margin-top:8px ;
  margin-bottom:18px ;
  padding-top:0 ;
}
body.p8-games .games-section{
  margin-top:8px ;
}
body.p8-games .games-section::before{
  margin:0 auto 2px ;
}
body.p8-games .games-section__head{
  margin:0 0 6px ;
  padding:0 ;
}
body.p8-games .games-section__head .games-kicker{
  margin:0 0 2px ;
}
body.p8-games .games-section__head h2{
  margin:0 ;
  font-size:clamp(2.6rem,4.6vw,4.4rem) ;
  line-height:.92 ;
}
body.p8-games .games-grid{
  display:grid ;
  grid-template-columns:repeat(2,minmax(0,1fr)) ;
  grid-auto-rows:auto ;
  align-items:start ;
  align-content:start ;
  gap:10px ;
}
body.p8-games .game-card,
body.p8-games .game-card:nth-child(5),
body.p8-games .game-card--werewolf{
  display:flex ;
  flex-direction:column ;
  justify-content:flex-start ;
  align-items:stretch ;
  align-content:flex-start ;
  align-self:start ;
  block-size:auto ;
  height:auto ;
  min-height:0 ;
  max-height:none ;
  padding:12px 14px ;
  gap:5px ;
  overflow:hidden ;
}
body.p8-games .game-card__glow{
  position:absolute ;
  inset:auto ;
  right:-100px ;
  top:-110px ;
  width:180px ;
  height:180px ;
}
body.p8-games .game-card__topline{
  order:1 ;
  display:flex ;
  flex:0 0 auto ;
  align-items:center ;
  justify-content:space-between ;
  min-height:0 ;
  height:auto ;
  margin:0 ;
  padding:0 ;
  gap:8px ;
}
body.p8-games .chess-mark{
  width:27px ;
  height:29px ;
  padding:2px ;
  grid-template-columns:repeat(3,4px) ;
  gap:3px ;
}
body.p8-games .chess-mark span{width:4px }
body.p8-games :is(.checkers-mark,.go-mark,.connect4-mark,.werewolf-mark){
  width:29px ;
  height:29px ;
  flex:0 0 29px ;
}
body.p8-games .availability-badge{
  padding:4px 7px ;
  gap:5px ;
  font-size:.61rem ;
}
body.p8-games .game-card__body{
  order:2 ;
  display:block ;
  flex:0 0 auto ;
  align-self:stretch ;
  width:100% ;
  min-height:0 ;
  height:auto ;
  margin:0 ;
  padding:0 ;
}
body.p8-games .game-card__eyebrow{
  margin:0 0 2px ;
  font-size:.6rem ;
  line-height:1.15 ;
}
body.p8-games .game-card__body h3{
  margin:0 0 3px ;
  font-size:clamp(2.05rem,3vw,2.85rem) ;
  line-height:.95 ;
}
body.p8-games .game-card__body > p:last-child{
  min-height:0 ;
  height:auto ;
  margin:0 ;
  padding:0 ;
  font-size:.82rem ;
  line-height:1.35 ;
}
body.p8-games .game-card__tags{
  order:3 ;
  display:flex ;
  flex:0 0 auto ;
  align-self:flex-start ;
  min-height:0 ;
  height:auto ;
  margin:1px 0 0 ;
  padding:0 ;
  gap:4px ;
}
body.p8-games .game-card__tags span{
  padding:4px 7px ;
  border-radius:6px ;
  font-size:.61rem ;
  line-height:1.15 ;
}
body.p8-games .game-card__footer{
  order:4 ;
  display:flex ;
  flex:0 0 auto ;
  align-self:stretch ;
  min-height:0 ;
  height:auto ;
  margin:1px 0 0 ;
  padding:6px 0 0 ;
  gap:8px ;
  align-items:center ;
  border-top:1px solid rgba(240,213,138,.10) ;
}
body.p8-games .game-card__reward{
  display:flex ;
  flex-direction:column ;
  gap:0 ;
  margin:0 ;
}
body.p8-games .game-card__reward small{font-size:.54rem ;line-height:1.1 }
body.p8-games .game-card__reward strong{font-size:.72rem ;line-height:1.2 }
body.p8-games .play-button{
  min-height:34px ;
  height:34px ;
  padding:0 12px ;
  gap:7px ;
  border-radius:8px ;
  font-size:.7rem ;
}
body.p8-games .play-button svg{width:14px }
body.p8-games .game-card--werewolf{
  grid-column:1/-1 ;
}
body.p8-games .game-card--werewolf::after{
  width:130px ;
  height:130px ;
}

/* Profil joueur catalogue : compacte également les respirations inutiles. */
body.p8-games .player-banner{
  min-height:0 ;
  padding:12px 16px ;
  gap:14px ;
}
body.p8-games .player-banner__identity{gap:12px }
body.p8-games .player-avatar{width:58px ;height:58px ;flex-basis:58px }
body.p8-games .player-banner__name .games-kicker{margin-bottom:2px }
body.p8-games .player-banner__name h1{margin:0 ;line-height:.95 }
body.p8-games .player-banner__name > a{margin-top:5px }
body.p8-games .player-banner__progress{gap:8px }
body.p8-games .player-level{min-height:0 ;padding:9px 12px }
body.p8-games .player-xp{padding:9px 12px }

/* =========================================================
   Échecs / Dames / Go / Puissance 4 : écrans de choix
   ========================================================= */
body > main.app-shell{
  padding-top:0 ;
  padding-bottom:12px ;
}
body > main.app-shell .topbar{
  margin-bottom:6px ;
}
body > main.app-shell .menu-view{
  padding-top:0 ;
  padding-bottom:8px ;
}
body > main.app-shell .menu-hero{
  min-height:0 ;
  height:auto ;
  max-width:720px ;
  margin:0 auto 6px ;
  padding:0 ;
}
body > main.app-shell .menu-hero h1{
  margin:0 0 3px ;
  font-size:clamp(2.45rem,4.6vw,3.9rem) ;
  line-height:.9 ;
}
body > main.app-shell .menu-hero p{
  margin:0 auto ;
  line-height:1.3 ;
}
body > main.app-shell .player-progress-card{
  min-height:0 ;
  height:auto ;
  margin:0 auto 6px ;
  padding:7px 10px ;
  gap:6px 10px ;
}
body > main.app-shell .mode-grid{
  display:grid ;
  grid-template-columns:repeat(2,minmax(0,1fr)) ;
  grid-auto-rows:auto ;
  align-items:start ;
  align-content:start ;
  gap:8px ;
  padding:0 0 8px ;
}
body > main.app-shell .mode-card,
body > main.app-shell .mode-card--tournament{
  display:flex ;
  flex-direction:column ;
  justify-content:flex-start ;
  align-items:stretch ;
  align-content:flex-start ;
  align-self:start ;
  block-size:auto ;
  height:auto ;
  min-height:0 ;
  max-height:none ;
  padding:12px 14px ;
  gap:4px ;
}
body > main.app-shell .mode-card__halo{
  position:absolute ;
  width:160px ;
  height:160px ;
  right:-80px ;
  top:-90px ;
}
body > main.app-shell .mode-icon{
  flex:0 0 auto ;
  width:38px ;
  height:38px ;
  min-height:0 ;
  margin:0 0 3px ;
  border-radius:11px ;
  font-size:23px ;
}
body > main.app-shell .mode-card .eyebrow,
body > main.app-shell .mode-card .mode-eyebrow{
  margin:0 ;
}
body > main.app-shell .mode-card h2{
  margin:0 0 3px ;
  font-size:clamp(1.65rem,2.8vw,2.25rem) ;
  line-height:.96 ;
}
body > main.app-shell .mode-card > p:not(.mode-note){
  min-height:0 ;
  height:auto ;
  margin:0 0 4px ;
  font-size:.82rem ;
  line-height:1.34 ;
}
body > main.app-shell .difficulty-cards{
  gap:4px ;
  margin:0 ;
}
body > main.app-shell .difficulty-cards button{
  min-height:40px ;
  height:auto ;
  padding:5px ;
  gap:2px ;
}
body > main.app-shell .mode-action{
  min-height:34px ;
  height:auto ;
  margin-top:4px ;
}
body > main.app-shell .mode-note{
  margin:3px 0 0 ;
}
body > main.app-shell .join-divider{
  margin:4px 0 ;
}

/* =========================================================
   Loup-Garou Royal : uniquement le menu / accueil
   ========================================================= */
body[data-world] .menu-view{
  padding-top:4px ;
  padding-bottom:10px ;
}
body[data-world] .menu-hero{
  min-height:0 ;
  height:auto ;
  margin:0 0 6px ;
  grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr) ;
}
body[data-world] .menu-hero__copy{
  justify-content:flex-start ;
  padding:14px 16px ;
}
body[data-world] .menu-hero h1{
  margin:2px 0 4px ;
  font-size:clamp(2.35rem,4vw,3.7rem) ;
  line-height:.92 ;
}
body[data-world] .menu-hero__copy > p{
  margin:0 ;
  line-height:1.35 ;
}
body[data-world] .hero-actions{margin-top:6px }
body[data-world] .reward-note{margin-top:5px }
body[data-world] .menu-hero__emblem{
  min-height:140px ;
  height:auto ;
}
body[data-world] .menu-dashboard{
  gap:8px ;
  margin-top:6px ;
}
body[data-world] .profile-card,
body[data-world] .join-card,
body[data-world] .role-teaser{
  min-height:0 ;
  height:auto ;
  padding:12px 14px ;
}
body[data-world] .role-teaser{margin-top:6px }

@media(max-width:860px){
  body.p8-games .games-grid,
  body > main.app-shell .mode-grid{grid-template-columns:1fr }
  body.p8-games .game-card,
  body.p8-games .game-card:nth-child(5),
  body.p8-games .game-card--werewolf,
  body > main.app-shell .mode-card,
  body > main.app-shell .mode-card--tournament{padding:11px 12px }
  body[data-world] .menu-hero{grid-template-columns:1fr }
  body[data-world] .menu-hero__emblem{min-height:110px }
}

@media(max-width:560px){
  body.p8-games .games-page{margin-top:4px }
  body.p8-games .player-banner{padding:10px 12px }
  body.p8-games .game-card,
  body.p8-games .game-card:nth-child(5),
  body.p8-games .game-card--werewolf,
  body > main.app-shell .mode-card,
  body > main.app-shell .mode-card--tournament{padding:10px }
  body > main.app-shell .menu-hero{margin-bottom:4px }
  body[data-world] .menu-hero__copy{padding:12px }
  body[data-world] .menu-hero__emblem{min-height:90px }
}
/* PRISM GAMES ZERO GAP END */

/* PRISM 7 catalogue */
.prism7-mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(145deg,rgba(175,149,255,.18),rgba(230,201,122,.12));
  color:#f3e8c5;
  font-size:1.15rem;
  font-weight:900;
  box-shadow:0 10px 24px rgba(0,0,0,.22),0 0 22px rgba(175,149,255,.18);
}
.game-card--prism7 .game-card__glow{
  background:radial-gradient(circle,rgba(175,149,255,.22) 0%,rgba(230,201,122,.11) 44%,transparent 72%);
}
.game-card--prism7 .play-button{
  background:linear-gradient(135deg,#b292ff,#8f73ff);
  border-color:rgba(178,157,255,.34);
}
/* Avec 6 jeux, on repasse Loup-Garou Royal dans la grille normale pour un catalogue 3 x 2 plus propre. */
.game-card--werewolf{
  grid-column:auto;
  min-height:360px;
}
.game-card--werewolf .game-card__body{max-width:none}
.game-card--werewolf::after{
  width:220px;
  height:220px;
  right:-24px;
  top:auto;
  bottom:-40px;
  transform:none;
}
.game-card--werewolf .game-card__glow{
  width:420px;
  height:420px;
  right:-110px;
  top:-120px;
}
@media(max-width:720px){
  .game-card--werewolf{grid-column:auto}
}

/* PRISM THRONESHARD CATALOG 27.4.29 START */
/* PRISM THRONESHARD CATALOG 27.4.29 */
.game-card--throneshard{
  position:relative;
  border-color:rgba(214,171,63,.27);
  background:
    radial-gradient(circle at 13% 48%,rgba(122,69,255,.13),transparent 23%),
    radial-gradient(circle at 88% 16%,rgba(218,174,61,.08),transparent 24%),
    linear-gradient(145deg,rgba(22,12,23,.98),rgba(9,7,12,.98));
}
.game-card--throneshard::before{
  content:"";
  position:absolute;
  inset:1px;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,231,153,.025),inset 0 0 42px rgba(91,38,147,.035);
}
.game-card--throneshard .game-card__glow{
  background:radial-gradient(circle,rgba(133,77,255,.20),rgba(207,159,43,.05) 42%,transparent 70%);
}
.game-card--throneshard .game-card__topline{
  width:118px;
  min-width:118px;
}
.game-card--throneshard{
  grid-template-columns:118px minmax(0,1fr) auto;
}
.throneshard-catalog-logo{
  display:block;
  width:112px;
  height:58px;
  object-fit:contain;
  filter:drop-shadow(0 7px 15px rgba(0,0,0,.55)) drop-shadow(0 0 9px rgba(117,72,255,.18));
}
.game-card--throneshard .game-card__eyebrow{color:#e8c867}
.game-card--throneshard .game-card__body h3{
  color:#fff5dc;
  text-shadow:0 1px 0 rgba(255,229,143,.08),0 0 18px rgba(137,82,255,.06);
}
.game-card--throneshard .game-card__tags span{
  border-color:rgba(211,168,60,.22);
  background:rgba(64,38,74,.22);
}
.game-card--throneshard .play-button{
  color:#180d08;
  border-color:rgba(255,227,135,.55);
  background:linear-gradient(135deg,#bc842c,#f0cf6c 55%,#c18a31);
}
.game-card--throneshard .play-button:hover{
  filter:brightness(1.06);
  box-shadow:0 10px 24px rgba(160,112,34,.22),0 0 18px rgba(126,72,255,.10);
}
@media(max-width:620px){
  .game-card--throneshard{
    grid-template-columns:56px minmax(0,1fr) auto;
  }
  .game-card--throneshard .game-card__topline{width:56px;min-width:56px}
  .throneshard-catalog-logo{width:52px;height:38px;object-fit:contain}
}
/* PRISM THRONESHARD CATALOG 27.4.29 END */

/* PRISM GAMES FEATURED ORDER 27.4.30 START */
/* PRISM GAMES — FEATURED ORDER 27.4.30 */
/* THRONESHARD puis Loup-Garou Royal occupent chacun une ligne complète.
   Les quatre jeux classiques restent ensuite dans la grille compacte 2 x 2. */
.games-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.game-card--throneshard,
.game-card--werewolf{
  grid-column:1 / -1;
}
.game-card--chess,
.game-card--checkers,
.game-card--go,
.game-card--connect4{
  grid-column:auto;
}
/* Les deux jeux mis en avant restent fins malgré leur pleine largeur. */
.game-card--throneshard,
.game-card--werewolf{
  min-height:0;
  height:auto;
}
@media(max-width:1050px){
  .games-grid{grid-template-columns:1fr}
  .game-card--throneshard,
  .game-card--werewolf,
  .game-card--chess,
  .game-card--checkers,
  .game-card--go,
  .game-card--connect4{grid-column:1}
}
/* PRISM GAMES FEATURED ORDER 27.4.30 END */

.game-card--circle{background:radial-gradient(circle at 82% 18%,rgba(161,60,255,.18),transparent 34%),radial-gradient(circle at 12% 90%,rgba(255,190,25,.08),transparent 34%),var(--games-card-bg,#111015)}
.circle-mark{width:48px;height:48px;position:relative;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(181,78,255,.55);box-shadow:0 0 28px rgba(153,45,255,.16),inset 0 0 20px rgba(153,45,255,.08)}
.circle-mark:before{content:"";position:absolute;inset:7px;border-radius:50%;border:1px dashed rgba(255,196,30,.6)}
.circle-mark:after{content:"?";font:900 23px/1 Georgia,serif;color:#f8ecff;text-shadow:0 0 12px #9d3cff}
.game-card--circle .game-card__glow{background:radial-gradient(circle,rgba(157,60,255,.26),transparent 70%)}
.game-card--circle .play-button{background:linear-gradient(135deg,#9d3cff,#6e22c7);box-shadow:0 10px 28px rgba(123,38,205,.2)}

}
