/*
Theme Name: Tetris
Author: Adrien De Meyer
Description: A beautiful theme specially designed
Version: 1.0
Text Domain: tetris
*/


::selection {
background: #5A65F1; /* WebKit/Blink Browsers */
  color: #fff;
}
::-moz-selection {
  background: #5A65F1; /* Gecko Browsers */
  color: #fff;
}

html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  margin: 0 !important;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  color: #fff;
  overflow-x: hidden;
  font-size: 18px;
  line-height: 22px;
  background-image: url("/wp-content/themes/tetris/img/background-top.png"), url("/wp-content/themes/tetris/img/cube.jpg");
  background-position: left 50px, -1px top;
  background-repeat: no-repeat, repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.inner-container {
  padding: 5px;
}

a {
  color: #5A65F1;
  text-decoration: none;
  -webkit-transition: color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

a:hover {
  color: #3052BD;
  -webkit-transition: color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}

img {
  width: 100%;
  height: auto;
}

img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}


.size-large {
  max-width: 1024px;
  max-height: 1024px;
}

.size-medium {
  max-width: 300px;
  max-height: 300px;
}
.size-thumbnail {
  max-width: 150px;
  max-height: 150px;
}

h1 {
  font-size: 30px;
  font-weight: 300;
  margin: 0px 0 10px;
  padding-right: 5px;
  padding-left: 5px;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 30px 0;
  padding-right: 5px;
  padding-left: 5px;
  line-height: 1;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
}

h3 {
  font-size: 30px;
  font-weight: 600;
  margin: 30px 0;
  padding-right: 5px;
  padding-left: 5px;
  line-height: 1;
  color: #3052BD;
}

h4,
h5,
h6 {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  margin: 30px 0;
  padding-right: 5px;
  padding-left: 5px;
}

ul, ol {
  margin: 5px 0 5px 30px;
}

p {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
}

b,
strong {
  font-weight: bold;
}

section {
  margin: 60px 0 90px;
}

.error404 section {
  margin: 0px;
  padding: 250px 0 150px;
  color: #fff;
}

.error404 h1 {
  color: #fff;
}

aside {
  padding: 20px 0;
}

.button {
  cursor: pointer;
  display: inline-block;
  padding: 12px 20px;
  background-color: #3052BD;
  font-family: 'Lato', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  font-weight: 300;
  text-decoration: none;
  color: #fff;
  border-radius: 25px;
  text-transform: uppercase;
  border: 1px solid #3052BD;
  -webkit-transition: color 0.4s, background-color 0.6s;
  -o-transition: color 0.4s, background-color 0.6s;
  transition: color 0.4s, background-color 0.6s;
}

.button:hover {
  background-color: #fff;
  color: #979ca4;
  -webkit-transition: color 0.4s, background-color 0.6s;
  -o-transition: color 0.4s, background-color 0.6s;
  transition: color 0.4s, background-color 0.6s;
}

.fade {
  position: relative;
  opacity: 0;
  top: 15px;
}

