/*
 * Styles pour la page de connexion
 * 
 * @since 17 juillet 2024
 * @author Cnam by OLJ & AS
 * @copyright DSI Cnam
*/

/**************************************************/
/* Balises HTML                                   */
/**************************************************/
body {
  background-color: #ffffff;
  color: #11304C;
  /* Couleur de police */
  font-family: 'Raleway', 'montserrat-wght', sans-serif;
  line-height: 1em;
  /* interligne normal */
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  margin: 0;
  padding: 0;
}

h3 {
  border-bottom: 2px dotted #c1002a;
  /* Rouge Cnam */
  display: flex;
  font-size: 2em;
  font-weight: 500;
  line-height: 2em;
  margin: 1em 1.5em;
}

input {
  background-color: #ECF7F9;
  border: solid 1px #c1002a;
  /* Rouge Cnam */
  border-radius: 0.25em;
  font-family: 'Raleway', 'montserrat-wght', sans-serif;
  height: 3em;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
}

/**************************************************/
/* Bouton                                         */
/**************************************************/
.bouton {
  background-color: #c1002a;
  /* Rouge Cnam */
  border: 1px solid #ad0026;
  /* Rouge foncé (hover) du Cnam */
  border-radius: 0.25em;
  -moz-border-radius: 0.25em;
  -webkit-border-radius: 0.25em;
  color: #ffffff;
  /* Couleur de police secondaire */
  cursor: pointer;
  display: inline-block;
  font-family: 'Raleway', 'montserrat-wght', sans-serif;
  font-size: 1em;
  padding: 0.75em 1em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  /* Effet de transition lors du hover sur bouton */
  transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  vertical-align: middle;
  word-wrap: break-word;
}
.bouton:hover {
  background-color: #ffffff;
  border: 1px solid #c1002a;
  /* Rouge Cnam */
  border-radius: 2em;
  color: #c1002a;
  /* Rouge Cnam */
  -moz-border-radius: 2em;
  -webkit-border-radius: 2em;
  text-decoration: none;
}

/**************************************************/
/* Bouton switch - slider                         */
/* Bouton de bascule mode clair - sombre          */
/**************************************************/
.switch {
  z-index: 2;
  position: fixed;
  width: 60px;
  height: 34px;
  top: 0.6em;
  left: 12em;
}

/* Masquage du bouton checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Le slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #AAAAAA;
  border: 2px solid #FFFFFF;
  -webkit-transition: .4s;
  transition: .4s;
  padding: 7px;
  padding-left: 8px;
  font-weight: 600;
  color: #C1002A;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 2px;
  background-color: #FFFFFF;
}

input:checked+.slider {
  background-color: #2D2A2A;
}
input:checked+.slider:before {
  -webkit-transform: translateX(25px);
  -ms-transform: translateX(25px);
  transform: translateX(25px);
}

/* Effet rond */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/**************************************************/
/* Class et id CSS                                */
/**************************************************/
#banniere {
  background-color: #c1002a;
  height: 3em;
  list-style-type: none;
  overflow: visible;
  padding: 0;
  padding-top: 0.5em;
  position: fixed;
  text-decoration: none;
  top: 0;
  width: 100%;
  z-index: 1;
}

#barre_env {
  background-color: #f6d9df;
  position: fixed;
  text-align: center;
  text-decoration: none;
  top: 0;
  width: 100%;
  z-index: 3;
}

