/*
JojabaPro stylesheet
url: https://jojaba.fr
contact: contact@jojaba.fr
prefixing: autoprefixer
font: Google fonts - Transfonter (https://transfonter.org/)
**************************************************************************** */

@font-face {
  font-family: 'Titillium Web';
  src: url('fonts/TitilliumWeb-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
html {
  margin: 0;
  padding: 0;
  font-size: 62.5%;
  background: #FFF
}
body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.6rem;
  background: #FFF url(general-bg.png);
  color: rgba(0, 0, 0, .8)
}
header, nav, section, main, article, footer {
  margin: 0;
  padding: 0;
  display: block; /* For IE */
}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
header h1, nav a, main h2, footer h4, article ul.buttons li a strong, article dt, .submit input, main .user-contact a {
  font-family: 'Titillium Web', Tahoma, sans-serif;
  font-stretch: extra-expanded;
}
img {
  max-width: 100%;
}
a.with-img, a.with-img:hover {
  border: none;
}

/*
Header style
**************************************************************************** */

#easy-access {
  display: none;
}
.description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  background: #37141A;
  /*background: rgba(204, 0, 0, 0.8);*/
}
header {
  background: #000;
  background: rgba(0, 0, 0, .8);
}
header h1 {
  margin: 0;
  padding: 0 0 0 2rem;
  font-size: 7.5rem;
}
header h1 a {
  color: #FFF;
  text-decoration: none;
}
header h1 span {
  display: inline-block;
  background: rgb(55, 20, 26);
  background: rgba(55, 20, 26, 0.8);
  border-radius: 3px;
  color: #FFF;
  font-size: 1.8rem;
  padding: 0 1rem;
}
nav ul {
  margin: -5rem 0 auto;
  padding: 1rem 2rem;
  text-align: right;
}
nav ul li {
  margin: 0;
  padding: 0;
  display: inline;
}
nav a:link, nav a:visited {
  display: inline-block;
  margin: 0 0 0 0.2rem;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  background: rgb(55, 20, 26);
  background: rgba(55, 20, 26, 0.8);
  color: #f0f0f0;
  font-size: 2rem;
}
nav a:hover, nav a:active, nav a.active, nav a:focus {
  background: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.9);
  color: rgb(55, 20, 26);
}

/* Main part
**************************************************************************** */

main h2 {
  font-size: 5rem;
  margin: 0;
  padding: 5.5rem 2rem;
  text-align: right;
  background:#FFF url(ecran_main_menton_l.jpg) no-repeat center;
  background-size: cover;
  color: #37141A;
  border-bottom: #37141A dotted 1px;
}
.gallery main h2 {
  background-image: url(bras_ordi_livre_l.jpg);
}
.translation main h2 {
  background-image: url(livres_main_l.jpg);
}
.code main h2 {
  background-image: url(ordi_mains_l.jpg);
}
.contact main h2 {
  background-image: url(tete_lunettes_l.jpg);
}
.advices main h2 {
  background-image: url(ecran_touchpad_main_bras_l.jpg);
}
.content {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 0 2rem 0;
}
article h3 {
  display: none;
}
article p {
  margin: 2rem 0 0 0;
  padding: 0;
  text-align: justify;
}
article .logo {
  float: left;
  margin: 0 1.5rem 0 0;
  max-width: 25%;
  border: rgb(55, 20, 26) 1px dotted;

}
article ul.buttons {
  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;
  margin: 0;
  padding: 0;
}
article ul.buttons li {
  display: inline-block;
  vertical-align: top;
  list-style-type: none;
  border: none;
  margin: 2rem 0 0 0;
  padding: 0;
  width: 49%;
  background: #FFF url(code-img.jpg) no-repeat center;
  background-size: cover;
}
article ul.buttons li#code {
  background-image: url(code-img.jpg);
}
article ul.buttons li#conseils {
  background-image: url(adv-img.jpg);
}
article ul.buttons li#traductions {
  background-image: url(trans-img.jpg);
}
article ul.buttons li#galerie {
  background-image: url(gal-img.jpg);
}
article ul.buttons li a {
  display: inline-block;
  vertical-align: bottom;
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 1.5rem 0;
  background: rgb(55, 20, 26);
  background: rgba(55, 20, 26, 0.8);
  color: #FFF;
  border: rgb(55, 20, 26) 1px dotted;

}
article ul.buttons li .buttons-title {
  display: inline-block;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}
