/** 
Copyright Souke (2018)

contact@souke.fr

Ce logiciel est un programme informatique servant à aider les producteurs 
à distribuer leur production en circuits courts. 

Ce logiciel est régi par la licence CeCILL soumise au droit français et
respectant les principes de diffusion des logiciels libres. Vous pouvez
utiliser, modifier et/ou redistribuer ce programme sous les conditions
de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA 
sur le site "http://www.cecill.info".

En contrepartie de l'accessibilité au code source et des droits de copie,
de modification et de redistribution accordés par cette licence, il n'est
offert aux utilisateurs qu'une garantie limitée.  Pour les mêmes raisons,
seule une responsabilité restreinte pèse sur l'auteur du programme,  le
titulaire des droits patrimoniaux et les concédants successifs.

A cet égard  l'attention de l'utilisateur est attirée sur les risques
associés au chargement,  à l'utilisation,  à la modification et/ou au
développement et à la reproduction du logiciel par l'utilisateur étant 
donné sa spécificité de logiciel libre, qui peut le rendre complexe à 
manipuler et qui le réserve donc à des développeurs et des professionnels
avertis possédant  des  connaissances  informatiques approfondies.  Les
utilisateurs sont donc invités à charger  et  tester  l'adéquation  du
logiciel à leurs besoins dans des conditions permettant d'assurer la
sécurité de leurs systèmes et ou de leurs données et, plus généralement, 
à l'utiliser et l'exploiter dans les mêmes conditions de sécurité. 

Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
pris connaissance de la licence CeCILL, et que vous en avez accepté les
termes.
*/

@import "compass";

$dir-img: '../img/';
$dir-fonts: '../fonts/';
@import "_fonts.scss";

$color-primary: #ee6f42;
$color-secondary: #e4ac07;
$color-gray-light: #f4efe8;
$color-gray: #ece4d8;
$color-text: black;

html, body {
  height: 100%;
}

#wrapper {
  min-height: 100%;
  position: relative;
}

body {
  position: relative;
  color: black !important;
  //background-image: url($dir-img+'betterave.png') !important;
  background-color: $color-gray-light !important;
  background-repeat: no-repeat;
  background-position: center -100px;
  background-size: 90% auto !important;
  font-family: 'worksans_regular', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  margin: 0;
  padding: 0;
}

strong {
  font-weight: bold;
}

.help-block {
  padding-bottom: 5px;
}

.row {
  margin: 0px;
}

#main {
  background-color: transparent;
  padding-bottom: 65px;
  min-height: 500px;

  a {
    color: $color-text;
    text-decoration: underline;

    &:focus, &:active {
      outline-color: gray;
      color: $color-primary;
    }

    &:hover {
      color: $color-primary;
    }

    &.btn {
      text-decoration: none;
    }
  }
}

#section-user-top {
  .navbar {
    margin-bottom: 0px;
    @include border-radius(0px none);
  }
}

p {
  padding-bottom: 20px;
  line-height: 21px;
}

ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 10px;

  li {
    padding-left: 5px;
  }
}

.clr {
  clear: both;
}

#wrapper {
  .btn {
    background-image: none;
    @include border-radius(0px);
  }
}

#main .alert {
  background-image: none;
  background-color: white;
  border-bottom-width: 3px;
}

.alert {
  &.alert-warning {
    a {
      color: #8a6d3b;
    }
  }
}

#main .modal {

  .modal-content {
    @include border-radius(0px);
  }

  .modal-header {
    .modal-title {
      color: $color-secondary;
    }
  }

  .modal-body {

    h1, h2, h3,h4, h5, h6 {
      color: black;
    }

    h2 {
      font-size: 1.5rem;
    }
    h3 {
      font-size: 1.3rem;
    }
    h4 {
      font-size: 1.1rem;
    }

    .panel {
      @include box-shadow(none);
    }
  }

  .modal-footer {

  }
}


#main {
  position: relative;

  .inner {
    width: 960px;
    margin: 0px auto;
  }
}

