/* TeamKit — page /request (v1.0.0, 7 sept. 2026)
   Sélecteur de jeux en cartes + formulaire en 5 étapes + colonne « force du dossier ». */

.req-hero .page-subtitle { margin-bottom: 1rem; }
.req-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 0.75rem; }
.req-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  border-radius: 99px; padding: 6px 12px; font-size: 0.82rem; color: var(--text-secondary);
}
.req-pill strong { color: var(--text-primary); }
.req-pill.is-ok { border-color: rgba(0,255,136,0.4); }
.req-pill.is-full { border-color: rgba(255,170,0,0.5); }

.req-section { padding-top: 1.5rem; }
.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.req-main { min-width: 0; }
.req-form { max-width: none; }

/* ---- Fil d'étapes ---- */
.req-steps {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.req-steps li {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color);
  color: var(--text-muted); font-size: 0.82rem; cursor: default; transition: all .2s;
}
.req-steps li.is-done { cursor: pointer; color: var(--text-secondary); border-color: rgba(0,255,136,0.35); }
.req-steps li.is-done:hover { background: var(--bg-tertiary); }
.req-steps li.is-active { color: var(--text-primary); border-color: var(--accent-primary); background: rgba(0,240,255,0.08); }
.req-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); font-weight: 700; font-size: 0.78rem;
}
.req-steps li.is-active .req-step-num { background: var(--accent-primary); color: #0a0a0f; }
.req-steps li.is-done .req-step-num { background: var(--accent-success); color: #0a0a0f; }
.req-steps li.is-done .req-step-num::before { content: '✓'; }
.req-steps li.is-done .req-step-num { font-size: 0; }
.req-steps li.is-done .req-step-num::before { font-size: 0.78rem; }

/* ---- Étapes du formulaire ---- */
.req-step { display: none; }
.req-step.is-active { display: block; animation: reqIn .25s ease; }
@keyframes reqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.req-form .form-section-title {
  color: var(--accent-primary); font-size: 0.78rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin: 0 0 14px;
}
.req-form .form-section-title span { color: var(--text-muted); text-transform: none; font-weight: 400; letter-spacing: 0; }
.req-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.req-nav .btn { min-width: 140px; }
.req-nav-final .btn-lg { flex: 1; }
.req-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.88rem; line-height: 1.5;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.35); color: var(--text-secondary);
}
.req-note.is-full { background: rgba(255,170,0,0.08); border-color: rgba(255,170,0,0.45); }
.req-note-warn { background: rgba(255,68,68,0.08); border-color: rgba(255,68,68,0.4); }
.req-note strong { color: var(--text-primary); }

/* ---- Sélecteur de jeux ---- */
.req-picker-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.req-picker-bar .form-input { max-width: none; }
.req-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.req-chip {
  background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary);
  border-radius: 99px; padding: 5px 11px; font-size: 0.8rem; cursor: pointer; transition: all .15s; font-family: inherit;
}
.req-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.req-chip.is-active { background: rgba(0,240,255,0.12); border-color: var(--accent-primary); color: var(--text-primary); }
.req-chip small { color: var(--text-muted); margin-left: 3px; }

.req-games {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  max-height: 420px; overflow-y: auto; padding: 2px; scrollbar-width: thin;
}
.game-tag {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary);
  border-radius: 10px; padding: 10px 10px; font-size: 0.85rem; line-height: 1.25; cursor: pointer;
  transition: all .15s; user-select: none; min-height: 46px;
}
.game-tag:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); transform: translateY(-1px); }
.game-tag .gt-icon { font-size: 1.15rem; flex-shrink: 0; }
.game-tag .gt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game-tag .gt-badge { font-size: 0.68rem; color: var(--accent-success); white-space: nowrap; flex-shrink: 0; }
.game-tag-full { opacity: 0.78; }
.game-tag-full .gt-badge { color: var(--accent-warning); }
.game-tag-other { border-style: dashed; color: var(--text-secondary); }
.game-tag-selected, .game-tag-selected:hover {
  border-color: var(--accent-primary); background: rgba(0,240,255,0.14);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 14px rgba(0,240,255,0.25); opacity: 1;
}
.game-tag-selected::after { content: '✓'; position: absolute; top: 4px; right: 7px; font-size: 0.7rem; color: var(--accent-primary); font-weight: 700; }
.game-tag[hidden] { display: none; }
.req-empty { color: var(--text-muted); font-size: 0.88rem; text-align: center; padding: 18px 0 6px; }
.req-link { background: none; border: 0; color: var(--accent-primary); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.req-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.req-sr-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }

/* ---- Communauté ---- */
.commu-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.commu-opt {
  cursor: pointer; background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 14px 8px; text-align: center; transition: all .15s;
}
.commu-opt:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); }
.commu-opt.is-active { border-color: var(--accent-primary); background: rgba(0,240,255,0.10); box-shadow: 0 0 0 1px var(--accent-primary); }
.commu-ico { font-size: 1.5rem; }
.commu-lbl { color: var(--text-primary); font-size: 0.88rem; margin-top: 4px; }
.commu-pts { color: var(--accent-success); font-size: 0.72rem; margin-top: 3px; font-weight: 600; }

