/* 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) ;
  }
}


/* PRISM 8.2 — support members redesign */
.support-public-wrap,.prism-page{width:min(1180px,calc(100% - 28px));max-width:1180px;margin:0 auto;padding:28px 0 54px}
.prism-hero.support-public-hero,.prism-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:center;
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(145deg,rgba(25,25,32,.76),rgba(14,14,19,.56));
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  border-radius:30px;
  padding:36px;
  margin-bottom:18px;
  position:relative;
  overflow:hidden;
}
.prism-hero.support-public-hero::before{
  content:"";
  position:absolute;right:-100px;top:-60px;width:280px;height:280px;border-radius:999px;
  background:radial-gradient(circle, rgba(212,175,55,.20), rgba(212,175,55,0) 72%);
  filter:blur(20px);pointer-events:none;
}
.prism-hero-logo{width:min(320px,36vw);max-height:360px;object-fit:contain}
.support-public-card{
  border:1px solid rgba(255,255,255,.09) ;
  background:linear-gradient(145deg,rgba(25,25,32,.78),rgba(14,14,19,.56)) ;
  color:#f8f2e9 ;
  border-radius:30px ;
  padding:26px ;
  box-shadow:0 24px 80px rgba(0,0,0,.42) ;
  backdrop-filter:blur(20px);
}
.support-grid-2{display:grid;grid-template-columns:1.08fr .92fr;gap:24px;align-items:start}
.support-trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 22px}
.support-trust-item,.support-meta,.support-message,.support-ticket-card,.support-muted-box,.support-admin-card,.support-inline-form{
  border:1px solid rgba(255,255,255,.09) ;
  background:rgba(255,255,255,.045) ;
  color:#f8f2e9 ;
  border-radius:22px ;
  transition:.2s ease;
}
.support-trust-item{padding:18px}
.support-trust-item:hover,.support-ticket-card:hover{transform:translateY(-2px);border-color:rgba(244,217,126,.30) }
.support-trust-item strong,.support-field label{display:block;margin-bottom:7px;color:#f4d97e }
.support-trust-item span,.support-mini,.support-message small,.support-ticket-card small,.prism-muted{color:#c9bfad ;line-height:1.6}
.support-emergency{
  border:1px solid rgba(255,92,113,.35) ;
  background:rgba(255,92,113,.10) ;
  color:#ffe0e5 ;
  border-radius:22px ;
  padding:18px ;
  line-height:1.65;
  margin-bottom:18px;
}
.support-ok{
  border:1px solid rgba(155,231,178,.36) ;
  background:rgba(155,231,178,.10) ;
  color:#dfffea ;
  border-radius:22px ;
  padding:18px ;
}
.support-form{display:grid;gap:16px}
.support-field label{font-weight:900}
.support-field textarea,textarea{min-height:160px;resize:vertical}
.support-checkbox{display:flex;gap:10px;align-items:flex-start;line-height:1.65;color:#c9bfad}
.support-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.support-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.support-tabs button{
  border:1px solid rgba(255,255,255,.10) ;
  background:rgba(255,255,255,.05) ;
  border-radius:999px ;
  padding:10px 14px ;
  font-weight:900;
  cursor:pointer;
}
.support-tabs button.active{
  color:#111 ;
  background:linear-gradient(135deg,#d4af37,#f4d97e 60%,#fff1ad) ;
  border-color:rgba(244,217,126,.56) ;
}
.support-member-bar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.support-ticket-list{display:grid;gap:14px;margin-top:18px}
.support-ticket-card{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:18px;text-decoration:none}
.support-pill,.support-badge{
  display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;
  background:rgba(255,255,255,.06) ;
  border:1px solid rgba(255,255,255,.10) ;
  font-size:.85rem;font-weight:950;color:#c9bfad ;
}
.support-pill.urgent,.support-badge.urgent{background:rgba(255,92,113,.12) ;border-color:rgba(255,92,113,.36) ;color:#ffdce2 }
.support-pill.important,.support-badge.important{background:rgba(212,175,55,.12) ;border-color:rgba(244,217,126,.38) ;color:#ffe8a9 }
.support-thread{display:grid;gap:14px;margin-top:18px}
.support-message{padding:18px}
.support-message.member{margin-left:8%;background:rgba(255,255,255,.04) }
.support-message.staff{margin-right:8%;border-color:rgba(244,217,126,.32) ;background:rgba(212,175,55,.08) }
.support-message.system{background:rgba(255,255,255,.035) ;color:#c9bfad }
.support-message-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-weight:900;margin-bottom:8px}
.support-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.support-meta{padding:14px}
.support-live-state{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(155,231,178,.34) ;
  background:rgba(155,231,178,.09) ;
  color:#dfffea ;
  border-radius:999px;padding:7px 11px;font-size:.85rem;font-weight:950;
}
.support-live-state::before{content:"";width:8px;height:8px;border-radius:50%;background:#9be7b2;box-shadow:0 0 0 5px rgba(155,231,178,.12)}
.hidden{display:none }
@media(max-width:860px){
  .support-public-hero,.prism-hero{grid-template-columns:1fr}
  .support-grid-2,.support-trust-grid,.support-meta-grid{grid-template-columns:1fr}
  .support-message.member,.support-message.staff{margin-left:0;margin-right:0}
  .support-ticket-card{grid-template-columns:1fr}
}


/* PRISM 8.3 support polish */
.support-public-card,.support-trust-item,.support-meta,.support-message,.support-ticket-card,.support-muted-box,.support-admin-card,.support-inline-form,
.prism-hero.support-public-hero,.support-pill,.support-badge{border-radius:14px }
.prism-hero.support-public-hero{padding:34px }
.prism-page{padding-top:0 }


/* PRISM 8.4 support contrast */
.support-trust-item strong,
.support-field label,
.support-mini strong,
.support-public-card h2,
.support-public-card h3{
  color:#f8f2e9 ;
}
.support-trust-item strong,
.support-field label{
  color:#f4d97e ;
}
.support-pill,.support-badge,.support-tabs button{
  color:#ffe8a9 ;
}


/* =========================================================
   PRISM 8.16 — Soutien : mobile + interface conversation
   ========================================================= */
:root{
  --support-chat-bg:rgba(9,9,13,.72);
  --support-chat-line:rgba(255,255,255,.10);
  --support-chat-panel:rgba(20,20,27,.86);
  --support-chat-panel-2:rgba(28,28,36,.82);
  --support-chat-text:#f8f2e9;
  --support-chat-muted:#c9bfad;
  --support-chat-gold:#f4d97e;
}

/* Zone de création : ne doit plus sortir de l'écran sur mobile */
.support-public-wrap,
.prism-page.support-public-wrap{
  max-width:1180px ;
  width:min(1180px, calc(100% - 28px)) ;
}

.support-public-card#root{
  overflow:hidden ;
}

#registerCreateForm,
#newTicketForm,
#loginForm{
  min-width:0 ;
}

.support-grid-2{
  min-width:0 ;
}

.support-field,
.support-field input,
.support-field select,
.support-field textarea{
  min-width:0 ;
  max-width:100% ;
}

.support-field textarea{
  line-height:1.62 ;
}

/* Conversation façon ChatGPT */
.support-chat-shell{
  display:grid;
  gap:18px;
  margin-top:20px;
}

.support-thread{
  display:grid ;
  gap:0 ;
  margin-top:18px ;
  border:1px solid var(--support-chat-line) ;
  background:
    radial-gradient(circle at 20% 0%, rgba(212,175,55,.06), transparent 32%),
    rgba(7,7,10,.55) ;
  border-radius:22px ;
  overflow:hidden ;
  box-shadow:0 24px 80px rgba(0,0,0,.30) ;
}

.support-message{
  position:relative ;
  display:grid ;
  grid-template-columns:42px minmax(0,1fr) ;
  gap:14px ;
  margin:0 ;
  padding:22px 24px ;
  border:0 ;
  border-bottom:1px solid rgba(255,255,255,.075) ;
  border-radius:0 ;
  background:transparent ;
  color:var(--support-chat-text) ;
  box-shadow:none ;
}

.support-message:last-child{
  border-bottom:0 ;
}

.support-message.member{
  background:rgba(255,255,255,.025) ;
}

.support-message.staff{
  background:rgba(212,175,55,.055) ;
}

.support-message.system{
  background:rgba(255,255,255,.035) ;
}

.support-message::before{
  content:"";
  width:42px;
  height:42px;
  border-radius:13px;
  display:block;
  grid-column:1;
  grid-row:1 / span 2;
  background:
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025)),
    rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

.support-message.member::before{
  content:"👤";
  display:grid;
  place-items:center;
  color:#111;
  background:linear-gradient(135deg,#d9fbff,#e7e0ff 48%,#b7ecff);
  border-color:rgba(183,236,255,.44);
}

.support-message.staff::before{
  content:"💛";
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#c99d2e,#f4d97e 62%,#fff2b8);
  border-color:rgba(244,217,126,.58);
}

.support-message.system::before{
  content:"✦";
  display:grid;
  place-items:center;
  color:#f4d97e;
}

.support-message-head{
  grid-column:2 ;
  display:flex ;
  align-items:baseline ;
  justify-content:flex-start ;
  gap:10px ;
  margin:0 0 8px ;
  font-weight:950 ;
}

.support-message-head span{
  color:#f8f2e9 ;
}

.support-message-head small{
  color:#8f8779 ;
  font-weight:700 ;
}

.support-message-body{
  grid-column:2 ;
  color:#ddd4c7 ;
  line-height:1.78 ;
  font-size:1rem ;
  white-space:normal ;
  overflow-wrap:anywhere ;
}

.support-message-body p{
  margin:0 0 12px ;
}

.support-message-body p:last-child{
  margin-bottom:0 ;
}

/* Composer ergonomique PC */
.support-chat-composer,
#supportReplyForm,
#replyForm{
  margin-top:18px ;
  border:1px solid rgba(255,255,255,.10) ;
  background:
    linear-gradient(145deg,rgba(25,25,32,.88),rgba(14,14,19,.78)) ;
  border-radius:22px ;
  padding:14px ;
  box-shadow:0 24px 80px rgba(0,0,0,.30) ;
}

.support-chat-composer .support-field,
#supportReplyForm .support-field,
#replyForm .support-field{
  margin:0 ;
}

.support-chat-composer label,
#supportReplyForm label,
#replyForm label{
  display:none ;
}

.support-chat-composer textarea,
#supportReplyForm textarea,
#replyForm textarea{
  min-height:78px ;
  max-height:260px ;
  resize:vertical ;
  border:0 ;
  background:rgba(0,0,0,.24) ;
  border-radius:16px ;
  padding:16px 18px ;
  color:#f8f2e9 ;
  line-height:1.65 ;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) ;
}