section#header-title {
  padding-top: 35px;
  padding-bottom: 35px;
  background-color: white;

  h1 {
    text-align: center;
    color: black;
    font-family: 'latinmodernmono_regular';
    font-size: 33px;

    .glyphicon {
      position: relative;
      top: 4px;
      margin-right: 10px;
    }
  }
}

#block-demo {
  padding: 10px 0px;
  background-color: $color-primary;
  color: white;
  text-align: center;

  a {
    color: white;
    text-decoration: underline;
  }
}

#header {
  z-index: 100;
  border: 0px none;

  .container {
    position: relative;
  }

  .collapse {
    padding-right: 0px;
  }

  #env-dev {
    font-family: 'comfortaabold';
    text-align: center;
    font-size: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: $color-primary;
    background-color: transparent;
    position: absolute;
    top: 18px;
    left: 79px;
  }

  #link-home {
    position: absolute;
    top: 10px;
    left: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    text-decoration: none;
    font-size: 26px;
    display: block;


    img {
      @include transition(0.1s linear);
      height: 63px;
      margin-bottom: 5px;
      float: left;
    }

    &:hover {
      img {
        //filter: brightness(0);
        filter: brightness(0.9);
      }
    }

    .text {
      float: left;
      padding-left: 10px;

      .bap {
        font-family: "comfortaalight";
        font-size: 24px;
      }

      .plateforme {
        font-size: 17px;
        font-family: "myriadpro-light";
        color: $color-primary;
      }
    }

    .badge-environment-beta {
      top: 28px;
      left: 10px;
    }
  }

  nav {
    height: 90px;
    position: relative;
    top: 3px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    border: 0px none;
    background: none;
    @include box-shadow(none) ;

    .navbar-toggle {
      background-color: white;
    }

    .collapse {
      position: absolute;
      bottom: 3px;
      right: 0px;

      ul {
        padding: 0px;
        margin: 0px;
        margin-top: 10px;

        li {
          padding: 0px;
          display: block;

          a {
            display: block;
            text-decoration: none;
            background-color: transparent;
            padding: 7px 0px 4px 0px;
            margin: 0px;
            margin-left: 25px;
            font-family: 'worksans_light';
            text-transform: uppercase;
            color: black;
            font-size: 18px;
            @include box-shadow(none) ;
            @include border-radius(0px);
            border-bottom: solid 4px transparent;

            &:hover, &.active {
              border-bottom: solid 4px $color-secondary;
            }
          }

          &#li-home a {

          }

          &.active {
            a {
              background-color: $color-primary;
              color: white;
            }
          }


          ul {
            li {
              a {
                padding: 10px 10px;
              }
            }
          }

        }
      }
    }
  }
}

.vertical-align {
  display: flex;
  align-items: center;
}

