
/* ===============================
   Phase 4.2 — Vortex Galactique
   ✨ Version avec Halos Énergétiques ✨
   - cartes compactes mobile-first
   - vortex + shockwave + cam shake
   - popup adaptatif par thème
=============================== */

/* Compact KAR-2 + layout */
#screen-signup { gap: 1rem; padding: 1.2rem 1rem; }
.signup-kar2   { width: 95px; max-width: 28vw; margin-bottom: .4rem;
  filter: drop-shadow(0 0 12px rgba(100,180,255,.55));
  animation: kar2-float 3s ease-in-out infinite;
}

@keyframes kar2-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.mentor-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; width:100%; max-width:360px; }

/* Cartes */
.mentor-card{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:6px;
  background:rgba(14,24,38,.55); border:1px solid var(--sc-border); border-radius:14px; padding:10px;
  cursor:pointer; transition:transform .16s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  overflow: hidden;
  isolation:isolate;
}
.mentor-card img{ width:100%; max-width:120px; border-radius:10px; filter:drop-shadow(0 6px 20px rgba(92,199,255,.22)) }
.mentor-card .label{ font-size:.78rem; font-weight:700; letter-spacing:.02em; color:#e8f6ff }
.mentor-card:hover{ transform:translateY(-2px) }

/* Sélection visuelle */
.mentor-card[aria-pressed="true"]{
  transform:scale(1.06);
  border-color:#fff;
  box-shadow:0 0 18px rgba(255,255,255,.18), inset 0 0 12px rgba(255,255,255,.08);
}

/* ✨ Nouveau : Halo Énergétique */
.mentor-card.vortex .mentor-halo{
  content:"";
  position:absolute;
  inset:-20%;
  border-radius:50%;
  z-index:-1;
  opacity:.3;
  filter:blur(14px);
  animation: halo-pulse 2.6s ease-in-out infinite;
}
@keyframes halo-pulse{
  0%,100%{ transform:scale(1); opacity:0.25 }
  50%{ transform:scale(1.15); opacity:0.45 }
}

/* Halo par couleur de mentor */
.theme-blue .mentor-halo   { background:rgba(0,156,255,.9); }
.theme-green .mentor-halo  { background:rgba(0,255,168,.8); }
.theme-purple .mentor-halo { background:rgba(168,80,255,.82); }
.theme-red .mentor-halo    { background:rgba(255,60,60,.86); }

/* Vortex */
.mentor-card.vortex::before,
.mentor-card.vortex::after{
  content:""; position:absolute; inset:-40%;
  background: conic-gradient(from 0deg,
    transparent 0 20%, rgba(255,255,255,.08) 24% 28%, transparent 32% 52%, rgba(255,255,255,.06) 56% 60%, transparent 64% 100%
  );
  border-radius:50%;
  z-index:0; mix-blend-mode:screen;
  animation: vortex-spin 2.8s linear infinite;
}
.mentor-card.vortex::after{
  inset:-50%;
  filter: blur(6px) saturate(140%);
  animation-direction: reverse; animation-duration: 3.6s; opacity:.7;
}
@keyframes vortex-spin { to{ transform: rotate(360deg) } }

/* Shockwave */
.mentor-card.shockwave::after{
  content:""; position:absolute; inset: 0; margin:auto; width:40px; height:40px; border-radius:50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.65);
  animation: shock 550ms ease-out forwards; z-index:1;
}
@keyframes shock{
  0% { transform: scale(.3); opacity:.85; box-shadow:0 0 0 0 rgba(255,255,255,.65); }
  100%{ transform: scale(6); opacity:0; box-shadow:0 0 0 24px rgba(255,255,255,0); }
}

/* Camera shake */
.cam-shake { animation: cam 420ms ease-in-out; }
@keyframes cam{
  0%{transform:translate(0)}
  20%{transform:translate(1px,-1px)}
  40%{transform:translate(-1px,1px)}
  60%{transform:translate(1px,1px)}
  80%{transform:translate(-1px,-1px)}
  100%{transform:translate(0)}
}

/* Popup */
.mentor-modal{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.68); backdrop-filter:blur(4px); z-index:9999;
}
.mentor-modal[hidden]{ display:none!important }
.modal-content{
  background:linear-gradient(180deg, rgba(8,14,22,.92), rgba(8,14,22,.72));
  border:1px solid var(--sc-border); border-radius:14px; padding:18px; width:min(92vw, 360px); text-align:center;
  box-shadow:0 0 32px rgba(92,199,255,.12);
}
.modal-content h3{ margin:.2rem 0 .4rem; color:#dff6ff }
.modal-content p { margin:0 0 .8rem; color:#eaf6ff; opacity:.95; font-size:.95rem }
.modal-actions { display:flex; gap:10px }
.modal-btn{
  flex:1; padding:10px; border-radius:10px; border:1px solid var(--sc-border);
  background:#0e1826; color:#d7ecff; cursor:pointer; font-weight:700;
}
.modal-btn.confirm{ background:rgba(0,255,168,.12) }
.modal-btn.cancel { opacity:.9 }

/* Border thème modal */
#mentor-modal.theme-blue  .modal-content{ border-color:rgba(0,160,255,.6) }
#mentor-modal.theme-green .modal-content{ border-color:rgba(0,255,160,.6) }
#mentor-modal.theme-purple .modal-content{ border-color:rgba(160,90,255,.6) }
#mentor-modal.theme-red   .modal-content{ border-color:rgba(255,60,60,.6) }

/* CTA */
.signup-btn{
  width:100%; max-width:240px; padding:10px 14px; margin-top:.2rem;
  background:linear-gradient(90deg,#23a7ff,#00ffa8);
  border:1px solid rgba(92,199,255,.45); border-radius:999px; color:#07121e; font-weight:800;
  letter-spacing:.02em; cursor:pointer;
  transition:transform .15s ease, filter .15s ease, opacity .15s ease;
}
.signup-btn:disabled{ opacity:.45; cursor:not-allowed }
.signup-btn:not(:disabled):hover{ transform:translateY(-1px); filter:brightness(1.03) }

/* Desktop */
@media(min-width: 820px){
  .mentor-grid{ grid-template-columns:repeat(4,1fr); gap:16px; max-width:920px }
  .mentor-card img{ max-width:160px }
  .signup-title{ font-size:1.5rem }
  .signup-btn{ max-width:300px; font-size:1.05rem }
}
/* Bouton pour “Activer la voix” */
.sc-voice-nudge{
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vw, 28px);
  transform: translateX(-50%);
  z-index: 99999;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10,16,28,.85);
  color: #eaf6ff;
  font-weight: 700;
  font-size: .95rem;
  backdrop-filter: blur(6px);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  transition: .2s ease;
}

.sc-voice-nudge:hover{
  filter: brightness(1.07);
}

/* ✅ Phase 4 — Alignement & couleurs */
#screen-signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.signup-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: #e6f2ff; /* ✅ couleur claire StarCard */
    text-shadow: 0 0 15px rgba(92,199,255,0.7);
    margin-bottom: 0.5rem;
}

.signup-sub {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #c9e8ff;
    max-width: 320px;
    margin-bottom: 1.2rem;
}

/* ✅ Bouton activable */
#signup-btn {
    margin-top: 1.6rem;
    opacity: 0.35;
    transition: 0.3s;
    cursor: not-allowed;
}
#signup-btn:not([disabled]) {
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(92,199,255,0.7);
}

#screen-signup .sc-hamb {
  display: none !important;
}
