html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}


/* ===== Phase 6 — Salle du Mentor ===== */
#screen-profile{
  position:relative; display:none;
  min-height:100vh; height:100vh; width:100%;
  color:#fff; overflow:hidden; align-items:center; justify-content:center;
}


.p6-wrap{
  position:relative;
  z-index:2;
  width:100%;
  max-width:100%;
  display:flex;
  justify-content:center;
}


.p6-mentor{ position:relative; width:180px; height:180px; }
.p6-mentor-img{
  width:100%; height:100%; object-fit:cover; border-radius:999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.p6-halo{
  position:absolute; inset:-8%; border-radius:999px; filter:blur(22px);
  background: radial-gradient(closest-side, rgba(255,255,255,.15), transparent 70%);
  pointer-events:none; mix-blend-mode:screen;
}

.p6-title{ font-size: clamp(20px, 4.4vw, 34px); margin:0; }
.p6-paragraph{ white-space:pre-line; opacity:.92; line-height:1.5; margin:6px 0 12px; }

.p6-ident{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.p6-chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.p6-chip.theme strong{ text-transform:capitalize; }

.p6-btn{
  margin-top:6px; padding:12px 18px; border-radius:12px; border:none; cursor:pointer; font-weight:800;
  color:#001; background: var(--sc-accent, #1e90ff); transition:.18s ease;
}
.p6-btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }

.p6-subnote{ font-size:12px; opacity:.75; margin-top:6px; }

.p6-mentor-img.pulse-in {
  animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.p6-halo.halo-anim {
  animation: haloPulse 1.8s ease-in-out infinite;
}

@keyframes haloPulse {
  0%   { transform: scale(1); opacity: 0.4; }
  50%  { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.4; }
}

.p6-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.p6-actions .p6-btn {
  width: 100%;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .p6-actions {
    max-width: 360px;
    margin: 20px auto 0;
  }
}

/* ✅ Avatar joueur — Phase 6 */
.p6-player-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 1rem auto 2rem;
}

/* ✅ Mobile-first : avatar plus raisonnable */
.p6-avatar-img {
  width: 40vw;
  max-width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

/* ✅ Sur tablette + desktop → un peu plus grand mais pas énorme */
@media (min-width: 768px) {
  .p6-avatar-img {
    width: 180px;
    max-width: 200px;
  }
}

/* ✅ Sur écran large → taille maîtrisée */
@media (min-width: 1200px) {
  .p6-avatar-img {
    width: 200px;
    max-width: 220px;
  }
}

/* =====================
   🪪 ID CARD STAR CARD
   Mobile-first + Scaling Desktop
===================== */
.p6-idcard {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* 🔥 point clé */
  margin: 8vh auto;
  padding: 1.5rem;
  background: rgba(0, 25, 60, 0.55);
  border: 2px solid rgba(0,130,255,0.55);
  border-radius: 18px;
  backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow:
    0 0 20px rgba(0,130,255,0.25),
    0 0 60px rgba(0,130,255,0.15) inset;
  transform: scale(1); /* base */
}

.id-header,
.id-footer {
  text-align: center;
  font-size: .8rem;
  letter-spacing: 2px;
  opacity: .85;
}

.id-title {
  border-bottom: 1px solid rgba(0,130,255,0.4);
  padding-bottom: .3rem;
}

.id-photo {
  display: flex;
  justify-content: center;
}

.id-photo img {
  width: 28vw;   /* adaptatif mobile */
  max-width: 150px;
  min-width: 100px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 3px solid rgba(0,130,255,0.35);
  object-fit: cover;
}

.id-info {
  font-size: .95rem;
  line-height: 1.4rem;
}

.id-field span {
  opacity: .7;
  font-size: .85rem;
}

.id-actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: .7rem;
}

.id-btn {
  background: rgba(0,130,255,0.18);
  border: 1px solid rgba(0,130,255,0.45);
  color: #e0f3ff;
  padding: .8rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}

.id-btn:hover {
  background: rgba(0,130,255,0.33);
  transform: scale(1.04);
}

.stamp {
  font-size: .8rem;
  border-top: 1px solid rgba(0,130,255,0.3);
  opacity: .9;
  padding-top: .3rem;
}

/* ✅ Version PC — carte beaucoup plus large mais pas rognée */
@media (min-width: 900px) {
  .p6-idcard {
    width: 70vw;       /* ✨ plus large sur un grand écran */
    max-width: 900px;  /* limite propre */
    margin: 6vh auto;
    padding: 2rem;
    transform: none;   /* 🚫 FINI LES ROGNAGES */
  }

  .id-photo img {
    max-width: 240px;
  }

  .id-info {
    font-size: 1.15rem;
  }

  .id-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .id-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
}


/* ✅ FULL largeur mobile — pas de réduction d’échelle */
@media (max-width: 492px) {

  html, body, .sc-root, #screen-profile {
    overflow-x: hidden;
  }

   .p6-idcard {
    width: 100%;
    margin: 4vh auto;
    padding-inline: 1rem;
  }

  .id-photo img {
    width: 45vw;       /* ✅ avatar grand */
    max-width: 200px;
    min-width: 120px;
  }

  .id-info {
    font-size: 1rem;   /* ✅ texte lisible */
  }

  .id-actions {
    gap: .8rem;
  }

  .id-btn {
    padding: .9rem;
    font-size: .95rem; /* ✅ boutons lisibles */
  }
}

/* ✅ Mobile large & Tablette portrait — Largeur totale */
@media (min-width: 493px) and (max-width: 899px) {

  .p6-idcard {
    width: 92vw;        /* ✅ pratiquement toute la largeur */
    max-width: 600px;   /* ✅ plus grand que mobile */
    margin: 6vh auto;
    padding: 1.8rem;
  }

  .id-photo img {
    width: 32vw;
    max-width: 180px;
  }

  .id-info {
    font-size: 1rem;
  }

  .id-actions {
    gap: 1rem;
  }
}