#content {
  position: relative;
  padding: 40px 0px;

  h1, h2, h3, h4, h5, h6 {
    font-family: 'worksans_bold';
    color: $color-secondary;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  .panel {
    background-color: white;
    @include box-shadow(0px 0px 15px #d5d5d5);

    &.panel-padding-large {
      .panel-heading {
        padding: 50px 50px 0px 50px;
      }
      .panel-body {
        padding: 50px;
      }
    }

    &.panel-margin-bottom {
      margin-bottom: 40px;
    }

    .panel-heading {
      border-bottom: 0px;
      padding: 20px;
      border-bottom: solid 1px #e0e0e0;

      h2.panel-title {
        margin: 0px;
        padding: 0px;
        text-align: center;

        .img {
          height: 20px;
          display: none;
        }

        span.the-title {
          font-size: 26px;
          position: relative;
          top: 0px;
          text-transform: none;
        }
      }
    }

    .panel-body {
      background-color: white;
      padding: 30px 20px;

      p {
        padding-bottom: 10px;
      }

      h2.first-title {
        margin-top: 0px;
      }

      h2 {
        margin-bottom: 20px;
      }
    }

    &.panel-default {

      .panel-heading {
        border-bottom: 0px none;
        padding-bottom: 0px;

        .panel-title {
          color: black;
        }
      }
    }

    &.panel-primary {
      border: 0px none;

      .panel-heading {
        border: 0px none;
        background-color: white;

        h2.panel-title {
          color: $color-secondary;
          padding: 0px;

          .the-title {
            font-size: 28px;
          }
        }
      }

      .panel-body {
        border: 0px none;
      }

      .panel-footer {

      }
    }
  }

  .label-producer-signup-closed {
    font-size: 14px;
  }

  #row-functionalities-rates {
    .block {
      position: relative;
      margin-bottom: 25px;
      padding-left: 70px;
      min-height: 50px;

      .bi {
        font-size: 40px;
        position: absolute;
        left: 0px;
        top: -9px;
      }

      p {

      }

      a {
        text-decoration: none;
        color: black;

        &:hover {
          color: $color-primary;
        }
      }
    }

    .block-points-sale-products {
      img {
        width: 40px;
      }
    }
  }

  #block-services {
    .panel-body {
      .panel-default {
        @include box-shadow(none);

        .panel-body {
          padding: 5px;

          h3 {
            margin-top: 0px;
            color: black;
            font-size: 1.2rem;
          }
        }
      }
    }
  }

  #block-rates {
    .panel-default {
      @include box-shadow(none);
      .panel-heading {
        padding: 0px;
        margin-bottom: 20px;
      }
      .panel-body {
        padding: 0px;
      }
    }

    table {
      th {
        font-weight: bold;
        font-size: 14px;
      }
    }
  }

  #btn-demo {
    &:hover, &:focus, &:active {
      color: black;
    }
  }

  #modal-prices {
  }
}


#content #contact {

  display: none;

  .icon {
    width: 55px;
    top: -15px;
    margin-left: -70px;
  }

  .form-control:focus {
    /*@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px $jaune) ;
    border-color: $jaune ;*/
  }

  .form-group {
    text-align: center;
  }

  .img-right {
    float: right;

    img {
      width: 300px;
    }
  }
}

#bookmarked-producers {
  padding: 0px;
  padding-top: 15px;
  padding-bottom: 7px;
  margin: 0px;
  border-bottom: solid 1px #e0e0e0;
  background-color: white;

  h2 {
    float: left;
    font-family: 'highvoltageregular';
    color: $color-text;
    text-align: left;
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    color: $color-text;
  }

  #producers {
    position: relative;
    top: -5px;
    left: 5px;
  }

  #discover {
    padding-bottom: 20px;
    text-align: center;

    p {
      padding-bottom: 0px;
      color: $color-secondary;
    }

    .btn {
      background-color: $color-secondary;
      color: $color-primary;
      border: solid 1px $color-secondary;
    }
  }
}


#footer {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: left;
  padding-top: 22px;
  padding-bottom: 16px;
  background-color: $color-primary;
  border-top: 0px none;
  color: white;

  a {
    color: white;
    font-family: 'worksans_light';
    font-size: 1rem;
    text-decoration: none;
    padding-left: 5px;
    padding-right: 5px;
    border-right: solid 1px white;
    border: 0px none;

    &:hover {
      text-decoration: underline;
    }

    &:last-child {
      border: 0px none;
    }
  }
}

.site-iamproducer {

  .panel {
    text-align: center;
  }

  .word-animate {
    margin-top: 40px;
    margin-bottom: 60px;
    height: auto;

    span.functionality {
      display: inline-block;
      @include border-radius(15px);
      background-color: $color-gray;
      color: black;
      padding: 15px 30px;

      .glyphicon {
        position: relative;
        top: 4px;
        right: 6px;
      }
    }
  }

  .hook {
    font-size: 23px;
    line-height: 28px;
    margin-top: 10px;
    margin-bottom: 30px;
  }
}

