/* Redesign R0 (03/11/2026) : connexion du salarié (S01) et ses trois fenêtres (F01 à F03), d'après composants-v2.dc.html et les planches v3 du groupe 1.
   Chargée par connexion-salarie.html seule, après main-app.css (qui n'est pas modifiée) et jetons.css, dont elle n'emploie que les variables.
   Tout est écrit sous html#connexion_salarie : aucune autre page ne peut en être touchée. */

@font-face { font-family: 'Overpass'; src: url('../fonts/overpass/Overpass-Regular.woff2') format('woff2'), url('../fonts/overpass/Overpass-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Overpass'; src: url('../fonts/overpass/Overpass-SemiBold.woff2') format('woff2'), url('../fonts/overpass/Overpass-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Overpass'; src: url('../fonts/overpass/Overpass-Bold.woff2') format('woff2'), url('../fonts/overpass/Overpass-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Overpass'; src: url('../fonts/overpass/Overpass-ExtraBold.woff2') format('woff2'), url('../fonts/overpass/Overpass-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

html#connexion_salarie body {
  font-family: var(--zc-police);
  color: var(--zc-texte);
  background-color: var(--zc-surface);
}
html#connexion_salarie label,
html#connexion_salarie b {
  font-family: var(--zc-police);
}

/* la page : le conteneur qui défile (.wrapper) et #body-content restent ceux de la base du coach */
html#connexion_salarie #body-content,
html#connexion_salarie.offline #body-content {
  max-width: 600px;
  padding: 0;
}
html#connexion_salarie .zc-entree {
  background: var(--zc-fond);
  border-radius: 0 0 32px 32px;
  padding: calc(var(--zc-espace-5) + env(safe-area-inset-top)) var(--zc-espace-6) var(--zc-espace-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--zc-espace-4);
}
html#connexion_salarie .zc-entree-logo {
  background: var(--zc-surface);
  border-radius: var(--zc-rayon-pilule);
  padding: 14px 26px;
  box-shadow: 0 4px 18px rgba(82, 3, 49, .08);
}
html#connexion_salarie .zc-entree-logo img {
  display: block;
  width: 150px;
}
html#connexion_salarie .zc-entree-titre {
  margin: 0;
  font-weight: var(--zc-graisse-titre);
  font-size: var(--zc-taille-titre-1);
  line-height: var(--zc-interligne-serre);
  color: var(--zc-prune);
  text-align: center;
}
html#connexion_salarie .zc-contenu {
  padding: var(--zc-espace-6) var(--zc-espace-6) calc(var(--zc-espace-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--zc-espace-4);
}
html#connexion_salarie .zc-contenu form {
  margin: 0;
}

/* champs */
html#connexion_salarie .form-group {
  margin-bottom: var(--zc-espace-4);
}
html#connexion_salarie .form-group label {
  display: block;
  margin: 0 0 6px;
  padding-left: 18px;
  font-weight: var(--zc-graisse-forte);
  font-size: var(--zc-taille-libelle);
  line-height: var(--zc-interligne-titre);
  color: var(--zc-texte-accent);
}
html#connexion_salarie .form-control {
  height: var(--zc-hauteur-champ);
  padding: 0 20px;
  font-family: var(--zc-police);
  font-size: var(--zc-taille-corps);
  color: var(--zc-texte);
  background: var(--zc-prune-voile);
  border: 1.5px solid var(--zc-bordure);
  border-radius: var(--zc-rayon-pilule);
  box-shadow: none;
  transition: background-color var(--zc-duree-courte) var(--zc-courbe), border-color var(--zc-duree-courte) var(--zc-courbe), box-shadow var(--zc-duree-courte) var(--zc-courbe);
}
html#connexion_salarie .form-control::placeholder {
  color: var(--zc-texte-secondaire);
  opacity: 1;
}
html#connexion_salarie .form-control:not(:placeholder-shown),
html#connexion_salarie .form-control.is-valid {
  background: var(--zc-surface);
  border-color: var(--zc-bordure);
}
html#connexion_salarie .form-control:focus,
html#connexion_salarie .form-control.is-valid:focus {
  background: var(--zc-surface);
  border: 2px solid var(--zc-prune);
  box-shadow: var(--zc-anneau-focus);
  outline: 0;
}
html#connexion_salarie .form-control.is-invalid,
html#connexion_salarie .form-control.is-invalid:focus {
  padding-right: 44px;
  background: var(--zc-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%23C21F3A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'%3E%3C/circle%3E%3Cpath d='M12 7v6.5'%3E%3C/path%3E%3Ccircle cx='12' cy='16.8' r='.6' fill='%23C21F3A' stroke='none'%3E%3C/circle%3E%3C/svg%3E") no-repeat right 14px center / 22px;
  border: 2px solid var(--zc-erreur);
  box-shadow: none;
}
html#connexion_salarie .invalid-feedback {
  margin-top: 6px;
  padding-left: 18px;
  font-size: var(--zc-taille-libelle);
  font-weight: var(--zc-graisse-demi);
  line-height: var(--zc-interligne-titre);
  color: var(--zc-erreur);
}

