.quiz-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
@import url('https://fonts.googleapis.com/css?family=Audiowide:regular|Open+Sans:300,400,600,700');
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --line: #d6d6d6;
  --text: #303030;
  --muted: #666666;
  --primary: #0c71c3;
  --accent: #6497c1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Open Sans", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  color: var(--text);
}
.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.brand-logo {
  width: 110px;
  height: auto;
  display: block;
}
.brand-name {
  font-family: "Audiowide", "Open Sans", sans-serif;
  color: #0c71c3;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
h1 {
  margin: 0;
  color: #0c71c3;
  font-family: "Audiowide", "Open Sans", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.subtitle {
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.desc-jeu {
  margin: 10px 0 0 0 !important;
  color: #232b3a !important;
  font-size: 1.08rem !important;
  font-weight: 500;
}
.desc-jeu:last-of-type {
  color: #888 !important;
  font-size: 0.99rem !important;
  font-weight: 400;
}
.quiz-panel {
  background: linear-gradient(180deg, #181f2a 0%, #232b3a 100%);
  border: 3px solid var(--primary);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(12,113,195,0.18);
  padding: 36px 18px 32px 18px;
  min-height: 320px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.quiz-q {
  background: #232b3a;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(12,113,195,0.18);
  padding: 28px 18px 18px 18px;
  margin-bottom: 18px;
  min-width: 320px;
  max-width: 420px;
  animation: pop-in 0.4s cubic-bezier(.6,-0.28,.74,.05);
  position: relative;
  color: #fff;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.quiz-choice {
  font-size: 1.15rem;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f6f8fb 60%, #eaf4fb 100%);
  border: 2px solid var(--line);
  box-shadow: 0 2px 8px rgba(100,151,193,0.07);
  transition: background 0.18s, border 0.18s, transform 0.12s;
}
.quiz-choice:active {
  background: #d6eaff;
  border-color: var(--primary);
  transform: scale(0.97);
}
.quiz-choice.selected {
  background: #c6e6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.quiz-timer {
  font-family: 'Audiowide', 'Open Sans', sans-serif;
  font-size: 3.2rem;
  color: #ff2d2d;
  background: linear-gradient(90deg, #2a0c0c 60%, #c30c0c 100%);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 0 0 10px #232b3a, 0 4px 18px rgba(195,12,12,0.18);
  border: 6px solid #fff;
  animation: pulse-timer 1s infinite;
  z-index: 2;
}

@keyframes pulse-timer {
  0%, 100% { box-shadow: 0 0 0 6px #eaf4fb, 0 4px 18px rgba(12,113,195,0.10); }
  50% { box-shadow: 0 0 0 16px #c6e6ff, 0 4px 28px rgba(12,113,195,0.18); }
}

@keyframes pop-in {
  from { transform: scale(0.7) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.quiz-result {
  text-align: center;
  padding: 32px 0 18px 0;
  color: #fff !important;
  background: linear-gradient(180deg, #181f2a 0%, #232b3a 100%) !important;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(12,113,195,0.10);
}
.quiz-result h2, .quiz-result p, .quiz-result strong {
  color: #fff !important;
}
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 10px;
  color: #fff;
}
.btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn:not(:disabled) {
  cursor: pointer;
}
.primary {
  background: var(--primary);
  color: #ffffff;
}
.primary:not(:disabled):hover {
  background: #6497c1;
}
.secondary {
  background: var(--accent);
  color: #ffffff;
}
.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.hidden { display: none; }
.topbar-actions { display: flex; gap: 8px; }
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  max-width: 560px;
}
dialog::backdrop {
  background: rgba(5, 8, 12, 0.55);
}
.admin-settings { margin-top: 12px; }
textarea { width: 100%; font-family: inherit; border-radius: 8px; border: 1px solid var(--line); padding: 8px; min-height: 80px; }
input[type="number"] { width: 80px; }
