/* ============================================= */
/* HEROUX31 – Candidature Club (Matching IA)     */
/* ============================================= */
.candidature-section {
  padding: 40px 16px;
  max-width: 980px;
  margin: 0 auto;
}

.candidature-section h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.form-block {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.form-block h3 {
  margin: 0 0 16px 0;
  color: #00f5d4;
  font-size: 18px;
  font-weight: 700;
}

.form-block textarea {
  width: 100%;
  min-height: 160px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius, 12px);
  padding: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.form-block textarea:focus {
  outline: none;
  border-color: #00f5d4;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
}

.form-block button {
  background: linear-gradient(90deg, #00f5d4, #ff2d55);
  color: #000;
  padding: 14px 32px;
  border: none;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 40ms, box-shadow 40ms;
}

.form-block button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.35);
}

.matching-result {
  text-align: center;
  margin-top: 32px;
  padding: 30px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.matching-result:empty {
  display: none;
}

.matching-result .score-circle {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  background: conic-gradient(#00f5d4 calc(var(--score, 5) * 36deg), rgba(255, 255, 255, 0.1) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 0 16px rgba(0, 245, 212, 0.2);
  margin: 0 auto 20px auto;
  position: relative;
}

.matching-result .score-circle::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 9999px;
  background: #0f1318;
  z-index: 1;
}

.matching-result .score-circle span {
  position: relative;
  z-index: 2;
}

.matching-result p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.matching-result button {
  background: rgba(255, 255, 255, 0.1);
  color: #00f5d4;
  border: 1px solid rgba(0, 245, 212, 0.4);
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 40ms;
}

.matching-result button:hover {
  background: rgba(0, 245, 212, 0.15);
}