/* mot de passe : l'œil est posé dans le champ, à droite ; le message d'erreur passe dessous */
html#connexion_salarie .input-group.input-group-password {
  position: relative;
}
html#connexion_salarie .input-group.input-group-password > .form-control {
  flex: 1 1 100%;
  width: 100%;
  padding-right: 56px;
  border-radius: var(--zc-rayon-pilule);
}
html#connexion_salarie .input-group.input-group-password > .form-control.is-invalid {
  background-image: none;
}
html#connexion_salarie .input-group.input-group-password .input-group-addon {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 4;
  width: var(--zc-toucher-min);
  height: var(--zc-toucher-min);
  padding: 0;
}
html#connexion_salarie .zc-picto,
html#connexion_salarie .input-group.input-group-password .input-group-addon i {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: var(--zc-prune);
  -webkit-mask: var(--zc-picto) center / contain no-repeat;
  mask: var(--zc-picto) center / contain no-repeat;
}
html#connexion_salarie .input-group.input-group-password .input-group-addon i::before {
  content: none;
}
html#connexion_salarie .input-group-addon i.fa-eye-slash { --zc-picto: url('../img/pictogrammes-v2/oeil-masquer.svg'); }
html#connexion_salarie .input-group-addon i.fa-eye { --zc-picto: url('../img/pictogrammes-v2/oeil-afficher.svg'); }
html#connexion_salarie .zc-picto-fermer { --zc-picto: url('../img/pictogrammes-v2/fermer.svg'); width: 24px; height: 24px; }
html#connexion_salarie .zc-picto-info { --zc-picto: url('../img/pictogrammes-v2/info.svg'); }
html#connexion_salarie .zc-picto-courriel { --zc-picto: url('../img/pictogrammes-v2/courriel.svg'); }
html#connexion_salarie .zc-picto-erreur { --zc-picto: url('../img/pictogrammes-v2/erreur.svg'); }
/* hors ligne : image intégrée, pour s'afficher quand le serveur ne répond pas (le fichier de service ne garde pas les images) */
html#connexion_salarie .zc-picto-hors-ligne { --zc-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9a14 14 0 0 1 5-3M21.5 9a14 14 0 0 0-8.7-3.4M5.5 12.5a9 9 0 0 1 3.6-2.3M18.5 12.5a9 9 0 0 0-2.4-1.7M9 16a4.5 4.5 0 0 1 6 0'%3E%3C/path%3E%3Ccircle cx='12' cy='19.3' r='.8' fill='currentColor' stroke='none'%3E%3C/circle%3E%3Cpath d='m3 3 18 18'%3E%3C/path%3E%3C/svg%3E"); }

/* boutons et liens */
html#connexion_salarie .zc-bouton-principal {
  width: 100%;
  height: var(--zc-hauteur-bouton);
  padding: 0 var(--zc-espace-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--zc-espace-2);
  font-family: var(--zc-police);
  font-weight: var(--zc-graisse-forte);
  font-size: var(--zc-taille-question);
  line-height: 1.25;
  text-align: center;
  color: var(--zc-texte-inverse);
  background: var(--zc-prune);
  border: 0;
  border-radius: var(--zc-rayon-pilule);
  box-shadow: var(--zc-ombre-bouton);
  cursor: pointer;
  transition: background-color var(--zc-duree-courte) var(--zc-courbe), box-shadow var(--zc-duree-courte) var(--zc-courbe);
}
html#connexion_salarie .zc-bouton-principal:focus {
  outline: 0;
}
html#connexion_salarie .zc-bouton-principal:focus-visible {
  box-shadow: var(--zc-anneau-focus);
}
html#connexion_salarie .zc-bouton-principal:active {
  background: var(--zc-prune-fonce);
  box-shadow: none;
}
html#connexion_salarie .zc-bouton-principal:disabled {
  color: var(--zc-desactive-texte);
  background: var(--zc-desactive-fond);
  box-shadow: none;
  cursor: default;
}
html#connexion_salarie .zc-bouton-principal.zc-attente {
  color: var(--zc-texte-inverse);
  background: var(--zc-prune);
  box-shadow: var(--zc-ombre-bouton);
}
html#connexion_salarie .zc-bouton-principal.zc-attente::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: var(--zc-blanc);
  animation: zc-tourne .8s linear infinite;
}
@keyframes zc-tourne {
  to { transform: rotate(360deg); }
}
html#connexion_salarie .zc-liens {
  margin-top: var(--zc-espace-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}
html#connexion_salarie .zc-bouton-texte {
  min-height: var(--zc-toucher-min);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--zc-taille-corps);
  font-weight: var(--zc-graisse-demi);
  color: var(--zc-prune);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* bandeaux */