article ul.buttons li a strong {
  font-size: 2.5rem;
  padding: 1rem 0 0.2rem 0;
}
article ul.buttons li a:hover {
  background: transparent;
  color: rgb(55, 20, 26);
}
article ul.buttons li a:hover img {
  opacity: 0.4;
}
article ul.buttons li a:hover .buttons-title {
  background: rgb(240, 240, 240);
  background: rgba(240, 240, 240, 0.8);
  width: 100%;
}
main .user-contact {
  background: #FFF url(contact-img.jpg) no-repeat center;
  background-size: cover;
}
main .user-contact a {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1rem 1.5rem 12rem;
  text-decoration: none;
  color: #FFF;
  font-style: italic;
  font-size: 2.5rem;
  background: rgba(55, 20, 26, 0.8) url(user-contact-bg.png) no-repeat left center;
  border-top: rgb(55, 20, 26) 1px dotted;
}
main .user-contact a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: rgb(55, 20, 26);
}

main .user-contact strong {
  display: inline-block;
}
article dl {
  margin: 2rem 0 0 0;
  padding: 1rem 11rem 1rem 1rem;
  color: #FFF;
  background-color: rgb(55, 20, 26);
  background-repeat: no-repeat;
  background-position: right center;
  border: rgb(55, 20, 26) 1px dotted;
}
article dd {
  margin: 0 1rem;
  padding: 0.2rem 0;
  line-height: 2.4rem;
}
article dt {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  padding: 0 0 1rem 0;
  line-height: 3rem;
}
article a {
  color: rgb(55, 20, 26);
  text-decoration: none;
  font-style: italic;
  border-bottom: rgb(55, 20, 26) 1px dotted;
}
article a:hover {
  border-bottom: #990000 1px solid;
  color: #990000;
}
article a img {
  border: none;
}
article dl a {
  color: #FFF;
  border-color: #FFF;
}
article dl a:hover {
  color: #FFF;
  border-bottom: #FFF 1px solid;
}
img {
  max-width: 100%;
}
article figure {
  margin: 1.5rem 0;
  padding: 0;
}
article figure img {
  border-left: 1px dotted rgb(55, 20, 26);
  border-top: 1px dotted rgb(55, 20, 26);
  border-right: 1px dotted rgb(55, 20, 26);
  vertical-align: bottom;
  width: 940px;
}
article figcaption {
  margin: 0;
  padding: 0 0 2rem 0;
  border-top: #000 1rem solid;
}
article figcaption dl {
  margin: 0;
}
article figcaption ul.li-inline li {
  display: inline;
  padding: 0.2rem 0.8rem;
}

/* custom backgrounds */

dl.alsacreations {
  background-image: url(alsa-bg.png);
}
dl.jojaba-perso {
  background-image: url(website-bg.png);
}
dl.languages {
  background-image: url(code-bg.png);
}
dl.cms, #ba-erp dl {
  background-image: url(cms-bg.png);
}
dl.forums {
  background-image: url(forum-bg.png);
}
dl.collaborate {
  background-image: url(collaborate-bg.png);
}
dl.books {
  background-image: url(book-bg.png);
}
dl.sites, figcaption dl {
  background-image: url(website-bg.png);
}
dl.translation {
  background-image: url(trans-bg.png);
}
dl.contact {
  background-image: url(contact-bg.png);
}

/* slideshow */
.slideshow {
    position: relative;
    width: 940px;
    height: 500px;
    overflow: hidden;
}

.sContent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3760px;
    margin: 0;
    padding: 0;

    /*CSS3 keyframes animation*/
    -webkit-animation-name: AutoSlide;
            animation-name: AutoSlide;
    -webkit-animation-duration: 12s;
            animation-duration: 12s;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out;
}

.sContent li {
    display: inline;
}

figure a > img:hover {
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
}

/*
Contact section
**************************************************************************** */
article.contact {
  display: flex;
}

