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

.hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('/assets/recrutement/recrutement_bg.png') center/cover no-repeat fixed;
  margin-top: 110px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  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;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 6px 25px rgba(0,0,0,0.7);
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  text-shadow: 0 3px 15px rgba(0,0,0,0.7);
  max-width: 700px;
  margin: 0 auto;
}

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

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 20px;
  letter-spacing: 1px;
  text-align: center;
}

.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid;
}

.banner-vocal { background: rgba(139,0,0,0.05); border-color: rgba(139,0,0,0.2); }
.banner-micro { background: rgba(255,152,0,0.05); border-color: rgba(255,152,0,0.2); }
.banner-content strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.banner-vocal .banner-content strong { color: var(--primary); }
.banner-micro .banner-content strong { color: #e65100; }
.banner-content p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

form {
  background: white;
  padding: 45px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

fieldset {
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 35px;
  background: var(--bg-gray);
  transition: all 0.3s ease;
}

fieldset:hover { background: #FCFCFC; border-color: var(--gold); }

legend {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--primary);
  padding: 0 15px;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-dark);
}

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

textarea { resize: vertical; min-height: 100px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.checkbox-group { margin-bottom: 20px; }
.checkbox-group label { display: flex; align-items: center; font-weight: 400; margin-bottom: 12px; cursor: pointer; transition: color 0.3s ease; }
.checkbox-group label:hover { color: var(--primary); }
.checkbox-group input[type="checkbox"] { width: auto; margin-right: 10px; margin-bottom: 0; cursor: pointer; accent-color: var(--primary); }

.upload-zone {
  position: relative;
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(139,0,0,0.02);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.upload-zone:hover { background: rgba(139,0,0,0.05); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; padding: 0; border: none; }

.uz-title { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.uz-sub { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.uz-required { display: inline-block; padding: 4px 14px; background: rgba(139,0,0,0.08); border: 1px solid rgba(139,0,0,0.2); border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--primary); }

.file-list { display: none; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.file-list.show { display: flex; }
.file-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 6px; background: rgba(76,175,80,0.06); border: 1px solid rgba(76,175,80,0.2); font-size: 13px; color: #2e7d32; }
.file-item-name { font-weight: 600; word-break: break-all; }
.file-item-size { font-size: 11px; color: #888; white-space: nowrap; margin-left: 10px; flex-shrink: 0; }
.file-count { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: none; }
.file-count.show { display: block; }

.word-counter { display: flex; align-items: center; gap: 12px; margin-top: -14px; margin-bottom: 20px; }
.wc-bar-wrap { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.wc-bar { height: 100%; width: 0; border-radius: 2px; background: var(--primary); transition: width 0.3s ease, background 0.3s ease; }
.wc-label { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-light); transition: color 0.3s ease; }

.reglement-section { background: var(--bg-gray); border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; margin-bottom: 30px; transition: all 0.3s ease; }
.reglement-section:hover { background: #FCFCFC; border-color: var(--gold); }
.reglement-title { font-family: 'Cinzel', serif; font-weight: 600; color: var(--primary); font-size: 1.1rem; letter-spacing: 0.5px; margin-bottom: 16px; display: block; }

button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 16px 35px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(139,0,0,0.3);
  margin-top: 20px;
  font-family: 'Lato', sans-serif;
}

button[type="submit"]:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(139,0,0,0.4); }

.context-box { background: rgba(139,0,0,0.06); border: 1px solid rgba(139,0,0,0.2); border-left: 4px solid var(--primary); border-radius: 6px; padding: 18px 22px; margin-bottom: 30px; font-size: 14px; color: var(--text-dark); line-height: 1.6; }
.context-box strong { color: var(--primary); font-weight: 700; }
.competences-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.comp-tag { background: rgba(139,0,0,0.1); border: 1px solid rgba(139,0,0,0.3); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--primary); }

.form-error-banner {
  background: rgba(139,0,0,0.06);
  border: 1px solid rgba(139,0,0,0.2);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 968px) {
  .hero { min-height: 350px; margin-top: 95px; }
  .hero h1 { font-size: 2.5rem; }
  main { padding: 60px 20px; }
  .section-title { font-size: 2rem; }
  form { padding: 30px 25px; }
  fieldset { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .banners { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  form { padding: 25px 20px; }
  fieldset { padding: 20px 15px; }
  legend { font-size: 1.1rem; }
}