.parallax {
  background-size: cover;
  background-attachment: fixed;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.filter,
.filter-nobg {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  text-align: center;
  color: #fff;
}

.breadcrumb a{
  color: #fff;
}

/* shadow hover */
.shadow:hover {
  -webkit-box-shadow: 0 0 10px #555;
  box-shadow: 0 0 10px #555;
}

/* flex */

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.flex-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flex-align-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.flex-justify-content {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* column */

.xs25,
.sm25,
.md25,
.lg25,
.xs33,
.sm33,
.md33,
.lg33,
.xs50,
.sm50,
.md50,
.lg50,
.xs66,
.sm66,
.md66,
.lg66 {
  width: 100%;
}

/* Small devices (landscape phones, 576px and up) */

@media (min-width: 576px) {
  .xs25 {
    width: 25%;
  }

  .xs33 {
    width: 33.33%;
  }

  .xs50 {
    width: 50%;
  }

  .xs66 {
    width: 66.66%;
  }
}

/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  .sm25 {
    width: 25%;
  }

  .sm33 {
    width: 33.33%;
  }

  .sm50 {
    width: 50%;
  }

  .sm66 {
    width: 66.66%;
  }
}

/* Large devices (desktops, 992px and up) */

@media (min-width: 992px) {
  .md25 {
    width: 25%;
  }

  .md33 {
    width: 33.33%;
  }

  .md50 {
    width: 50%;
  }

  .md66 {
    width: 66.66%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
  .lg25 {
    width: 25%;
  }

  .lg33 {
    width: 33.33%;
  }

  .lg50 {
    width: 50%;
  }

  .xs66 {
    width: 66.66%;
  }
}

/* réseaux sociaux */

.rs-tetris i {
  border: 1px solid;
  height: 25px;
  width: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  margin-right: 5px;
  font-size: 15px;
}

/* recale correctement le logo */

.fa-facebook::before {
  margin-right: 2px;
}

/* header top */

.header-top {
  font-size: 11px;
  -webkit-box-shadow: inset 0 -1px 0 0 rgba(234, 237, 240, 1);
  box-shadow: inset 0 -1px 0 0 rgba(234, 237, 240, 1);
}

.infos-serious,
.wpml-ls,
.rs-serious {
  margin: 5px 0;
}

.header-top span {
  display: inline-block;
  padding: 0 10px;
}

.header-top .infos-serious i {
  font-size: 15px;
  padding-right: 7px;
}

/* header main */

.header-main {
  position: absolute;
  top: 0;
  /* max-width: 1200px; */
  margin: 0 auto;
  min-height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background: #fff;
  z-index: 2;
}

.header-main .title {
  display: flex;
  color: #000;
  justify-content: space-between;
  align-items: center;
}

.header-main .title p {
  margin-left: 10px;
  text-transform: uppercase;
  font-size: 20px;
}

.logo-wrap {
  width: 40px;
}
.menu-logo {
  max-width: 220px;
}

.logo-retina {
  display: none;
}

#menu-trigger {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 30px;
  z-index: 9999;
}

/* menu */

.menu-top-container ul {
  padding: 0;
  margin: 0;
}

#menu-top {
  position: relative;
  text-align: right;
  margin: 0 20px;
  padding: 0;
}

#menu-top li {
  position: relative;
}

#menu-top a,
#menu-top span {
  position: relative;
  display: block;
  color: #000;
  font-size: 17px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 10px;
}

#menu-top a:hover,
#menu-top span:hover {
  color: #3052BD;
}

#menu-top .sub-menu li {
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ebebeb;
}

#menu-top .sub-menu li a,
#menu-top .sub-menu li span {
  padding: 0 15px;
  font-size: 15px;
}

#menu-top li.menu-item-has-children > a::after,
#menu-top li.menu-item-has-children > span::after {
  content: '';
  display: block;
  position: absolute;
  height: 5px;
  width: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-color: #323943;
  left: 50%;
  -webkit-transform: rotate(45deg) translateX(-50%);
  -ms-transform: rotate(45deg) translateX(-50%);
  transform: rotate(45deg) translateX(-50%);
  -webkit-transition: border-color 0.3s ease-in-out;
  -o-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
}

#menu-top li.menu-item-has-children > a:hover::after,
#menu-top li.menu-item-has-children > span:hover::after {
  -webkit-transition: border-color 0.3s ease-in-out;
  -o-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
  border-color: #3052BD;
}

@media only screen and (min-width: 992px) {

  #menu-top {
    display: block;
  }

  #menu-top .sub-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 200px;
    top: 89px;
    left: -30px;
    line-height: 42px;
    z-index: 999;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
    text-align: left;
  }

  #menu-top li {
    display: inline-block;
  }

  #menu-top > li:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: -webkit-transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out, transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  }

  #menu-top li.menu-item-has-children > span::after,
  #menu-top li.menu-item-has-children > a::after {
    top: 57px;
  }
}

@media only screen and (min-width: 1080px) {

}