html#connexion_salarie .zc-bandeau {
  display: flex;
  padding: var(--zc-espace-3) var(--zc-espace-4);
  gap: 10px;
  align-items: flex-start;
  font-size: var(--zc-taille-libelle);
  line-height: 1.45;
  text-align: left;
  border-radius: var(--zc-rayon-carte);
}
html#connexion_salarie .zc-bandeau-serveur {
  color: var(--zc-texte-inverse);
  background: var(--zc-prune);
}
html#connexion_salarie .zc-bandeau-serveur .zc-picto {
  background-color: var(--zc-texte-inverse);
}
html#connexion_salarie .zc-bandeau-avertissement {
  color: var(--zc-prune);
  background: var(--zc-avertissement-fond);
}

/* message flottant de réussite de F02 (« Mail de réinitialisation envoyé ») : bandeau de succès. Sa couleur est fixée dans le programme, d'où !important. */
html#connexion_salarie .jq-toast-single {
  padding: var(--zc-espace-3) var(--zc-espace-4);
  font-family: var(--zc-police);
  font-size: var(--zc-taille-libelle);
  line-height: 1.45;
  text-transform: none;
  color: var(--zc-texte) !important;
  background-color: var(--zc-succes-fond) !important;
  border-radius: var(--zc-rayon-carte);
}

/* fenêtres F01 à F03 */
html#connexion_salarie .modal-backdrop {
  background-color: #1F2937;
}
html#connexion_salarie .modal-backdrop.show {
  opacity: .55;
}
html#connexion_salarie .modal-dialog {
  margin: var(--zc-espace-5);
}
html#connexion_salarie .modal-dialog-centered {
  min-height: calc(100% - 2 * var(--zc-espace-5));
}
@media (min-width: 576px) {
  html#connexion_salarie .modal-dialog {
    margin: 1.75rem auto;
  }
  html#connexion_salarie .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}
html#connexion_salarie .modal-content {
  position: relative;
  padding: var(--zc-espace-6) var(--zc-espace-5) var(--zc-espace-5);
  background: var(--zc-surface);
  border: 0;
  border-radius: var(--zc-rayon-feuille);
  box-shadow: var(--zc-ombre-fenetre);
}
html#connexion_salarie .modal-header {
  position: static;
  padding: 0;
  border: 0;
}
html#connexion_salarie .modal-header .close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: var(--zc-toucher-min);
  height: var(--zc-toucher-min);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-shadow: none;
}
html#connexion_salarie .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--zc-espace-4);
}
html#connexion_salarie .modal-body > form {
  width: 100%;
}
html#connexion_salarie .zc-fenetre-icone {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--zc-prune-clair);
}
/* F03, compte salarié existant : rond sur le fond d'avertissement, comme la planche v3 */
html#connexion_salarie #popup_compte_salarie_existant .zc-fenetre-icone {
  background: var(--zc-avertissement-fond);
}
html#connexion_salarie .zc-fenetre-icone .zc-picto {
  width: 32px;
  height: 32px;
}
html#connexion_salarie .zc-fenetre-texte {
  margin: 0;
  font-size: var(--zc-taille-corps);
  line-height: var(--zc-interligne-corps);
  text-align: center;
  color: var(--zc-texte);
}
html#connexion_salarie .modal-body .zc-bandeau {
  margin-top: -4px;
  margin-bottom: var(--zc-espace-4);
}

/* Redesign R6 (planche N3-a, N3-b du groupe 6 v9) : bandeau « Une nouvelle version est disponible », posé par script-app.js
   en tête de la page : il pousse le contenu vers le bas sans le cacher. Prune, bouton blanc, « Plus tard » souligné. */
html#connexion_salarie .zc-nouvelle-version {
  position: relative;
  z-index: 5;
  margin: calc(4px + env(safe-area-inset-top)) 10px 10px;
  background: #520331;
  border-radius: 24px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(82, 3, 49, .35);
  font-family: var(--zc-police);
}
html#connexion_salarie .zc-nouvelle-version-texte {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: #fff;
}
html#connexion_salarie .zc-nouvelle-version-texte::before {
  content: "";
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16) no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4.5M4 4v3.5h3.5M4 13a8 8 0 0 0 14.5 4.5M20 20v-3.5h-3.5'/%3E%3C/svg%3E");
}
html#connexion_salarie .zc-nouvelle-version-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
html#connexion_salarie .zc-nouvelle-version-maj,
html#connexion_salarie .zc-nouvelle-version-plus-tard {
  min-height: 48px;
  border: 0;
  font-family: var(--zc-police);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
html#connexion_salarie .zc-nouvelle-version-maj {
  flex: 1;
  border-radius: 999px;
  background: #fff;
  color: #520331;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
html#connexion_salarie .zc-nouvelle-version-maj:disabled { cursor: default; opacity: 1; }
/* N3-b : « Mise à jour… » avec sa roue de chargement */
html#connexion_salarie .zc-nouvelle-version-maj:disabled::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #E5D6DF;
  border-top-color: #520331;
  animation: zc-nouvelle-version-roue .8s linear infinite;
}
@keyframes zc-nouvelle-version-roue { to { transform: rotate(360deg); } }
html#connexion_salarie .zc-nouvelle-version-plus-tard {
  padding: 0 14px;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html#connexion_salarie .zc-nouvelle-version-plus-tard[hidden] { display: none; }
