/* ===== FORMATION CMA-TAXI — STYLES DES PAGES ===== */

/* ── Portail Page ── */
.portail-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
  padding: 24px;
}

.hero-section {
  text-align: center;
  color: white;
  margin-bottom: 48px;
  max-width: 800px;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.portail-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 500px;
  width: 100%;
}

.portail-card h2 {
  color: #1a3a5c;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: #4b5563;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  margin: 0 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: #6b7280;
}

.tab-btn.active {
  background: #f59e0b;
  color: #1a3a5c;
  font-weight: 600;
}

.tab-content {
  margin-top: 24px;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.info-box h4 {
  color: #1e40af;
  margin-bottom: 8px;
}

.demo-accounts {
  display: grid;
  gap: 16px;
}

.demo-account {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.demo-account h4 {
  color: #1e40af;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.demo-account p {
  margin: 0;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

.info-box p {
  color: #3730a3;
  margin: 0;
}

/* ── Espace Candidat ── */
.ec-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ec-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ec-brand h1 {
  margin: 0;
  color: #1a3a5c;
  font-size: 1.4rem;
}

.ec-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ec-logout {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ec-logout:hover {
  background: #b91c1c;
}

.global-progress {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.progress-header h2 {
  margin: 0;
  color: #1a3a5c;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.blocs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.bloc-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.bloc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.bloc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bloc-icon {
  font-size: 2rem;
}

.bloc-title {
  margin: 0;
  color: #1a3a5c;
  font-size: 1.2rem;
}

.bloc-progress {
  margin-bottom: 16px;
}

.bloc-actions {
  display: flex;
  gap: 12px;
}

.btn-small {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-outline {
  background: white;
  color: #f59e0b;
  border: 2px solid #f59e0b;
}

.btn-outline:hover {
  background: #f59e0b;
  color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .portail-wrap {
    padding: 16px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .portail-card {
    padding: 24px 20px;
  }

  .ec-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .ec-actions {
    justify-content: center;
  }

  .blocs-grid {
    grid-template-columns: 1fr;
  }
}