/* ---- Checklist ---- */
.req-cl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.req-cl-head .form-hint { margin: 0; }
.req-cl-head strong { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.req-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
  background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 10px; transition: all .15s;
}
.cl-item:hover { border-color: rgba(0,240,255,0.5); }
.cl-item.is-checked { border-color: var(--accent-primary); background: rgba(0,240,255,0.07); }
.cl-item input { margin-top: 3px; accent-color: var(--accent-primary); }
.cl-t { font-weight: 500; font-size: 0.88rem; }
.cl-d { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

.req-recap {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border-color); font-size: 0.86rem; line-height: 1.6; color: var(--text-secondary);
}
.req-recap.has-content { display: block; }
.req-recap b { color: var(--text-primary); }
.req-recap .req-recap-row { display: flex; gap: 8px; }
.req-recap .req-recap-row span:first-child { color: var(--text-muted); min-width: 92px; }

/* ---- Colonne de droite ---- */
.req-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.req-card { background: var(--bg-card, var(--bg-secondary)); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; }
.req-card-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.req-card-title span { font-size: 0.78rem; font-weight: 600; color: var(--accent-warning); }
.req-score { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--text-primary); letter-spacing: -1px; }
.req-score small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.req-bar { height: 8px; background: var(--bg-tertiary); border-radius: 99px; overflow: hidden; margin: 10px 0 12px; }
.req-bar > div { height: 100%; width: 15%; background: var(--accent-warning); border-radius: 99px; transition: width .35s, background .35s; }
.req-tips-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 6px; }
.req-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.req-tips li { display: flex; gap: 8px; align-items: baseline; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.req-tips li b { color: var(--accent-success); font-weight: 700; white-space: nowrap; min-width: 34px; }
.req-tips li.is-top { color: var(--text-primary); }
.req-tips li.is-done { color: var(--accent-success); }
.req-tips:empty::before { content: '🔥 Dossier complet, tu mets toutes les chances de ton côté.'; font-size: 0.82rem; color: var(--accent-success); }

.req-capa { background: linear-gradient(135deg, rgba(255,170,0,0.14), rgba(255,170,0,0.04)); border-color: rgba(255,170,0,0.45); font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); }
.req-capa b { color: var(--text-primary); display: block; margin-bottom: 4px; }

.req-next-list { list-style: none; margin: 0; padding: 0; counter-reset: rq; display: flex; flex-direction: column; gap: 10px; }
.req-next-list li { display: grid; grid-template-columns: 24px 1fr; gap: 0 10px; align-items: start; counter-increment: rq; }
.req-next-list li::before {
  content: counter(rq); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,240,255,0.12); color: var(--accent-primary); font-weight: 700; font-size: 0.78rem;
}
.req-next-list li b { display: block; font-size: 0.86rem; color: var(--text-primary); font-weight: 600; }
.req-next-list li span { display: block; grid-column: 2; font-size: 0.78rem; color: var(--text-muted); margin-top: -2px; }
.req-support { display: block; margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.req-support:hover { color: var(--text-primary); }

/* ---- FAQ ---- */
.req-faq-section { background: var(--bg-secondary); }
.faq-seo { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-question { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-primary); transition: transform 0.2s; }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); line-height: 1.6; }
.faq-answer a { color: var(--accent-primary); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .req-layout { grid-template-columns: 1fr; }
  .req-aside { position: static; order: -1; }
  .req-aside .req-next, .req-tips-title, .req-tips { display: none; }
  .req-dossier { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 12px 14px; }
  .req-dossier .req-card-title { grid-column: 1 / -1; margin-bottom: 2px; }
  .req-score { font-size: 1.8rem; }
  .req-bar { margin: 0; }
}
@media (max-width: 640px) {
  .req-steps { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .req-steps li { padding: 6px; justify-content: center; }
  .req-step-lbl { display: none; }
  .req-steps li.is-active .req-step-lbl { display: inline; }
  .req-grid-2, .req-checklist { grid-template-columns: 1fr; }
  .commu-options { grid-template-columns: 1fr; }
  .commu-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; }
  .commu-lbl { margin: 0; flex: 1; }
  .commu-pts { margin: 0; }
  .req-games { grid-template-columns: 1fr 1fr; max-height: 360px; }
  .req-nav .btn { min-width: 0; flex: 1; }
  .faq-question { padding: 1rem; font-size: 0.95rem; }
  .faq-answer { padding: 0 1rem 1rem; }
}
@media (max-width: 640px) {
  /* Tuiles étroites : la pastille devient un point de couleur */
  .game-tag { padding: 10px 8px; gap: 6px; }
  .game-tag .gt-badge { width: 8px; height: 8px; border-radius: 50%; background: currentColor; font-size: 0; }
}