.jjbform, .jjbaddress {
  margin: 0;
  padding: 1rem;
  width: 50%;
}
article.contact form, article.contact div.messagesent {
  margin: 0;
  padding: 0 2rem 0 0;
}
article.contact fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
article.contact legend {
  display: none;
}
article.contact p {
  text-align: left;
}
article.contact .usernickname {
  display: none; /* this is a fake field to avoid robot submissions */
}
article.contact .username input, article.contact .usermail input, article.contact .submit input, article.contact textarea {
  width: 100%;
  background: #FFF;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 2rem;
  margin: 0;
  border: none;
  border: rgb(55, 20, 26) 1px dotted;

}
article.contact input:focus, article.contact textarea:focus {
  background: #FFF;
}
article.contact .rgpd {
  font-size: 1.3rem;
  line-height: 1.4rem;
}
article.contact .submit input {
  font-size: 2.5rem;
  color: #FFF;
  background-color: rgb(55, 20, 26);
  border-top: #000 1px dotted;
  border-bottom: #000 1px dotted;
}
article.contact .submit input:hover {
  background: #FFF;
  color: rgb(133, 133, 133);
  cursor: pointer;
}
article.contact blockquote {
  border: #FFF 1px solid;
  padding: 0 2rem 2rem 2rem;
  margin: 0;
  font-style: italic;
  color: #FFF;
  background-color: rgb(55, 20, 26);
}
article.contact p.warning {
  background: #FFF;
  color: orangered;
}
article.contact p.ok {
  background: #FFF;
  color: darkgreen;
}
article.contact .help {
  font-size: 1.2rem;
  text-align: right
}
article.jjbaddress a {
  color: #FFF;
  border: none;
}

/*
Footer
**************************************************************************** */

footer {
  margin: 0;
  padding: 2rem 0;
  /*background: #000 url(jojaba_l.png) no-repeat right center;
  background: rgba(0, 0, 0, .8) url(jojaba_l.png) no-repeat right bottom;*/ 
  background: #000;
  background: rgba(0, 0, 0, .8);
  font-size: 0.9em;
  line-height: 1.4;
  color: #f0f0f0;
}
.main-footer {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -ms-flex-wrap: wrap;
       flex-wrap: wrap;
  -ms-flex-pack: distribute;
      justify-content: space-around;
}

footer #mentions-legales, footer #favoris, footer #a-propos {
  display: inline-block;
  vertical-align: top;
  max-width: 400px;
  padding: 1rem;
}
footer h4 {
  font-size: 2.5rem;
  margin: 0;
  padding: 0 0 1rem 0;
  font-weight: normal;
}
footer ul {
  margin: 0;
  padding: 0 1.5rem;
}
footer ul li {
  margin: 0;
  padding: 0;
  list-style-type: square;
  line-height: 1.8rem;
}
footer p {
  margin: 2rem 1rem 0 1rem;
  padding: 0;
  font-size: 1em;
  text-align: center;
}
footer a {
  color: #FFF;
  text-decoration: none;
  font-style: italic;
  border-bottom: #FFF 1px dotted;
}
footer a:hover {
  border-bottom: #FFF 1px solid;
}

/* All CSS3 styles
**************************************************************************** */

/* Shadows */

nav li a:hover, article ul.buttons li a:hover, article.contact .submit input:hover {
  box-shadow: 0 2px 3px #000;
  -moz-box-shadow: 0 2px 3px #000;
  -webkit-box-shadow: 0 2px 3px #000;
  -o-box-shadow: 0 2px 3px #000;
}
article.contact dl, article.contact blockquote, p.contactlink a:hover {
  box-shadow: 0 0 10px #FFF;
  -moz-box-shadow: 0 0 10px #FFF;
  -webkit-box-shadow: 0 0 10px #FFF;
  -o-box-shadow: 0 0 10px #FFF;
}
header h1 {
  text-shadow: 1px 1px 0px #000, 2px 2px 1px rgba(55, 20, 26, 0.8);
}
main h2 {
  text-shadow: 1px 1px 0px #FFF, 2px 2px 1px rgba(55, 20, 26, 0.8);
}

/* Transform and transition */

header h1 span {
  -webkit-transform: translate(-1.4rem, -3rem);
  transform: translate(-1.4rem, -3rem);
}