.site-producers {

  #producers-list {
    #producer-search {
      margin-bottom: 40px;
      @include box-shadow(0px 0px 15px #d5d5d5);

      .input-group-text {
        padding: 20px;
        background-color: $color-gray-light;
        color: $color-primary;
        font-size: 25px;
        border: 0px none;
        @include border-radius(0px);
        @include box-shadow(-30px 0px 15px -15px $color-gray inset);
      }

      .form-control {
        border: 0px none;
        @include border-radius(0px);
        line-height: 1.1rem;
        font-size: 1.1rem;
        padding: 10px 20px;
        color: black;

        &:focus {
          @include box-shadow(none !important);
        }

        &::placeholder {
          color: gray;
        }
      }
    }

    .alert-no-results {
      display: none;
    }

    .panel {
      margin-bottom: 40px;

      .panel-body {
        border: 0px none;
        overflow: hidden;

        h2 {
          margin-top: 0px;
          margin-bottom: 10px;
          padding-bottom: 0px;

          a.producer-link {
            color: $color-secondary;
            text-decoration: none;
          }

          .btn-bookmark {
            position: relative;
            top: 0px;
            font-size: 1.3rem;
            color: gray;
          }
        }

        p {
          padding-bottom: 0px;
        }

        .producer-type {
          font-family: 'worksans_regular';
          font-size: 1.05rem;
          text-transform: uppercase;
          margin-bottom: 10px;
        }
      }

      .panel-footer {
        border: 0px none;
        padding: 0px;

        a {
          display: block;
          width: 100%;
          height: 50px;
          line-height: 50px;
          overflow: hidden;
          padding-top: 0px;
          padding-bottom: 0px;
          margin: 0px;

          &.btn-secondary {
            color: $color-secondary;
            background-color: white;
            border: solid 1px white;
            @include box-shadow(-30px 0px 15px -15px $color-gray inset);

            &:hover {
              //color: white;
              //background-color: $color-secondary;
              //border: solid 1px $color-secondary;
              background-color: $color-gray-light;
              border: solid 1px $color-gray-light;
              @include box-shadow(none);
            }
          }

          &.btn-primary {

          }
        }
      }

      .logo {
        float: right;
        position: relative;
        background-color: white;
        width: 110px;
        height: 110px;
        @include border-radius(110px);
        border: solid 3px $color-gray;
        text-align: right;
        overflow: hidden;

        .img-logo {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          max-width: 90px;
          max-height: 90px;
        }
      }
    }
  }

  #wrapper-producers-map {
    z-index: 10;

    #producers-map {
      height: 750px;
      border: solid 1px #e0e0e0;

      &.fixed {
        position: fixed !important;
        top: 20px;
        width: 300px;
        //height: 80%;
        height: 750px;
      }

      a {
        text-decoration: none;
      }

      .popup-producer {
        font-size: 14px;
        color: #505050;

        .name {
          font-family: 'worksans_bold';
          color: $color-secondary;
          font-size: 23px;
          margin-bottom: 2px;
        }

        .type {
          font-family: 'worksans_regular';
          text-transform: uppercase;
          font-size: 16px;
          margin-bottom: 5px;
        }

        .address {
          font-family: 'worksans_regular';
          margin-bottom: 14px;
          color: gray;
        }

        .link {
          color: white;
          text-align: right;
        }
      }
    }
  }
}