.support-chat-composer textarea:focus,
#supportReplyForm textarea:focus,
#replyForm textarea:focus{
  box-shadow:inset 0 0 0 1px rgba(244,217,126,.40), 0 0 0 4px rgba(212,175,55,.10) ;
}

.support-composer-actions,
#supportReplyForm,
#replyForm{
  display:grid ;
  gap:12px ;
}

.support-composer-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:#8f8779;
  font-size:.9rem;
}

.support-send-hint{
  color:#8f8779 ;
}

/* Le formulaire complet de création est plus agréable sur PC */
#registerCreateForm,
#newTicketForm{
  border:1px solid rgba(255,255,255,.10) ;
  background:linear-gradient(145deg,rgba(25,25,32,.78),rgba(14,14,19,.60)) ;
  border-radius:22px ;
  padding:24px ;
}

#registerCreateForm .support-field,
#newTicketForm .support-field{
  display:grid;
  gap:8px;
}

#registerCreateForm textarea[name="message"],
#newTicketForm textarea[name="message"]{
  min-height:180px ;
}

/* Mobile : marges et largeur corrigées */
@media(max-width:720px){
  .support-public-wrap,
  .prism-page.support-public-wrap{
    width:100% ;
    max-width:100% ;
    margin:16px 0 42px ;
    padding:0 10px ;
    overflow-x:hidden ;
  }

  .support-public-card#root{
    padding:14px ;
    border-radius:18px ;
    width:100% ;
    max-width:100% ;
  }

  .support-grid-2{
    display:grid ;
    grid-template-columns:1fr ;
    gap:14px ;
    width:100% ;
    max-width:100% ;
  }

  .support-trust-grid{
    grid-template-columns:1fr ;
    gap:10px ;
  }

  .support-tabs{
    display:grid ;
    grid-template-columns:1fr ;
    gap:8px ;
  }

  .support-tabs button{
    width:100% ;
    min-height:44px ;
    white-space:normal ;
    line-height:1.25 ;
  }

  #registerCreateForm,
  #newTicketForm,
  #loginForm{
    width:100% ;
    max-width:100% ;
    padding:16px ;
    border-radius:16px ;
  }

  .support-field input,
  .support-field select,
  .support-field textarea{
    width:100% ;
    max-width:100% ;
    box-sizing:border-box ;
  }

  .support-checkbox{
    align-items:flex-start ;
    gap:10px ;
  }

  .support-actions{
    display:grid ;
    grid-template-columns:1fr ;
    gap:10px ;
  }

  .support-message{
    grid-template-columns:34px minmax(0,1fr) ;
    gap:10px ;
    padding:18px 14px ;
  }

  .support-message::before{
    width:34px ;
    height:34px ;
    border-radius:10px ;
    font-size:.9rem ;
  }

  .support-message-head{
    display:grid ;
    gap:3px ;
  }

  .support-message-body{
    font-size:.96rem ;
    line-height:1.68 ;
  }

  #supportReplyForm,
  #replyForm{
    padding:10px ;
    border-radius:18px ;
  }

  #supportReplyForm textarea,
  #replyForm textarea{
    min-height:92px ;
    border-radius:14px ;
    padding:14px ;
  }

  .support-meta-grid{
    grid-template-columns:1fr ;
    gap:10px ;
  }
}


