/* =========== POLICES ================== */

@font-face {
    font-family: 'signikalight';
    src: url('../fonts/signika-variable-webfont.woff2') format('woff2'),
         url('../fonts/signika-variable-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
	font-family: "signikalight";
}


/* =========== CSS HACK =====================*/

/** { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
* * * * * * * { background-color: rgba(255,0,0,.2); }
* * * * * * * * { background-color: rgba(0,255,0,.2); }
* * * * * * * * * { background-color: rgba(0,0,255,.2);}*/

/* ============ HEADER --> BANNIERE ============== */

header {
  position: relative;
  width: 100%;
  margin: auto;
}

header .banniere_complete { 
  
  width: 100%;
  height: auto;
  z-index: -1;
}

header h1 {
  position: absolute;
  text-align: center;
  top: 30%;
  z-index: 1;
  color: #ec6223;
  font-weight: 600;
  text-shadow: 0px -3px white, /* haut */
                0px 3px white, /* bas */
                -3px 0px white, /* gauche */
                3px 0px white, /* droite */
                -3px -3px white,    /* haut G */
                3px -3px white, /* haut droite */
                -3px 3px white, /* bas gauche */
                3px 3px white; /* bas droite */
}

header h2 {
  position: absolute;
  text-align: center;
  top: 50%;
  z-index: 1;
  font-weight: bolder;
  text-shadow: 0px -3px white, /* haut */
                0px 3px white, /* bas */
                -3px 0px white, /* gauche */
                3px 0px white, /* droite */
                -3px -3px white,    /* haut G */
                3px -3px white, /* haut droite */
                -3px 3px white, /* bas gauche */
                3px 3px white; /* bas droite */
}

@media screen and (min-width: 1200px) 
and (max-width: 2000px) {
  header h1 {
    font-size: 90px;
    top: 15%;
  }
}
@media screen and (min-width: 1200px) 
and (max-width: 2000px) {
  header h2 {
    font-size: 35px;
    top: 60%;
  }
}
@media screen and (min-width: 990px) 
and (max-width: 1200px) {
  header h1 {
    font-size: 70px;
    top: 15%;
  }
}
@media screen and (min-width: 990px) 
and (max-width: 1200px) {
  header h2 {
    font-size: 25px;
    top: 60%;
  }
}

@media screen and (min-width: 768px) 
and (max-width: 990px) {
  header h1 {
    font-size: 70px;
    top: 15%;
  }
}
@media screen and (min-width: 768px) 
and (max-width: 990px) {
  header h2 {
    font-size: 20px;
    top: 70%;
  }
}
@media screen and (min-width: 576px) 
and (max-width: 768px) {
  header h1 {
    font-size: 50px;
    top: 15%;
  }
}
@media screen and (min-width: 576px) 
and (max-width: 768px) {
  header h2 {
    font-size: 15px;
    top: 70%;
  }
}

@media screen and (min-width: 360px) 
and (max-width: 576px) {
  header h1 {
    font-size: 40px;
    top: 25%;
    right: 1%;
  }
}
@media screen and (min-width: 360px) 
and (max-width: 576px) {
  header h2 {
    display: none;
  }
}

@media screen and (min-width: 0px) 
and (max-width: 360px) {
  header h1 {
    font-size: 30px;
    top: 25%;
    right: 1%;
  }
}
@media screen and (min-width: 0px) 
and (max-width: 360px) {
  header h2 {
    display: none;
  }
}
/* ============ HEADER --> NAVIGATION ============ */

.navbar {
	background-color:  #ec6223;
}

#navbartoppage a {
  color:white;
  font-size: 16px;
}

#navbartoppage a:hover {
  color: #ec6223;
  background-color: white;
  border-radius: 5px;
  transition: 0.5s;  
}

nav {
  min-height: 62px;
}


/* ======== INDEX --> SECTION EN TETE ========= */

#presentation h1 {
  color: #ec6223;
  font-weight: 600;
  font-size: 2rem;
}

#presentation button, #containerarticlecarousel button {
	border: 2px solid #ec6223;
	color: #ec6223;
}

#presentation button:hover, 
#containerarticlecarousel button:hover {
	border: 2px solid white;
  color: white;
  background-color: #ec6223;
  text-decoration: none;
}

/* ====== INDEX ARTICLE JEUX + CAROUSEL ALIMENJEUX ======= */

/*.article_jeu_scolaire {
  height: 220px;
}*/

#containerarticlecarousel {
  background-color: #ebebeb;
}

#containerarticlecarousel h3 {
  font-size: 1.50rem;
  color: #ec6223;
  font-weight: 600;
  border-bottom: 2px solid #ec6223;
}

#carouselalimenjeux a {
  background-color: rgba(255, 255, 255, 0.6);

}


.carousel-indicators li {
  background-color: #0A0A0A;
}


#carouselalimenjeux .carousel-caption h5,
#carouselalimenjeux .carousel-caption {
  font-weight: bold;
  color: black;
}

#carouselalimenjeux .carousel-caption {
  background-color: rgba(255, 255, 255, 0.6);
  margin: auto 10%;
}

/* ======= CAROUSEL PARTENAIRES ========= */

.item_logo_part a {
  height: 150px;
}

