/* CSS spécifique à la page candidature / suivi (hérite de base.css) */

:root {
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

.hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  margin-top: 110px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-light));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 6px 25px rgba(0,0,0,0.4);
  letter-spacing: 1.5px;
}

.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  text-shadow: 0 3px 15px rgba(0,0,0,0.4);
}

main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 5% 60px;
  width: 100%;
}

.search-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.search-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.search-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.search-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}

.search-form button {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(139,0,0,0.3);
  width: 100%;
  font-family: 'Lato', sans-serif;
}

.search-form button:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(139,0,0,0.4); }

.error-message {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  border-left: 4px solid #dc3545;
  box-shadow: 0 4px 15px rgba(220,53,69,0.2);
}

.candidature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  overflow: hidden;
}

.card-header {
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.status-icon { font-size: 4rem; margin-bottom: 15px; }

.status-text {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.status-date { font-size: 0.9rem; color: var(--text-light); font-weight: 400; }

.card-body { padding: 35px; background: var(--bg-gray); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.info-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.info-item:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

.info-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.info-value { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); word-break: break-word; }

.timeline { margin: 35px 0; padding: 30px; background: white; border-radius: 8px; }

.timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 25px;
  text-align: center;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 35px; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.timeline-step { flex: 1; text-align: center; position: relative; z-index: 1; }

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--border);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.timeline-step.completed .step-circle { border-color: var(--success); background: var(--success); color: white; }
.timeline-step.active .step-circle { border-color: var(--gold); background: var(--gold); color: white; transform: scale(1.1); }

.step-label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.timeline-step.completed .step-label { color: var(--success); }
.timeline-step.active .step-label { color: var(--gold); }

.card-actions {
  padding: 25px 35px;
  background: white;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  background: var(--bg-gray);
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.btn-secondary:hover { background: var(--border); }

@media (max-width: 968px) {
  .hero { min-height: 250px; margin-top: 95px; }
  .hero h1 { font-size: 2.2rem; }
  main { padding: 60px 20px; }
  .search-form { padding: 30px 25px; }
  .card-body { padding: 25px 20px; }
  .info-grid { grid-template-columns: 1fr; gap: 15px; }
  .timeline-steps { flex-direction: column; align-items: center; }
  .timeline-steps::before { left: 50%; top: 0; bottom: 0; width: 3px; height: auto; }
  .timeline-step { margin-bottom: 30px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .card-actions { padding: 20px; }
}