/* =========================================================
   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) ;
  }
}


/* =========================================================
   PRISM 8.16 — Soutien : mobile + interface conversation
   ========================================================= */
:root{
  --support-chat-bg:rgba(9,9,13,.72);
  --support-chat-line:rgba(255,255,255,.10);
  --support-chat-panel:rgba(20,20,27,.86);
  --support-chat-panel-2:rgba(28,28,36,.82);
  --support-chat-text:#f8f2e9;
  --support-chat-muted:#c9bfad;
  --support-chat-gold:#f4d97e;
}

/* Zone de création : ne doit plus sortir de l'écran sur mobile */
.support-public-wrap,
.prism-page.support-public-wrap{
  max-width:1180px ;
  width:min(1180px, calc(100% - 28px)) ;
}

.support-public-card#root{
  overflow:hidden ;
}

#registerCreateForm,
#newTicketForm,
#loginForm{
  min-width:0 ;
}

.support-grid-2{
  min-width:0 ;
}

.support-field,
.support-field input,
.support-field select,
.support-field textarea{
  min-width:0 ;
  max-width:100% ;
}

.support-field textarea{
  line-height:1.62 ;
}

/* Conversation façon ChatGPT */
.support-chat-shell{
  display:grid;
  gap:18px;
  margin-top:20px;
}

