:root{
  --bg1:#0b1220;
  --bg2:#111b33;
  --card: rgba(255,255,255,.10);   /* + visible */
  --card2: rgba(255,255,255,.16);  /* + visible */
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --line: rgba(255,255,255,.14);   /* + visible */
  --success:#2fe38f;
  --danger:#ff5b6e;
  --accent:#7c5cff;
  --accent2:#21d4fd;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124,92,255,.42), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(33,212,253,.30), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* ===================== */
/* TOPBAR */
/* ===================== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  background: rgba(11,18,32,.62);
  z-index:10;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(33,212,253,.85));
  box-shadow: var(--shadow);
  font-weight:900;
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{font-size:.9rem; color:var(--muted)}

/* ===================== */
/* LAYOUT */
/* ===================== */
.container{max-width:1100px; margin:0 auto; padding:22px}

.hero{
  margin-top:10px;
  padding:22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)); /* + visible */
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 8px 0; font-size:1.6rem}
.hero p{margin:0; color:var(--muted); line-height:1.5}

/* ===================== */
/* GRID + CARDS (accueil quiz) */
/* ===================== */
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr;} }

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.10); /* + visible */
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}

.card-head{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.chip{
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.10);
  color: var(--text);
  font-size:.85rem;
}

/* chip thème un peu plus visible */
.chip-soft{
  background: rgba(124,92,255,.28);
  border-color: rgba(124,92,255,.55);
}

.card-title{margin:0 0 6px 0; font-size:1.15rem}
.card-text{margin:0; color:var(--muted); line-height:1.45; min-height:44px}

.card-foot{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.meta{color:var(--muted); font-size:.9rem}

/* ===================== */
/* BUTTONS */
/* ===================== */
.primary-btn, .ghost-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
}
.primary-btn{
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(33,212,253,1));
  color:#081022;
  box-shadow: 0 16px 40px rgba(124,92,255,.25);
}
.primary-btn:hover{filter:brightness(1.03)}
.ghost-btn{
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,.10);
}
.ghost-btn:hover{ background: rgba(255,255,255,.14); }

/* ===================== */
/* FOOTER */
/* ===================== */
.footer{
  padding:26px 22px;
  color: var(--muted);
  text-align:center;
}

/* ========================================================= */
/* ===============  STYLES PAGE QUIZ  ======================= */
/* ========================================================= */

/* Conteneur “carte” du quiz (si tu utilises .hero pour le quiz, ça marche aussi) */
.quiz-card{
  padding:22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

/* -------- Champ nom/prénom (textarea) -------- */
.input-eleve{
  width:100%;
  min-height:68px;          /* + haut */
  resize: vertical;
  padding:12px 14px;
  font-size:1rem;
  line-height:1.35;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: var(--text);
  outline: none;
}
.input-eleve:focus{
  border-color: rgba(33,212,253,.65);
  box-shadow: 0 0 0 3px rgba(33,212,253,.15);
}
.input-eleve::placeholder{
  color: rgba(255,255,255,.60);
}

/* -------- Réponses : une par ligne -------- */
/* Mets tes boutons de réponses dans un conteneur class="answers" */
.answers{
  display:flex;
  flex-direction:column;
  gap:12px;               /* espace entre choix */
  margin-top: 10px;
}

/* Style générique des boutons de réponse */
.answer-btn{
  width:100%;
  text-align:left;
  padding:14px 16px;
  font-size:1rem;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.answer-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

/* Etat sélectionné (si ton JS ajoute .is-selected) */
.answer-btn.is-selected{
  border-color: rgba(33,212,253,.75);
  box-shadow: 0 0 0 3px rgba(33,212,253,.14);
}

/* Bonus : états correction (si ton code ajoute ces classes) */
.answer-btn.is-correct{
  border-color: rgba(47,227,143,.75);
  box-shadow: 0 0 0 3px rgba(47,227,143,.12);
}
.answer-btn.is-wrong{
  border-color: rgba(255,91,110,.75);
  box-shadow: 0 0 0 3px rgba(255,91,110,.12);
}
