@charset "UTF-8";
* {
  box-sizing: inherit;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background-color: #e6e8ec;
  color: #242424;
  font-size: 12px;
  font-family: "SohoStd", "Arial", sans-serif;
}

a {
  text-decoration: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s, box-shadow 5000s ease-in-out 0s !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #a8a8a8 !important;
}

.field:first-of-type input:-webkit-autofill,
.field:first-of-type input:-webkit-autofill:hover,
.field:first-of-type input:-webkit-autofill:focus,
.field:first-of-type input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s, box-shadow 5000s ease-in-out 0s !important;
  -webkit-box-shadow: 0 0 0px 1000px #f6f6f6 inset !important;
  -webkit-text-fill-color: #a8a8a8 !important;
}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
  font-style: italic;
  color: #a8a8a8 !important;
  opacity: 1 !important;
}

.nowrap {
  white-space: nowrap;
}

/* Popup modale de récupération d'identifiants */
#modalRecupId {
  display: none;
  width: 600px;
  font-family: 'SohoStd',"Arial", sans-serif;
}

#modalRecupId .modal-content {
  padding: 0;
}

#modalRecupId iframe {
  border: none;
  width: 100%;
  height: 280px;
}

.alertbox {
  font-family: "Arial", sans-serif !important;
}

.alertbox .titre {
  height: 40px;
  font-weight: normal;
  line-height: 31px;
  text-transform: none;
  padding-left: 15px;
}

.alertbox .bouton {
  width: 50%;
  font-weight: normal;
}

.alertbox ul {
  padding: 0;
}

.alertbox A.bouton:hover {
  background-color: #717171 !important;
}

.alertbox .pied {
  margin-bottom: 20px;
}

#page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent url(../images/bg-contenu-eranove.png) no-repeat bottom right;
  background-size: 400px auto;
}

.small-only {
  display: block;
}

.contenu {
  width: 100%;
  background-color: #fff;
  flex: 1 1 100%;
  padding: 50px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: center;
}

.bg {
  order: 0;
  width: 100%;
  display: none;
}

header, footer, main {
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

div.hr {
  margin: 20px 0 0;
}

#logo {
  width: 60%;
  max-width: 312px;
  min-width: 100px;
  text-align: center;
}

#logo img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h2 {
  margin: 0;
  color: #21455c;
  font-size: 2.446em;
  font-weight: bold;
  line-height: 115%;
}

h3 {
  margin: 0;
  font-size: 1.909em;
  line-height: 115%;
  color: #21455c;
}

#fields {
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 2px 23px 51px 0px rgba(1, 1, 1, 0.17);
  border-radius: 5px;
}

#fields .field {
  position: relative;
  background-color: #fff;
  margin: 0;
  border-radius: 0;
  height: 60px;
  color: #a8a8a8;
  border-top: 1px solid #e6e6e6;
}

#fields .field:first-of-type {
  border-top: 0;
  border-left: 3px solid #3aa345;
  background-color: #fff;
}

#fields label {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  text-align: center;
}

#fields label img {
  height: 24px;
  width: auto;
  margin: 18px auto;
}

#fields input[type=email],
#fields input[type=text],
#fields input[type=password] {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50px;
  width: calc(100% - 50px);
  border: 0;
  box-sizing: border-box;
  margin-bottom: 0;
  height: 2.5rem;
  font-size: 1.16em !important;
  font-family: 'SohoStd', "Arial", sans-serif;
}

#fields input[type=email]:focus, #fields input[type=email].valid, #fields input[type=email].invalid,
#fields input[type=text]:focus,
#fields input[type=text].valid,
#fields input[type=text].invalid,
#fields input[type=password]:focus,
#fields input[type=password].valid,
#fields input[type=password].invalid {
  color: #394044;
  border: 0;
  box-shadow: none;
  outline: 0;
}

#fields input[type=email] + span.label,
#fields input[type=text] + span.label,
#fields input[type=password] + span.label {
  position: absolute;
  text-align: center;
  left: 50px;
  color: #394044;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  font-family: 'SohoStd', "Arial", sans-serif;
  font-weight: bold;
  font-size: 1.16em !important;
}

#fields input[type=email] + span.label.active,
#fields input[type=text] + span.label.active,
#fields input[type=password] + span.label.active {
  -webkit-transform: translateY(calc(-50% - 8px));
  transform: translateY(calc(-50% - 8px));
}

#fields input[type=email].valide + span.validation::after,
#fields input[type=text].valide + span.validation::after,
#fields input[type=password].valide + span.validation::after {
  content: ' ';
  display: block;
  position: absolute;
  top: 53%;
  right: 15px;
  width: 25px;
  height: 25px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../images/valid.png) no-repeat;
  background-size: contain;
}

#fields input[type=email].invalide + span.validation::after,
#fields input[type=text].invalide + span.validation::after,
#fields input[type=password].invalide + span.validation::after {
  content: ' ';
  display: block;
  position: absolute;
  top: 53%;
  right: 15px;
  width: 25px;
  height: 25px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../images/invalid.png) no-repeat;
  background-size: contain;
}

#fields input[type=email]:focus:not([readonly]),
#fields input[type=text]:focus:not([readonly]),
#fields input[type=password]:focus:not([readonly]) {
  color: #242424;
  box-shadow: none;
  border: 0;
}

.button_form {
  display: block;
  height: 50px;
  margin: 20px 0;
  font-size: 1.16em;
  line-height: 53px;
  background-color: #0e9fd5;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.button_form:hover {
  background-color: #3aa345;
}

#oubli_form {
  font-size: 1.16em;
  text-align: right;
}

#oubli_form a {
  color: #333;
  text-decoration: none;
}

footer {
  margin-top: 30px;
  color: #a8a8a8;
  font-size: 0.9em;
}

