/* =============================================
   LesAteliersPSY — anamnese-portail.css
   Styles du portail d'accueil + formulaire groupe
   ============================================= */

/* ── PORTAIL ACCUEIL ─────────────────────────── */
#lap-portail {
  font-family: var(--font-body, 'Nunito', sans-serif);
  max-width: 860px;
  margin: 0 auto;
  color: var(--text, #2A2826);
}

.portail-hero {
  text-align: center;
  padding: 40px 24px 28px;
  background: linear-gradient(160deg, #F0EDE8 0%, #EBF3F2 100%);
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #E2DBD3;
}

.portail-logo {
  max-height: 70px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.portail-hero h1 {
  font-family: var(--font-head, 'Cormorant Garamond', Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  color: #3D6B67;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}

.portail-intro {
  color: #7A746E;
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ── CARTES DE CHOIX ─────────────────────────── */
.portail-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px 0 0;
}

.portail-card {
  background: #fff;
  border: 2px solid #E2DBD3;
  border-radius: 14px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.portail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #3D6B67;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.portail-card:hover {
  border-color: #3D6B67;
  box-shadow: 0 8px 32px rgba(61,107,103,0.15);
  transform: translateY(-3px);
}

.portail-card:hover::before {
  transform: scaleX(1);
}

.portail-card--groupe::before {
  background: #C4956A;
}

.portail-card--groupe:hover {
  border-color: #C4956A;
  box-shadow: 0 8px 32px rgba(196,149,106,0.18);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.portail-card h2 {
  font-family: var(--font-head, 'Cormorant Garamond', Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  color: #3D6B67;
  margin: 0 0 10px;
}

.portail-card--groupe h2 {
  color: #9E6A3A;
}

.portail-card p {
  color: #7A746E;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.portail-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.portail-card ul li {
  font-size: 13px;
  color: #5A5450;
  padding: 3px 0 3px 18px;
  position: relative;
}

.portail-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #3D6B67;
  font-size: 9px;
  top: 5px;
}

.portail-card--groupe ul li::before {
  color: #C4956A;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3D6B67;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.portail-card:hover .card-btn {
  background: #2E5450;
}

.card-btn--groupe {
  background: #C4956A;
}

.portail-card:hover .card-btn--groupe {
  background: #B0834E;
}

.portail-note {
  text-align: center;
  font-size: 12.5px;
  color: #A89F96;
  margin: 20px 0 4px;
  padding: 10px;
}

/* ── BOUTON RETOUR ───────────────────────────── */
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid #E2DBD3;
  color: #7A746E;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-body, 'Nunito', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.btn-retour:hover {
  background: #F0EDE8;
  color: #2A2826;
  border-color: #C8C0B8;
}

/* ── FORMULAIRE GROUPE — variante terracotta ─── */
.progress-bar-wrap--groupe {
  background: #FDF9F5 !important;
  border-bottom: 1px solid #E8DDD4 !important;
}

.step--groupe .step-header h2 {
  color: #9E6A3A !important;
}

.step--groupe .form-section-title {
  color: #9E6A3A !important;
  border-color: #E8DDD4 !important;
}

.step--groupe .alert-box {
  background: #FDF0E6 !important;
  border-left-color: #C4956A !important;
  color: #9E6A3A !important;
}

/* Pastilles de progression groupe */
.gps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.gps span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2DBD3;
  color: #7A746E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  transition: 0.25s;
}

.gps em {
  font-style: normal;
  font-size: 11px;
  color: #7A746E;
  white-space: nowrap;
}

.gps.active span, .gps.done span {
  background: #C4956A;
  color: #fff;
}

.gps.active em, .gps.done em {
  color: #9E6A3A;
  font-weight: 600;
}

.btn-next--groupe {
  background: #C4956A !important;
  box-shadow: 0 4px 14px rgba(196,149,106,0.25) !important;
}

.btn-next--groupe:hover {
  background: #B0834E !important;
}

.btn-submit--groupe {
  background: linear-gradient(135deg, #3D6B67, #2E5450) !important;
  box-shadow: 0 4px 14px rgba(61,107,103,0.30) !important;
  padding: 12px 28px !important;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  .portail-cards { grid-template-columns: 1fr; gap: 14px; padding: 20px 0 0; }
  .portail-hero { padding: 28px 16px 20px; border-radius: 12px 12px 0 0; }
  .portail-hero h1 { font-size: 26px; }
  .gps em { display: none; }
}