/* ===== RUBRIQUES --> PRESENTATION JEUX ==== */

#top_presentation h1 {
  font-size: 2rem;
  color: #ec6223;
  font-weight: 600;
}

#top_presentation h2{
  font-size: 1.5rem;
  color: #ec6223;
  font-weight: 600;
  border-bottom: 2px solid #ec6223;
}


/* ======== RUBRIQUES --> FORMULAIRE DU PROF =========== */

#formprof {
  background-color:  #ebebeb;
}

#formprof form h2 {
  font-size: 1.75rem;
  color: #ec6223;
}

#formprof button {
  border: 2px solid #ec6223;
  color: #ec6223;
}

#formprof button:hover {

  border: 2px solid #ebebeb;
  color: white;
  background-color: #ec6223;
  text-decoration: none;
}

/* ========= RUBRIQUES --> CARTES ======== */

.card__wrapper {
    height: 430px;
}

.card-body {
  border: 2px solid #ec6223;
  text-align: center;
}


.card-body h2, .card-body h3 {
  color: #ec6223;
  font-size: 1.25rem;
}

.card-body p{
  color: black;

}

.card-body a {
  border: 2px solid #ec6223;
  color: #ec6223;
}

.card-body a:hover {
  border: 2px solid white;
  color: white;
  background-color: #ec6223;
}

.img-card {
  height: 200px;
  width: auto;
  display: block;
  margin: auto;
}

.card__side, .card-body{
  min-height: 330px;
}

.card-flip {
  -webkit-perspective: 600px;
          perspective: 600px;
  position: relative;
}


.card-flip.is-switched .card__wrapper {
  -webkit-animation: rotate 0.5s linear both;
          animation: rotate 0.5s linear both;
}

.card-flip.is-switched{
    overflow: hidden;
}

.card__wrapper {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-animation: rotate-inverse 0.5s linear both;
          animation: rotate-inverse 0.5s linear both;
          backface-visibility: hidden;
}

.card__side {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 98%;
}
.card__side.is-active {
  position: static;
}

.card__side--back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.card-flip {
  margin: 0 auto;
  max-width: 350px;
}

.card__side {
  border-radius: 5px;
  color: white;
}


@-webkit-keyframes rotate {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  70% {
    -webkit-transform: rotateY(200deg);
            transform: rotateY(200deg);
  }
  100% {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
}

@keyframes rotate {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  70% {
    -webkit-transform: rotateY(200deg);
            transform: rotateY(200deg);
  }
  100% {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
}
@-webkit-keyframes rotate-inverse {
  0% {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
  70% {
    -webkit-transform: rotateY(-20deg);
            transform: rotateY(-20deg);
  }
  100% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
}
@keyframes rotate-inverse {
  0% {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
  70% {
    -webkit-transform: rotateY(-20deg);
            transform: rotateY(-20deg);
  }
  100% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
}

* {
  box-sizing: border-box;
}


/* ======== ARTICLE --> ARTICLE ============= */


.titre_article {
  font-size: 2rem;
  color: #ec6223;
  border-bottom: 2px solid #ec6223;
}

.lien_article {
  color: #ec6223;
}

.lien_article:hover {
  color: #ec6223;
  text-decoration: none;
}

.bordure_lien {
  border-top: 2px solid #ec6223;
}

.lien_retour {
  background-color: #ec6223;
  color:white;
  border: 2px solid white;
}

.lien_retour:hover {
  background-color: white;
  color:#ec6223;
  border: 2px solid #ec6223;
}

/* ======== SESSION --> SESSION ============= */ 

.titre_session {
  font-size: 2rem;
  color: #ec6223;
  border-bottom: 2px solid #ec6223;
}

#chiffres {
  background-color: #ebebeb;
}

/* ====== SESSION --> SESSION EN CHIFFRES ======= */

#chiffres {
  background-color: #ebebeb; 
}

.numero {
  color: #ec6223;
  font-weight: 1000;
  font-size: 60px;
}

.numero_type {
  color: black;
  font-weight: 400;
  font-size: 18px;
}

/* ======== SESSION --> TIMELINE =============== */

#timeline {
	background-color: white;
}

#timeline h2 {
	color: #ec6223;
  border-bottom: 2px solid #ec6223;
}

#timeline .card-body {
  border: none;
  text-align: left;
  min-height: 150px;
}

.card-text {
  color: white;
}


.timeline_item {
  border: 2px solid white;
  background-color: white;

}

.card-title {
  color: #ec6223;
}

.badge {
  background-color: #ec6223;
}

.timeline_border {
  border-right: 1px solid #ec6223;
}

/* ======== SESSION --> TELECHARGEMENTS ======== */

#telechargements {
	background-color: #ec6223;
	color: white;
}

#telechargements h2 {
  border-bottom: 2px solid white;
}

#telechargements button {
  background-color: white;
  border: 2px solid white;
  color: #ec6223;
}

#telechargements button:hover {
  background-color: #ec6223;
  border: 2px solid white;
  color: white;
}

/* ======== FOOTER ================= */

footer {
	background-color: #ec6223;
}

footer .sub-nav a {
	border-left: 2px solid #fff;
}

.sub-nav a:first-child {
	border: none;
}