.barre_nav_logo {
  background-color: #c1002a;
  cursor: pointer;
  position: relative;
  padding-left: 1em;
  padding-top: 0.1em;
  width: 10em;
  /* Effet de transition lors du hover sur logo Cnam */
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.barre_nav_logo:hover {
  background: inherit;
  -webkit-filter: invert(80%);
  filter: invert(80%);
}

.barre_nav_texte {
  padding-top: 0.5em;
  color: #ffffff;
  text-align: right;
  float: right;
  padding-right: 1em;
  font-size: 1.2em;
  line-height: 1em;
  text-decoration: none;
  text-transform: uppercase;
}

.blanc {
    color: #ffffff;
}

.connex {
  background-color: #ECF7F9;
  border: 1px solid #c1002a;
  border-radius: 0.25em;
  box-shadow: 0 0 1em 0 rgba(193, 0, 42, 0.15);
  margin: 5em auto;
  padding: 2em;
  width: 20em;
}

.connex div {
  width: 100%;
}

.connex h3 {
  margin-top: 0;
}

.connex input,
.connex select {
  background-color: #FFFFFF;
  box-sizing: border-box;
  margin: 1em 0 2em 0;
  width: 100%;
}

.connex input::placeholder {
  color: #415970 ;
}

.connex input:focus-visible {
  outline: 1px solid #C1002A;
}

.connex input[type=submit] {
  background-color: #C1002A;
  color: #FFFFFF;
}

.connex input[type=submit]:hover {
  color: #C1002A;
  background-color: #FFFFFF;
}

.demande {
  line-height: 1.5em;
}

.flex {
  align-items: center;
  display: flex;
  height: -moz-available;
  height: -webkit-fill-available;
  justify-content: center;
}

.font-weight-larger {
  font-weight: bold;
}

#footer {
  z-index: 3;
  list-style-type: none;
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2em;
  width: 100%;
  background-color: #C1002A;
  color: #FFFFFF;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
}

#texte_footer {
  font-size: 0.8em;
  padding-left: 1em;
  padding-right: 1em;
}

.info {
  display: block;
  margin-bottom: 1em;
  text-align: center;
  text-transform: initial;
  line-height: 1.5em;
}

.lien {
  color: #C1002A;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
}
.lien:hover {
  text-decoration: none;
}

.lien_blanc {
  color: #ffffff;
  cursor: pointer;
  text-transform: lowercase;
  text-decoration: underline;
}
.lien_blanc:hover {
  text-decoration: none;
}

/**************************************************/
/* Loader                                         */
/**************************************************/
.animation_page {
  position: relative;
  animation-duration: 1s;
  animation-name: animationpage;
  -webkit-animation-duration: 1s;
  -webkit-animation-name: animationpage;
}

/* Gestion de l'animation au contenu de la page */
@-webkit-keyframes animationpage {
  from {
    bottom: -100px;
    opacity: 0;
  }

  to {
    bottom: 0px;
    opacity: 1;
  }
}

@keyframes animationpage {
  from {
    bottom: -100px;
    opacity: 0;
  }

  to {
    bottom: 0;
    opacity: 1;
  }
}

.div_principale {
  display: none;
}

.loader {
  animation: animationrotationloader 2s linear infinite;
  -webkit-animation: animationrotationloader 2s linear infinite;
  border: 16px solid #f6d9df;
  border-radius: 50%;
  border-top: 16px solid #c1002a;
  height: 150px;
  margin: -75px 0 0 -75px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  z-index: 10;
}

/* Gestion de la rotation du loader */
@keyframes animationrotationloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes animationrotationloader {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

/**************************************************/
/* Media                                          */
/**************************************************/
@media (max-device-width: 700px) {
  #banniere,
  #footer {
    font-size: smaller;
  }
}

@media (max-width: 700px) {
  #texte_footer {
    padding: 0;
    font-size: 0.6em;
    line-height: 1em;
  }
}

@media (max-device-width: 750px) {
  .switch{
    top: 0.4em;
    left: 10em;
  }
}

/**************************************************/
/* Message                                        */
/**************************************************/
.message_a_afficher {
  background-color: #FFD5DE;
  border: 1px solid #C50D35;
  border-radius: 0.25em;
  color: #C50D35;
  display: block;
  line-height: 2em;
  padding: 12px;
}

/**************************************************/
/* SAFARI CSS                                     */
/**************************************************/
@supports (-webkit-appearance:none) and (stroke-color:transparent) {
  .slider {
      font-weight: normal;
      padding-left: 5px;
  }
}
