/* Offres du SIRH (js/carrieres-sirh.js) : cartes de la page Carrières,
   page offre, formulaire de candidature et suivi. Couleurs du site :
   cramoisi #dc143c (action), graphite #2a2d2f (texte). */

[hidden] {
  display: none !important;
}

/* --- Cartes de la grille ------------------------------------------------ */
.iag-offre-texte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.iag-offre-sirh .rt-sub-text {
  white-space: nowrap;
}
.iag-offre-titre {
  min-height: 3.5em;
  display: flex;
  align-items: flex-start;
}
.iag-offre-entite {
  margin-top: -0.5rem;
  color: #5b5f62;
  font-size: 0.95rem;
}
.iag-offre-sans-affiche {
  object-fit: contain;
  padding: 25%;
  background: #2a2d2f;
}
.iag-bouton-offre,
.iag-envoyer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 10px 22px;
  border: 1px solid #fff;
  border-radius: 32px;
  background: linear-gradient(90deg, #dc143c 0%, #ff6262 100%);
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.14);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.iag-bouton-offre .rt-button-text {
  color: #fff;
}
.iag-envoyer:disabled {
  opacity: 0.6;
  cursor: wait;
}
.iag-bouton-offre:focus-visible,
.iag-envoyer:focus-visible,
.iag-lien-bouton:focus-visible,
.iag-offre-sirh a:focus-visible {
  outline: 3px solid #2a2d2f;
  outline-offset: 3px;
}

/* --- Page offre ----------------------------------------------------------- */
.iag-html p + p {
  margin-top: 1rem;
}
.iag-html ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}
.iag-texte {
  white-space: pre-line;
}
.iag-chargement {
  color: #5b5f62;
}
.iag-message {
  padding: 1.25rem 1.5rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  font-size: 1.1rem;
}
.iag-message-erreur {
  border-color: #dc143c;
}

/* --- Formulaire ----------------------------------------------------------- */
.rt-job-form input[type='text'],
.rt-job-form input[type='email'],
.rt-job-form input[type='tel'],
.rt-job-form input[type='url'],
.rt-job-form input[type='date'],
.rt-job-form input[type='file'],
.rt-job-form select,
.rt-job-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5d7d9;
  border-radius: 8px;
  background: #fff;
  color: #2a2d2f;
  font-family: inherit;
  font-size: 1rem;
}
.rt-job-form input:focus-visible,
.rt-job-form select:focus-visible,
.rt-job-form textarea:focus-visible {
  outline: 2px solid #dc143c;
  outline-offset: 1px;
  border-color: #dc143c;
}
.rt-job-form [aria-invalid='true'] {
  border-color: #dc143c;
}
.iag-requis,
.iag-erreur {
  color: #dc143c;
}
.iag-erreur:empty {
  display: none;
}
.iag-aide {
  color: #5b5f62;
  font-size: 0.9rem;
}
.iag-piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.iag-references {
  margin: 0;
  padding: 0;
  border: 0;
}
.iag-references legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.iag-reference {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}
.iag-lien-bouton {
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: #dc143c;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.iag-consentement label {
  font-weight: 400;
}
.iag-consentement input {
  margin-right: 0.5rem;
}
.iag-etat {
  font-weight: 600;
}
.iag-etat-erreur {
  color: #dc143c;
}
.iag-lien-suivi {
  margin-top: 1rem;
}

/* --- Suivi ------------------------------------------------------------------ */
.iag-suivi-entete {
  color: #5b5f62;
  font-size: 1.05rem;
}
.iag-parcours {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
}
.iag-parcours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #ececec;
  color: #8a8e91;
}
.iag-parcours li:first-child {
  border-top: 0;
}
.iag-parcours li.iag-passe {
  color: #2a2d2f;
}
.iag-parcours li.iag-actuel {
  background: #dc143c;
  color: #fff;
  font-weight: 700;
}
.iag-badge {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: #dc143c;
  font-size: 0.85rem;
}
.iag-coche {
  color: #1e7e34;
  font-weight: 700;
}

@media (max-width: 767px) {
  .iag-reference {
    grid-template-columns: 1fr;
  }
}