.logos-partenaires {
  text-align: center;
}

.logos-partenaires img {
  max-height: 40px;
  margin-right: 25px;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 5px;
}

.logos-partenaires img:last-child {
  margin-right: 0;
}

@media screen and (min-width: 600px) {
  .small-only {
    display: none;
  }
  div.hr {
    margin: 30px 0 0;
  }
  .contenu {
    justify-content: center;
    height: 75%;
    flex: 0 0;
    margin: auto;
    width: 75%;
    background-image: none;
    background: rgba(255, 255, 255, 0.9);
  }
  .bg {
    display: none;
  }
  header, main, footer {
    width: 75%;
  }
  .logos-partenaires {
    text-align: left;
  }
}

@media screen and (max-width: 959px) and (max-height: 840px) {
  .bg {
    display: none;
  }
}

@media screen and (min-width: 960px) {
  #page {
    min-height: 100%;
    display: flex;
    flex-direction: row;
  }
  .contenu {
    width: 50%;
    flex: 1 1 50%;
    height: initial;
    margin: initial;
    background-color: #fff;
    background-size: 180px auto;
    position: relative;
  }
  .contenu::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0px;
    width: 20%;
    height: 100%;
    background-color: #fff;
    -webkit-transform: skewX(-5.5deg);
    transform: skewX(-5.5deg);
  }
  .contenu::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 20%;
    height: 100%;
    background-color: #e6e8ec;
    -webkit-transform: skewX(-5.5deg);
    transform: skewX(-5.5deg);
  }
  div.hr {
    margin: 60px 0;
  }
  .bg {
    order: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    flex: 1 1 50%;
    height: initial;
  }
  .grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 10px 1fr;
    grid-template-columns: 1fr 1fr;
    -ms-grid-rows: 1fr 10px 1fr 10px 1fr 10px 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    grid-template-areas: ". item1 . item2" "item3 item3 item4 ." "item3 item3 item5 item6" ". item7 item8 .";
    width: 80%;
    height: 80%;
    max-width: 890px;
    max-height: 890px;
  }
  .grid-item {
    box-sizing: border-box;
  }
  .grid-item#item1 {
    grid-area: item1;
    background: url("../images/bg-1.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item2 {
    grid-area: item2;
    background: url("../images/bg-2.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item3 {
    grid-area: item3;
    background: url("../images/bg-3.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item4 {
    grid-area: item4;
    background: url("../images/bg-4.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item5 {
    grid-area: item5;
    background: url("../images/bg-5.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item6 {
    grid-area: item6;
    background: url("../images/bg-6.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item7 {
    grid-area: item7;
    background: url("../images/bg-7.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item8 {
    grid-area: item8;
    background: url("../images/bg-8.png") no-repeat center center;
    background-size: cover;
  }
  .grid-item#item1 {
    background-color: #40acb6;
  }
  .grid-item#item3 {
    background-color: #114262;
    background-position: top right;
    width: auto;
    height: auto;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    padding: 10%;
    box-sizing: border-box;
  }
  .grid-item#item3 h2 {
    color: #fff;
    font-size: 2.147em;
  }
  .grid-item#item3 h3 {
    font-size: 1.476em;
    color: #579dcb;
  }
  .grid-item#item2, .grid-item#item4, .grid-item#item5, .grid-item#item6, .grid-item#item8 {
    display: none;
  }
}

@media screen and (min-width: 960px){
  .grid-item#item1 {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }
  .grid-item#item2 {
    -ms-grid-row: 1;
    -ms-grid-column: 7;
  }
  .grid-item#item3 {
    -ms-grid-row: 3;
    -ms-grid-row-span: 3;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
  }
  .grid-item#item4 {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
  }
  .grid-item#item5 {
    -ms-grid-row: 5;
    -ms-grid-column: 5;
  }
  .grid-item#item6 {
    -ms-grid-row: 5;
    -ms-grid-column: 7;
  }
  .grid-item#item7 {
    -ms-grid-row: 7;
    -ms-grid-column: 3;
  }
  .grid-item#item8 {
    -ms-grid-row: 7;
    -ms-grid-column: 5;
  }
}

@media screen and (min-width: 1200px) {
  body {
    font-size: 15px;
  }
  .contenu {
    width: 43%;
    flex: 1 1 43%;
  }
  .contenu::after, .contenu::before {
    -webkit-transform: skewX(-9.5deg);
    transform: skewX(-9.5deg);
  }
  .bg {
    width: 57%;
    flex: 1 1 57%;
  }
  .grid {
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid-item#item4, .grid-item#item5, .grid-item#item8 {
    display: block;
  }
  header, main, footer {
    width: 65%;
  }
  header .hr {
    margin: 70px 0 0;
  }
  #fields {
    box-shadow: 2px 23px 51px 0px rgba(1, 1, 1, 0.17);
  }
  #fields .field {
    height: 100px;
  }
  #fields .field:first-of-type {
    border-left: 4px solid #3aa345;
  }
  #fields label {
    width: 130px;
  }
  #fields label img {
    height: 35px;
    margin: 33px auto;
  }
  #fields input[type=email],
  #fields input[type=text],
  #fields input[type=password] {
    left: 130px;
    width: calc(100% - 130px);
    height: 75px;
  }
  #fields input[type=email] + span.label,
  #fields input[type=text] + span.label,
  #fields input[type=password] + span.label {
    left: 130px;
  }
  .button_form {
    height: 60px;
    line-height: 63px;
  }
  footer {
    margin-top: 70px;
  }
}

@media screen and (min-width: 1600px) {
  .grid {
    -ms-grid-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .grid-item#item2, .grid-item#item6 {
    display: block;
  }
  .logos-partenaires img {
    max-height: 50px;
    margin-right: 40px;
  }
}