#content .site-about {
  .panel {
    .panel-heading {
      h2 {
        margin: 0px;
        padding: 0px;
      }
    }
    .panel-body {

      h2 {
        margin-bottom: 20px;
        padding-bottom: 0px;
        margin-top: 0px;
      }

      p:last-child {
        margin-bottom: 0px;
        padding-bottom: 5px;
      }
    }
  }

  #few-numbers {

    .panel-body {
      padding: 0px 20px 20px 20px;
    }

    .item {
      text-align: center;
      padding-top: 20px;
      padding-bottom: 10px;

      .number {
        font-family: 'worksans_bold';
        font-weight: bold;
        font-size: 35px;
        color: $color-primary;
      }

      .description {
        font-size: 16px;
        line-height: 20px;
        color: $color-primary;
        font-family: 'worksans_medium';
        text-transform: uppercase;
      }

      .detail {
        color: gray;
      }
    }
  }

  #carousel-producers-testimonials {

    transition: all 0.4s;
    .item, .carousel-caption {
      transition: all 0.4s;
    }

    .carousel-indicators {
      display: none;
    }

    .carousel-control-next,
    .carousel-control-prev {

      background: none;

      .bi {
        position: absolute;
        top: 0px;
        font-size: 35px;
        color: black;
      }

      &.carousel-control-next .bi {
        right: 0px;
      }

      &.carousel-control-prev .bi {
        left: 0px;
      }
    }

    .carousel-item {
      .carousel-caption {
        top: 20px;
        color: $color-text;
        @include text-shadow(none);
        padding: 0px;

        img {
          display: block;
          $width-logo-carousel: 150px;
          width: $width-logo-carousel;
          height: auto;
          margin: 0px auto 15px auto;
        }

        .producer-testimony {
          margin-bottom: 12px;
        }

        .producer-details {
          font-style: italic;
          color: gray;

          .producer-name {
            color: $color-primary;
          }
        }
      }
    }
  }
}

#content .site-service {
  #panel-go-further {
    text-align: center;
  }
}

#content #mentions {
  padding-top: 20px;

  div.content {
    width: 60%;
    font-size: 90%;
  }

  p {
    padding-bottom: 15px;
  }

  h2 {
    color: black;
    padding-bottom: 40px;
    font-size: 25px;
    line-height: 35px;
    font-family: 'highvoltageregular';
  }

  h3 {
    font-family: "highvoltageregular";
    font-size: 18px;
    padding-bottom: 12px;
    margin-top: 10px;
    color: black;
  }
}

.mentions {
  #main, body {
    //background-color: white ;
  }
}

.vegas-loading {
  display: none;
}


#profil-user {

  .form-group.field-user-no_mail label {
    font-weight: normal;
  }

  .form-group label {
    cursor: pointer;
  }

  #mails-days-distribution {
    .form-group {
      float: left;
      margin-right: 15px;

      label {
        font-weight: normal;
      }
    }
  }

  p.strong {
    font-weight: bold;
  }

  h2 {
    text-transform: none;
    font-size: 25px;

    &:first-child {
      margin-top: 0px;
    }
  }

}

/* login */

$max-width-form: 500px;

.back-white {
  background-color: white;
  padding: 30px;
  @include border-radius(5px) ;
}

.need-help-login-signup {
  margin-top: 30px;
  margin-bottom: 0px;
  padding-bottom: 0px !important;
  text-align: center;
}

.site-login {
  .col-lg-5 {
    margin: 0px auto;
    float: none;
    max-width: $max-width-form;
    @extend .back-white ;
  }
}

/* signup */

form .block-newsletter {
  .help-block-error {
    display: none;
  }
  .help-block {
    margin-top: 3px;
    padding-left: 20px;
    color: gray;
  }
}

.modal-backdrop {
  z-index: 999;
}

.site-signup {
  .col-lg-5 {
    margin: 0px auto;
    float: none;
    max-width: $max-width-form;
    @extend .back-white ;
  }

  #modal-prices {

  }
}

#form-signup {
  #user-producer {
    margin-bottom: 30px;
  }

  #signupform-id_producer {
    option:disabled {
      font-weight: bold;
      color: black;
    }
  }

  #champs-producer {
    display: none;
  }

  #buttons-signup {
    margin-top: 30px;
  }

  .field-signupform-is_test {
    display: none;
  }
}

