/* Modal de sélection d'agents Praxia (Solo / Trio) */
.aselect-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9000;
  padding: 24px;
  animation: aselect-fade 0.25s ease;
}
.aselect-overlay.is-open { display: flex; }
@keyframes aselect-fade { from { opacity: 0 } to { opacity: 1 } }

.aselect-modal {
  background: #F5F0E8;
  color: #1A1A1A;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: aselect-slide 0.3s cubic-bezier(.2,.9,.3,1);
}
@keyframes aselect-slide { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.aselect-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.aselect-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 700; margin: 0;
}
.aselect-header .sub {
  font-size: 14px; color: #6B6B6B; margin-top: 4px;
}
.aselect-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(26,26,26,0.08);
  color: #1A1A1A; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.aselect-close:hover { background: rgba(26,26,26,0.16); }

.aselect-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.aselect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .aselect-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 460px) { .aselect-grid { grid-template-columns: 1fr } }

.aselect-card {
  border: 2px solid rgba(26,26,26,0.10);
  border-radius: 14px;
  padding: 14px 14px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: white;
  transition: all 0.2s;
  position: relative;
}
.aselect-card:hover { border-color: #C45A2F; transform: translateY(-2px); }
.aselect-card.is-selected {
  border-color: #C45A2F;
  background: linear-gradient(180deg, #FFF5EE 0%, white 100%);
  box-shadow: 0 8px 24px rgba(196,90,47,0.20);
}
.aselect-card .check {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #C45A2F; color: white;
  display: none; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.aselect-card.is-selected .check { display: flex; }

.aselect-card img {
  width: 90px; height: 90px;
  object-fit: cover; object-position: top center;
  border-radius: 50%;
  margin-bottom: 8px;
  background: rgba(26,26,26,0.06);
}
.aselect-card .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 18px;
}
.aselect-card .role {
  font-size: 12px; color: #6B6B6B;
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 2px;
}
.aselect-card .desc {
  font-size: 12px; color: #444;
  margin-top: 8px; line-height: 1.4;
}

.aselect-footer {
  border-top: 1px solid rgba(26,26,26,0.08);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  background: white;
}
.aselect-counter {
  font-size: 14px; color: #6B6B6B;
}
.aselect-counter strong {
  color: #1A1A1A; font-weight: 700;
}
.aselect-cta {
  background: #1A1A1A;
  color: #F5F0E8;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.aselect-cta:disabled {
  background: rgba(26,26,26,0.18);
  color: white;
  cursor: not-allowed;
}
.aselect-cta:not(:disabled):hover { background: #C45A2F; }

/* Form de coordonnées (étape 2) */
.aselect-form {
  display: none;
  flex-direction: column; gap: 14px;
  padding: 6px 0;
}
.aselect-form.is-active { display: flex; }
.aselect-grid.is-hidden { display: none; }

.aselect-form .recap {
  background: #1A1A1A; color: #F5F0E8;
  padding: 16px 20px; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
}
.aselect-form .recap strong { color: #E8B894; }
.aselect-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 600; color: #444;
}
.aselect-form input, .aselect-form textarea {
  padding: 12px 14px;
  border: 1.5px solid rgba(26,26,26,0.15);
  border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: white;
}
.aselect-form input:focus, .aselect-form textarea:focus {
  outline: none; border-color: #C45A2F;
}