nav a {
  -webkit-transform: rotate(-50deg);
  transform: rotate(-50deg);
}
nav a:hover, nav a.active {
  -webkit-transform: rotate(-50deg) scale(1.2);
  transform: rotate(-50deg) scale(1.2);
}
a, a:hover, article.contact .submit input, article.contact .submit input:hover, .buttons-title, .buttons img, .user-contact strong {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
article ul.buttons li#code a:hover .buttons-title {
  -webkit-transform: rotate(-5deg) scale(1.1) translate(0, -100%);
  transform: rotate(-5deg) scale(1.1) translate(0, -100%);
}
article ul.buttons li#traductions a:hover .buttons-title {
  -webkit-transform: rotate(3deg) scale(1.1) translate(0, -100%);
  transform: rotate(3deg) scale(1.1) translate(0, -100%);
}
article ul.buttons li#conseils a:hover .buttons-title{
  -webkit-transform: rotate(4deg) scale(1.1) translate(0, -100%);
  transform: rotate(4deg) scale(1.1) translate(0, -100%);
}
article ul.buttons li#galerie a:hover .buttons-title {
  -webkit-transform: rotate(-2deg) scale(1.1) translate(0, -100%);
  transform: rotate(-2deg) scale(1.1) translate(0, -100%);
}

article ul.buttons li#code a:hover img, article ul.buttons li#galerie a:hover img {
  -webkit-transform: scale(0.5) translate(250%, 150%);
  transform: scale(0.5) translate(250%, 150%);
}
article ul.buttons li#traductions a:hover img, article ul.buttons li#conseils a:hover img {
  -webkit-transform: scale(0.5) translate(-250%, 150%);
  transform: scale(0.5) translate(-250%, 150%);
}

main .user-contact a:hover strong {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* Animations */
@-webkit-keyframes AutoSlide {
    0%, 15%, 100% {
        left: 0; /*1ère image*/
    }
    35%, 50% {
        left: -100%; /*2ème image*/
    }
    70%, 85% {
        left: -200%; /*3ème image*/
    }
}
@keyframes AutoSlide {
    0%, 15%, 100% {
        left: 0; /*1ère image*/
    }
    35%, 50% {
        left: -100%; /*2ème image*/
    }
    70%, 85% {
        left: -200%; /*3ème image*/
    }
}

/* For medium and little devices screen < 1024px and < 530px
**************************************************************************** */

@media screen and (max-width: 1024px) {
  .content {
    padding: 0 1rem 1rem 1rem;
  }
  dl.contact {
    background-image: none;
    padding: 1rem;
  }

  .slideshow {
      position: static;
      width: 100%;
      height: 100%;
      overflow: hidden;
  }

  .sContent {
      position: static;
      width: auto;
      -webkit-animation-duration: 0;
              animation-duration: 0;
  }
  .sContent li {
      display: inline;
  }
}
@media screen and (max-width: 600px) {
  header h1 {
    margin: 0;
    padding: 0.8rem 0.2rem;
    text-align: center;
    font-size: 5.8rem;
  }
  nav ul {
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    background: rgb(55, 20, 26);
  }
  header h1 span {
    font-size: 1.2rem;
    padding: 0 0.5rem;
    -webkit-transform: translate(-1rem, -2.6rem);
    transform: translate(-1rem, -2.6rem);
  }
  nav li a:link, nav li a:hover, nav li a.active {
    margin: 0.5rem;
    padding: 0 0.5rem;
    -webkit-transform: scale(1) rotate(0);
            transform: scale(1) rotate(0);
    -webkit-box-shadow: none;
            box-shadow: none;
    font-size: 1.6rem;
    background: none;
  }
  nav li a:hover, nav li a.active {
    background: #FFF;
  }
  main h2 {
    font-size: 2.5rem;
    padding: 1.5rem 1rem;
  }
  article ul, article dl {
    margin: 0.5rem;
  }
  article ul.buttons {
    margin: 0;
  }
  article ul.buttons li {
    width: 100%;
  }
  article figure img {
    padding: 1rem;
  }
  .jjbform, .jjbaddress {
    width: 98%;
  }
  article.contact form, article.contact div.messagesent {
    border: none;
    padding: 0;
  }
  
  dl.alsacreations, dl.jojaba-perso, dl.languages, dl.cms, #ba-erp dl, dl.forums, dl.collaborate, dl.books, dl.sites, figcaption dl, dl.translation {
    background-image: none;
    padding: 1rem;
  }
  footer #mentions-legales, footer #favoris, footer #a-propos {
    width: auto;
    padding: 2rem 1rem;
  }
}