@media only screen and (max-width: 991px) {

  .header-main {
    justify-content: left;
  }

  .logo-wrap {
    margin-left: 15px;
  }

  #menu-trigger {
    display: block;
  }

  .header-main .menu-top-container {
    position: absolute;
    width: 100%;
    z-index: 999;
    top: 50px;
  }

  #menu-top {
    display: none;
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: #fff;
    text-align: center;
  }

  #menu-top .sub-menu {
    display: none;
    line-height: 35px;
  }

  #menu-top li {
    display: block;
    border-top: 1px solid #ebebeb;
  }

  #menu-top > li {
    background-color: #fafafa;
  }

  #menu-top > li > a,
  #menu-top > li > span {
    padding: 20px 15px;
  }

  #menu-top li.menu-item-has-children > a::after,
  #menu-top li.menu-item-has-children > span::after {
    top: 42px;
  }
}

/* scroll top */

.totop {
  cursor: pointer;
  position: fixed;
  right: 20px;
  bottom: 135px;
  font-size: 35px;
  display: none;
  color: #5A65F1;
  opacity: 0.9;
  z-index: 2000;
}

.totop:hover {
  color: #3052BD;
}

/* footer */

#footer {
  color: #000;
  background-color: #fff;
}

.main-footer a {
  text-transform: capitalize;
  color: #000;
}

.main-footer .col33 {
  margin: 30px 0;
}

.footer-container {
  padding: 20px;
}

.main-footer li {
  padding: 5px 0;
  list-style: none;
}

.footer-container img {
  width: 150px;
}

.bottom-footer {
  padding: 10px 0;
  display: flex;
  justify-content: center;
  font-size: 15px;
}

/* heading */

.heading {
  padding: 130px 0 30px;
  margin-bottom: 60px;
  text-align: center;
}

.heading h1 {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  padding: 15px 25px;
  color: #000;
  font-weight: bold;
}

/* home */

#home-anim {
  height: 400px;
  background-size: cover;
  position: relative;
}

.home .post-content .container {
  max-width: 820px;
}

.sommaire {
  margin-top: 30px;
}

.sommaire .wp-block-group__inner-container {
  border: 1px solid;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 25px;
}

.sommaire .wp-block-group__inner-container p:first-child {
  margin-bottom: 15px;
}

#comment-jouer li {
  list-style: none;
}

/* slogan */

.slogan {
  height: 375px;
  padding: 30px 0;
}

.slogan-wrap {
  position: absolute;
  top: 80%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
}


#home-anim .slogan-wrap h2 {
  color: #fff;
}

.home .post-content p {
  text-align: justify;
}

.home figure {
  margin: 0 auto !important;
}

.home #root {
  height: 700px;
  margin: 105px 0 250px;
  position: relative;
  z-index: 2001;
}

.bottom-bg{
  background-image: url("/wp-content/themes/tetris/img/background-bottom.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  padding: 166px 0;
}

/* actus */
.actus .img-link {
  position: relative;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.actu-main img {
  width: auto;
}

.actus .img-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 75%);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), color-stop(75%, rgba(0, 0, 0, 0.8)));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 75%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 75%);
  opacity: 0;
  -webkit-transform: translate3d(0, 50%, 0);
  transform: translate3d(0, 50%, 0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, -webkit-transform 0.35s;
  -o-transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s, -webkit-transform 0.35s;
}

.actus .img-link:hover::before {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, -webkit-transform 0.35s;
  -o-transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s, -webkit-transform 0.35s;
}

.actus .img-link span {
  font-weight: bolder;
  position: absolute;
  bottom: 10%;
  right: 15px;
  color: #fff;
  z-index: 1;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, -webkit-transform 0.35s;
  -o-transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s, -webkit-transform 0.35s;
}

.actus .img-link:hover span {
  opacity: 1;
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, -webkit-transform 0.35s;
  -o-transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  transition: opacity 0.35s, transform 0.35s, -webkit-transform 0.35s;
}

.actu-main {
  border-bottom: 1px solid #e5e8ec;
  border-left: 1px solid #e5e8ec;
  border-right: 1px solid #e5e8ec;
  padding: 15px 20px 5px;
}

.actu-main h2 {
  min-height: 46px;
}

.actu-categories {
  text-transform: uppercase;
  color: #000;
  font-size: 13px;
  min-height: 30px;
  margin-bottom: 0;
}