.support-thread{
  display:grid ;
  gap:0 ;
  margin-top:18px ;
  border:1px solid var(--support-chat-line) ;
  background:
    radial-gradient(circle at 20% 0%, rgba(212,175,55,.06), transparent 32%),
    rgba(7,7,10,.55) ;
  border-radius:22px ;
  overflow:hidden ;
  box-shadow:0 24px 80px rgba(0,0,0,.30) ;
}

.support-message{
  position:relative ;
  display:grid ;
  grid-template-columns:42px minmax(0,1fr) ;
  gap:14px ;
  margin:0 ;
  padding:22px 24px ;
  border:0 ;
  border-bottom:1px solid rgba(255,255,255,.075) ;
  border-radius:0 ;
  background:transparent ;
  color:var(--support-chat-text) ;
  box-shadow:none ;
}

.support-message:last-child{
  border-bottom:0 ;
}

.support-message.member{
  background:rgba(255,255,255,.025) ;
}

.support-message.staff{
  background:rgba(212,175,55,.055) ;
}

.support-message.system{
  background:rgba(255,255,255,.035) ;
}

.support-message::before{
  content:"";
  width:42px;
  height:42px;
  border-radius:13px;
  display:block;
  grid-column:1;
  grid-row:1 / span 2;
  background:
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025)),
    rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

.support-message.member::before{
  content:"👤";
  display:grid;
  place-items:center;
  color:#111;
  background:linear-gradient(135deg,#d9fbff,#e7e0ff 48%,#b7ecff);
  border-color:rgba(183,236,255,.44);
}

.support-message.staff::before{
  content:"💛";
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#c99d2e,#f4d97e 62%,#fff2b8);
  border-color:rgba(244,217,126,.58);
}

.support-message.system::before{
  content:"✦";
  display:grid;
  place-items:center;
  color:#f4d97e;
}

.support-message-head{
  grid-column:2 ;
  display:flex ;
  align-items:baseline ;
  justify-content:flex-start ;
  gap:10px ;
  margin:0 0 8px ;
  font-weight:950 ;
}

.support-message-head span{
  color:#f8f2e9 ;
}

.support-message-head small{
  color:#8f8779 ;
  font-weight:700 ;
}

.support-message-body{
  grid-column:2 ;
  color:#ddd4c7 ;
  line-height:1.78 ;
  font-size:1rem ;
  white-space:normal ;
  overflow-wrap:anywhere ;
}

.support-message-body p{
  margin:0 0 12px ;
}

.support-message-body p:last-child{
  margin-bottom:0 ;
}

/* Composer ergonomique PC */
.support-chat-composer,
#supportReplyForm,
#replyForm{
  margin-top:18px ;
  border:1px solid rgba(255,255,255,.10) ;
  background:
    linear-gradient(145deg,rgba(25,25,32,.88),rgba(14,14,19,.78)) ;
  border-radius:22px ;
  padding:14px ;
  box-shadow:0 24px 80px rgba(0,0,0,.30) ;
}

