/* Layout */
html {display: flex; flex-direction: column;} /* IE fix */
body {
  display: flex; /* crée un contexte flex pour ses enfants */
  flex-direction: column; /* affichage vertical */
  min-height: 100vh; /* toute la hauteur du viewport (compatible IE9+) */
}
.wrapper {
  display: block; /* IE fix */
  flex: 1 1 auto; /* occupe la hauteur restante */
  display: flex; /* crée un contexte flex pour ses enfants */
  flex-direction: row; /* affichage horizontal */
}
nav {
  width: 16em;
}
.content1 {
  display: block; /* IE fix */
  flex: 1; /* occupe la largeur restante */
}
.content2 {
  display: block; /* IE fix */
  width: 30em;
  /*flex: 1; /* occupe la largeur restante */
}

/* Responsive */

@media (max-width: 640px) {
	body {
  min-height: 0; 
}
	.wrapper {
    flex-direction: column;
  }
	.content {
		flex-basis: auto;
	}
  nav {
    width: auto;
    order: 1;
  }
}

/* Decoration */
body {
	margin: 0;
	background: #fff;
	font-family: "Century Gothic", helvetica, arial, sans-serif;
	font-size: 1.1em;
}
header, nav, section, footer {
	padding: 10px;
	margin: 0;
	border: 2px solid #fff;
	border-radius: 10px;
	color: #000000; /*#fff;*/
}
header {
	background: #ffffff; /*dodgerblue;*/
  text-align: left;
}
nav {
	background: #ffffff; /*orange;*/
}
nav a {
  display: block;
  padding: .5em 1em;
  color: #000000; /*#fff;*/
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
section {
	background: #ffffff; /*hotpink;*/
}
footer {
	background: #ffffff; /*olivedrab;*/
  text-align: center;
}

/* box à bascule */
.cardBox {
    float: left;
    font-size: 1.2em;
    margin: 1% 0 0 1%;
    perspective: 1400px;
    transition: all 0.4s ease 0s;
    width: 45%;
}
.cardBox:hover .card {
    transform: rotateY(180deg);
}
.card {
    background: #666666;
    cursor: pointer;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease 0s;
    width: 100%;
}
.card p {
    margin-bottom: 1.8em;
}
.card .front,
.card .back {
    backface-visibility: hidden;
    box-sizing: border-box;
    color: white;
    display: block;
    font-size: 1.2em;
    height: 100%;
    padding: 0.8em 0.7em;
    position: absolute;
    text-align: center;
    width: 100%;
}
.card .front strong {
    background: #fff;
    border-radius: 100%;
    color: #222;
    font-size: 1.5em;
    line-height: 30px;
    padding: 0 7px 4px 6px;
}
      .card .back {
        transform: rotateY(180deg);
      }
      .card .back a {
        padding: 0.3em 0.5em;
        background: #333;
        color: #fff;
        text-decoration: none;
        border-radius: 1px;
        font-size: 0.9em;
        transition: all 0.2s ease 0s;
      }
      .card .back a:hover {
        background: #fff;
        color: #333;
        text-shadow: 0 0 1px #333;
      }
      .cardBox:nth-child(1) .card .back {
        background: #ffcc00;
      }
      .cardBox:nth-child(2) .card .back {
        background: #1c87c9;
      }
      .cardBox:nth-child(3) .card .back {
        background: #ff6347;
      }
      .cardBox:nth-child(4) .card .back {
        background: #8ebf42;
      }
	  .cardBox:nth-child(5) .card .back {
        background: #A21DF8;
      }
      .cardBox:nth-child(2) .card {
        -webkit-animation: giro 1.5s 1; /*giro 1.5s 1;*/
        animation: giro 1.5s 1; /*giro 1.5s 1;*/
      }
      .cardBox:nth-child(3) .card {
        -webkit-animation: giro 2s 1; /*giro 2s 1;*/
        animation: giro 2s 1; /*giro 2s 1;*/
      }
      .cardBox:nth-child(4) .card {
        -webkit-animation: giro 2.5s 1; /*giro 2.5s 1;*/
        animation: giro 2.5s 1; /*giro 2.5s 1;*/
      }
	  .cardBox:nth-child(5) .card {
        -webkit-animation: giro 3s 1; /*giro 3s 1;*/
        animation: giro 3s 1; /*giro 3s 1;*/
      }
      @-webkit-keyframes giro {
        from {
          transform: rotateY(180deg);
        }
        to {
          transform: rotateY(0deg);
        }
      }
      @keyframes giro {
        from {
          transform: rotateY(180deg);
        }
        to {
          transform: rotateY(0deg);
        }
      }
      @media screen and (max-width: 767px) {
        .cardBox {
          margin-left: 2.8%;
          margin-top: 3%;
          width: 46%;
        }
        .card {
          height: 285px;
        }
        .cardBox:last-child {
          margin-bottom: 3%;
        }
      }
      @media screen and (max-width: 480px) {
        .cardBox {
          width: 94.5%;
        }
        .card {
          height: 260px;
        }
      }
	  
/* box connexion */
.box {
  border: 1px solid #c4c4c4;
  padding: 30px 25px 10px 25px;
  background: white;
  margin: 30px auto;
  width: 360px;
}
h1.box-logo a {
  text-decoration:none;
}
h1.box-title {
  color: #AEAEAE;
  background: #f8f8f8;
  font-weight: 300;
  padding: 15px 25px;
  line-height: 30px;
  font-size: 25px;
  text-align:center;
  margin: -27px -26px 26px;
}
.box-button {
  border-radius: 5px;
  background: #d2483c;
  text-align: center;
  cursor: pointer;
  font-size: 19px;
  width: 100%;
  height: 51px;
  padding: 0;
  color: #fff;
  border: 0;
  outline:0;
}
.box-register
{
  text-align:center;
  margin-bottom:0px;
}
.box-register a
{
  text-decoration:none;
  font-size:12px;
  color:#666;
}
.box-input {
  font-size: 14px;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 25px;
  padding-left:10px;
  border-radius: 5px;
  width: 347px;
  height: 50px;
}
.box-input:focus {
    outline: none;
    border-color:#5c7186;
}
.sucess{
	text-align: center;
	color: white;
}
.sucess a {
	text-decoration: none;
	color: #58aef7;
}
p.errorMessage {
    background-color: #e66262;
    border: #AA4502 1px solid;
    padding: 5px 10px;
    color: #FFFFFF;
    border-radius: 3px;
}