.actu-footer {
  border-bottom: 1px solid #e5e8ec;
  border-left: 1px solid #e5e8ec;
  border-right: 1px solid #e5e8ec;
}

.actu-footer p {
  display: inline-block;
}

.actu-footer p:first-child {
  width: 70%;
}

.actu-footer p:nth-child(2) {
  width: 30%;
  text-align: right;
}

.actu-footer p:first-child span {
  padding: 0 20px;
}

.actu-footer .likeThis {
  padding: 0 20px;
}

.actu-footer .likeThis::after {
  content: '\f08a';
  font-family: FontAwesome;
  margin-left: 5px;
}

.actu-footer .likeThis.done::after {
  content: '\f004';
  font-family: FontAwesome;
  margin-left: 5px;
}

/* contact */

.wpcf7-form {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 0 15px;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-top: 5px;
  margin-bottom: 20px;
}

.wpcf7-form input[type=submit] {
  width: 50%;
  margin: 0 auto;
  display: block;
  cursor: pointer;
}

/* blog */

#posts article {
  margin-bottom: 20px;
  text-align: justify;
}

#posts h2 {
  font-size: 20px;
  margin: 0;
  text-align: left;
}

.single-post #sidebar {
  border-left: none;
}

.dlreg {
  border-top: 1px solid #e5e8ec;
  padding: 20px 0;
}

.comments-number {
  text-align: right;
}

#comments label {
  display: block;
}

#comments textarea,
#comments input {
  width: 100%;
}

#comments input[type=submit] {
  width: auto;
}

/* categories */
#posts .cat-desc {
  margin-bottom: 15px;
}

/* sidebar */

#sidebar {
  padding: 10px 0;
  border-left: 1px solid #e5e8ec;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#sidebar aside {
  border-bottom: 1px solid #e5e8ec;
}

/* pagination */

.page-numbers {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.page-numbers li {
  display: inline-block;
}

.page-numbers .page-numbers {
  width: 30px;
  display: inline-block;
  height: 30px;
  border-radius: 50px;
  line-height: 2.2;
}

.page-numbers .current {
  background: #00467A;
  color: #fff;
}

#seopress-user-consent-close {
  border: none !important;
}

/* money */

.banner {
  width: 200px;
  height: 400px;
}

#block-right {
  right: 75px;
}

#block-left {
  left: 75px;
}

#trigger-start {
  position: absolute;
  top: 400px;
}

.blocks {
  max-width: 820px;
  margin: 0 auto;
}

.amz {
  max-width: 500px;
  margin: 0px auto 0;
}

.amz a {
  display: block;
  font-size: 45px;
  text-align: center;
  background: white;
  padding: 50px;
  line-height: 1.5;
  font-weight: 700;
  position: relative;
}

.amz span {
  white-space: nowrap;
}

.amz a:hover {
  background: white;
}

.amz svg {
  fill: #5A65F1;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90px;
}

/* RETINA */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) {
  .menu-logo {
    display: none;
  }

  .logo-retina {
    display: block;
  }
}

@media (max-width: 1380px) {
  .banner {
    position: relative !important;
    width: 100% !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    height: 200px !important;
    margin-bottom: 20px;
  }
}


/* Large devices (desktops, less than 1200px) */

@media (max-width: 1199.98px) {
}

/* Medium devices (tablets, less than 992px) */

@media (max-width: 991.98px) {
  body {
    background-position: left -93px, -1px top;
  }

  #home-anim {
    height: 300px;
  }

  .wp-block-columns {
    flex-direction: column;
  }
}

/* Small devices (landscape phones, less than 768px) */

@media (max-width: 767.98px) {
  .header-top .flex {
    padding: 0 5px;
  }

  #sidebar {
    border-left: none;
  }

}

/* Extra small devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) {
  .amz {
    max-width: none;
    margin: 200px 15px 0;
  }

  .amz svg {
    width: 60px;
  }
}


@media (max-height: 770px) {
  .home #root {
    margin: 20px 0 50px;
  }
}

@media (max-height: 650px) {
  .home #root {
    margin: 0px;
    height: 600px;
  }
}