/* =====================================================================
   WorkDispo — modale de connexion 2026 (demande de Sam du 23/09/2026).
   Version courte de la page /connexion, dans le même esprit.
   Portée : UNIQUEMENT ce qui est à l'intérieur de #sign-in-dialog.wdm-dialog.
   Aucune règle ne sort de la fenêtre, et la feuille n'est chargée que par
   common/modal/sign_modal.html.twig, donc seulement pour les visiteurs non
   connectés des pages qui portent la modale.
   La mécanique est celle du thème : structure d'onglets conservée (le script
   custom.min.js s'en sert pour afficher le contenu), œil du mot de passe du
   thème, lien #reset-password ouvert par magnificPopup.
   ===================================================================== */

#sign-in-dialog.wdm-dialog {
  --wdm-encre: #0F1836;
  --wdm-gris: #5A6685;
  --wdm-ligne: #E1E6F2;
  --wdm-champ: #F7F9FD;
  --wdm-bleu: #2A41E8;

  position: relative;
  max-width: 430px;
  width: auto;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 26px;
  font-family: 'IBM Plex Sans', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Le thème habille .sign-in-form pour l'ancienne fenêtre : on repart à plat. */
#sign-in-dialog.wdm-dialog .sign-in-form {
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: visible;
}
#sign-in-dialog.wdm-dialog .popup-tabs-container {
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
#sign-in-dialog.wdm-dialog .popup-tab-content {
  padding: 0;
  margin: 0;
  background: transparent;
}

/* Barre d'onglet à une seule entrée : conservée dans le HTML pour le script du
   thème, masquée à l'écran et pour les lecteurs d'écran. */
#sign-in-dialog.wdm-dialog .popup-tabs-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- La carte ---------- */
#sign-in-dialog.wdm-dialog .wdm-carte {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #FFFFFF;
  padding: 30px 28px 26px;
  box-shadow: 0 40px 110px rgba(6, 10, 26, .55), 0 0 0 1px rgba(15, 24, 54, .06);
}
#sign-in-dialog.wdm-dialog .wdm-carte::before {
  content: '';
  position: absolute;
  top: -170px; right: -140px;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(42, 65, 232, .10), transparent 68%);
}

/* ---------- Titre ---------- */
#sign-in-dialog.wdm-dialog .wdm-tete {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  /* Place réservée à la croix de fermeture, qui se pose en haut à droite :
     sans cela, elle recouvre la fin du sous-titre. */
  padding-right: 44px;
}
#sign-in-dialog.wdm-dialog .wdm-badge {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 13px;
  background: linear-gradient(160deg, #7C8CFF, #2A41E8);
  box-shadow: 0 8px 20px rgba(42, 65, 232, .35);
  display: flex;
  align-items: center;
  justify-content: center;
}
#sign-in-dialog.wdm-dialog .wdm-tete h3 {
  font-family: 'Space Grotesk', 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--wdm-encre);
  margin: 0;
  padding: 0;
}
#sign-in-dialog.wdm-dialog .wdm-tete p {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--wdm-gris);
}

/* ---------- Champs ---------- */
#sign-in-dialog.wdm-dialog .wdm-form { position: relative; display: grid; gap: 10px; margin: 0; }
#sign-in-dialog.wdm-dialog .wdm-champ { position: relative; display: block; margin: 0; }
#sign-in-dialog.wdm-dialog .wdm-etiquette {
  position: absolute;
  left: 48px; top: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--wdm-gris);
  pointer-events: none;
  z-index: 2;
}
#sign-in-dialog.wdm-dialog .wdm-icone {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid #E6EAF4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
#sign-in-dialog.wdm-dialog input.wdm-input {
  width: 100%;
  height: 56px;
  padding: 21px 16px 7px 48px;
  border-radius: 15px;
  border: 1px solid var(--wdm-ligne);
  background: var(--wdm-champ);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--wdm-encre);
  outline: none;
  margin: 0;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#sign-in-dialog.wdm-dialog input.wdm-input:focus {
  border-color: var(--wdm-bleu);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(42, 65, 232, .12);
}
#sign-in-dialog.wdm-dialog input.wdm-input::placeholder { color: #98A2BC; opacity: 1; }
#sign-in-dialog.wdm-dialog input.wdm-input-mdp { padding-right: 56px; }