.support-chat-composer .support-field,
#supportReplyForm .support-field,
#replyForm .support-field{
  margin:0 ;
}

.support-chat-composer label,
#supportReplyForm label,
#replyForm label{
  display:none ;
}

.support-chat-composer textarea,
#supportReplyForm textarea,
#replyForm textarea{
  min-height:78px ;
  max-height:260px ;
  resize:vertical ;
  border:0 ;
  background:rgba(0,0,0,.24) ;
  border-radius:16px ;
  padding:16px 18px ;
  color:#f8f2e9 ;
  line-height:1.65 ;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) ;
}

.support-chat-composer textarea:focus,
#supportReplyForm textarea:focus,
#replyForm textarea:focus{
  box-shadow:inset 0 0 0 1px rgba(244,217,126,.40), 0 0 0 4px rgba(212,175,55,.10) ;
}

.support-composer-actions,
#supportReplyForm,
#replyForm{
  display:grid ;
  gap:12px ;
}

.support-composer-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:#8f8779;
  font-size:.9rem;
}

.support-send-hint{
  color:#8f8779 ;
}

/* Le formulaire complet de création est plus agréable sur PC */
#registerCreateForm,
#newTicketForm{
  border:1px solid rgba(255,255,255,.10) ;
  background:linear-gradient(145deg,rgba(25,25,32,.78),rgba(14,14,19,.60)) ;
  border-radius:22px ;
  padding:24px ;
}

#registerCreateForm .support-field,
#newTicketForm .support-field{
  display:grid;
  gap:8px;
}

#registerCreateForm textarea[name="message"],
#newTicketForm textarea[name="message"]{
  min-height:180px ;
}

/* Mobile : marges et largeur corrigées */
@media(max-width:720px){
  .support-public-wrap,
  .prism-page.support-public-wrap{
    width:100% ;
    max-width:100% ;
    margin:16px 0 42px ;
    padding:0 10px ;
    overflow-x:hidden ;
  }

  .support-public-card#root{
    padding:14px ;
    border-radius:18px ;
    width:100% ;
    max-width:100% ;
  }

  .support-grid-2{
    display:grid ;
    grid-template-columns:1fr ;
    gap:14px ;
    width:100% ;
    max-width:100% ;
  }

  .support-trust-grid{
    grid-template-columns:1fr ;
    gap:10px ;
  }

  .support-tabs{
    display:grid ;
    grid-template-columns:1fr ;
    gap:8px ;
  }

  .support-tabs button{
    width:100% ;
    min-height:44px ;
    white-space:normal ;
    line-height:1.25 ;
  }

  #registerCreateForm,
  #newTicketForm,
  #loginForm{
    width:100% ;
    max-width:100% ;
    padding:16px ;
    border-radius:16px ;
  }

  .support-field input,
  .support-field select,
  .support-field textarea{
    width:100% ;
    max-width:100% ;
    box-sizing:border-box ;
  }

  .support-checkbox{
    align-items:flex-start ;
    gap:10px ;
  }

  .support-actions{
    display:grid ;
    grid-template-columns:1fr ;
    gap:10px ;
  }

  .support-message{
    grid-template-columns:34px minmax(0,1fr) ;
    gap:10px ;
    padding:18px 14px ;
  }

  .support-message::before{
    width:34px ;
    height:34px ;
    border-radius:10px ;
    font-size:.9rem ;
  }

  .support-message-head{
    display:grid ;
    gap:3px ;
  }

  .support-message-body{
    font-size:.96rem ;
    line-height:1.68 ;
  }

  #supportReplyForm,
  #replyForm{
    padding:10px ;
    border-radius:18px ;
  }

  #supportReplyForm textarea,
  #replyForm textarea{
    min-height:92px ;
    border-radius:14px ;
    padding:14px ;
  }

  .support-meta-grid{
    grid-template-columns:1fr ;
    gap:10px ;
  }
}


/* =========================================================
   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) ;
  }
}


/* =========================================================
   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) ;
  }
}

}