#col-left {
  padding: 0px;
  z-index: 15;

  .affix {
    width: 25%;
    border-right: solid 1px #e0e0e0;
    background-color: #FAFAFA;
    height: 100%;
  }

  #link-home {
    text-decoration: none;
    font-size: 22px;
    color: black;
    display: block;
    padding: 10px;
    background-color: $color-secondary;

    img {
      height: 50px;
      margin-bottom: 5px;
      float: left;
    }

    .text {
      padding-left: 62px;

      .bap {
        font-family: "comfortaalight";
        font-size: 24px;
      }

      .plateforme {
        font-size: 17px;
        font-family: "myriadpro-light";
        color: $color-primary;
      }
    }
  }

  h2 {
    font-family: 'myriadpro-regular';
    color: black;
    margin: 0px;
    margin-bottom: 10px;
    padding: 15px 0px 5px 15px;
  }

  #links {
    background-color: white;
    margin-bottom: 20px;

    ul {
      li {
        a {
          text-align: center;
          border-right: solid 1px #e0e0e0;

          &:hover {
            background-color: $color-primary;
            color: white;
          }
        }

        &:last-child a {
          border-right: 0px none;
        }
      }
    }
  }

  #producers nav.nav-producers {
    ul {
      li {
        a {
          padding-left: 50px;
          height: 40px;
          //margin-right: 20px ;
        }

        &.active a {
          background-color: $color-primary;
          position: relative;
          color: white;

          &:after {
            right: -40px;
            top: 50%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            border-color: rgba(187, 135, 87, 0);
            border-left-color: #BB8757;
            border-width: 20px;
            margin-top: -20px;
          }
        }
      }
    }
  }

  ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;

    li {
      margin: 0px;
      padding: 0px;

      a {
        text-decoration: none;
        font-family: 'comfortaaregular';
        font-family: 'myriadpro-regular';
        font-size: 15px;
        padding: 10px;
        border-bottom: solid 1px #e0e0e0;
        display: block;
        color: black;

        span.name, span.wording {
          display: none;
        }
      }
    }
  }

  p {
    padding: 20px;
    padding-top: 0px;
    color: gray;
  }
}

#content {
  .header-title {
    height: 79px;
    padding: 20px 20px;
    position: fixed;
    top: 0px;
    width: 100%;
    background-color: white;
    z-index: 10;
    box-sizing: border-box;
    border-bottom: solid 1px #e0e0e0;
    @include box-shadow(0px 0px 8px #e0e0e0) ;

    h1 {
      color: black;
      font-family: 'myriadpro-regular';
      margin: 0px;
      font-size: 25px;
      text-transform: uppercase;
    }

    h2 {
      color: gray;
      text-transform: none;
      font-size: 15px;
      margin-top: 3px;
      line-height: 20px;
    }
  }
}


.header-producer {
  z-index: 1;

  #block-main-img {
    height: 144px;
    overflow: hidden;

    #main-img {
      width: 100%;
      height: auto;
      border: 0px none;
      padding: 0px;
      @include border-radius(0px) ;
    }
  }

  h1 {
    font-family: 'comfortaaregular';
    text-align: center;
    position: absolute;
    top: 30px;
    left: 40px;

    span {
      background-color: rgba(255, 255, 255, 0.8);
      //background-color: rgba(187, 135, 87, 0.6) ;
      //color: white ;
      padding: 10px 30px;
      border: dotted 1px black;
      //@include border-radius(20px) ;
    }
  }
}

nav#menu-producer {
  border-bottom: solid 1px #e0e0e0;
  //background-color: #FAFAFA ;
  ul {
    li {
      padding: 0px;
      margin: 0px;

      a {
        border-right: solid 1px #e0e0e0;
        text-decoration: none;
        @include border-radius(0px) ;

        &:hover {
          background-color: $color-primary;
          color: white;
        }
      }
    }
  }
}

.site-contact {
  .col-lg-6 {
    margin: 0px auto;
    float: none;
  }

  .form-group.submit {
    text-align: right;
  }
}

.site-opinion {
  .col-lg-6 {
    margin: 0px auto;
    float: none;
  }

  .field-opinionform-istest {
    display: none;
  }

  .form-group.submit {
    text-align: center;
  }
}

#site-prices {
  .panel {
    p {
      padding-bottom: 0px;
    }
  }
}

#contact-form {
  .field-contactform-istest {
    display: none;
  }
}

.site-request-password-reset {
  .col-lg-6 {
    margin: 0px auto;
  }
}

@import "_order_system.scss";
@import "_responsive.scss";