/* L'œil du thème : il doit rester enfant direct de .password-container. */
#sign-in-dialog.wdm-dialog .wdm-champ.password-container { display: block; }
#sign-in-dialog.wdm-dialog .password-toogle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--wdm-gris);
  cursor: pointer;
  z-index: 3;
  transition: background-color .2s ease, color .16s ease;
}
#sign-in-dialog.wdm-dialog .password-toogle:hover { background: #EAEEFB; color: var(--wdm-bleu); }

/* ---------- Mot de passe oublié ---------- */
#sign-in-dialog.wdm-dialog .wdm-oubli { display: flex; justify-content: flex-end; }
#sign-in-dialog.wdm-dialog a.wdm-oubli-lien {
  font-size: 13px;
  font-weight: 600;
  color: var(--wdm-bleu);
  margin: 0;
  padding: 0;
  float: none;
}
#sign-in-dialog.wdm-dialog a.wdm-oubli-lien:hover { color: #1E31C0; }

/* ---------- Bouton ---------- */
#sign-in-dialog.wdm-dialog button.wdm-submit {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #4A5EF5 0%, #2A41E8 55%, #2033C9 100%);
  font-family: 'Space Grotesk', 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(42, 65, 232, .4), 0 12px 28px rgba(42, 65, 232, .38);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s cubic-bezier(.2, .7, .3, 1);
}
#sign-in-dialog.wdm-dialog button.wdm-submit:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(42, 65, 232, .5), 0 18px 38px rgba(42, 65, 232, .5);
}
#sign-in-dialog.wdm-dialog .wdm-submit-fleche {
  width: 27px; height: 27px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Pied ---------- */
#sign-in-dialog.wdm-dialog .wdm-pied {
  position: relative;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--wdm-ligne);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--wdm-gris);
  text-align: center;
}
#sign-in-dialog.wdm-dialog .wdm-pied a { font-weight: 600; color: var(--wdm-bleu); white-space: nowrap; }
#sign-in-dialog.wdm-dialog .wdm-pied a:hover { color: #1E31C0; }

/* ---------- Croix de fermeture ---------- */
#sign-in-dialog.wdm-dialog .mfp-close,
#sign-in-dialog.wdm-dialog button.mfp-close {
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  padding: 0;
  border-radius: 11px;
  background: #F2F4FB;
  color: var(--wdm-gris);
  font-size: 22px;
  opacity: 1;
  transition: background-color .2s ease, color .16s ease;
}
#sign-in-dialog.wdm-dialog .mfp-close:hover,
#sign-in-dialog.wdm-dialog button.mfp-close:hover { background: #E6EAF7; color: var(--wdm-encre); opacity: 1; }

/* ---------- Petits écrans ---------- */
@media (max-width: 480px) {
  #sign-in-dialog.wdm-dialog { max-width: 100%; }
  #sign-in-dialog.wdm-dialog .wdm-carte { padding: 26px 18px 22px; border-radius: 22px; }
  #sign-in-dialog.wdm-dialog input.wdm-input { font-size: 16px; } /* < 16px : iOS zoome au focus */
  #sign-in-dialog.wdm-dialog .wdm-tete h3 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  #sign-in-dialog.wdm-dialog * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Les liens qui ouvrent la modale, ajoutés le 23/09/2026 sur la liste
   d'offres et sur la page d'offre. Ils ne remplacent rien : les boutons
   « Créer mon profil » et « Postuler » restent tels quels.
   ===================================================================== */
a.wdm-declencheur {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .16s ease, border-color .2s ease, background-color .2s ease;
}

/* Dans l'encart sombre de la liste d'offres (.wdo-side-card, fond #0F1836). */
a.wdm-declencheur-liste {
  margin-top: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #C3CEF5;
  border: 1px solid rgba(255, 255, 255, .16);
}
a.wdm-declencheur-liste:hover {
  color: #FFFFFF;
  border-color: rgba(160, 176, 255, .55);
  background: rgba(255, 255, 255, .07);
}

/* Sous le bouton « Postuler » de la page d'offre, sur fond clair. */
a.wdm-declencheur-offre {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2A41E8;
  border: 1px solid #E1E6F2;
  background: #FFFFFF;
}
a.wdm-declencheur-offre:hover {
  color: #1E31C0;
  border-color: #C6CFEC;
  background: #F7F9FD;
}
