/**
 * @file
 * Savoir styling.
 */

html {
  background-color: #fff;
  height: 100%;
}

body {
  color: #292929;
  font-family: "Fira Sans", sans-serif;
  font-size: 1rem;
  /*font-size: .9rem;*/
  font-weight: 400;
  font-style: normal;
  transition: font-size .5s;
}

a {
  color: black;
}

.node__content {
  line-height: 2.7ex;
}

.node__links {
  margin-bottom: 5ex;
}

ul.inline li.node-readmore {
  padding: 0;
  font-size: 95%;
}

/**
 * Contact form
 */
.contact-message-form input[type="email"],
.contact-message-form input[type="text"] {
  width: 98%;
}

/**
 * Acoount menu
 */

#block-carrefour-account-menu ul {
  line-height: 12px;
  text-align: right;
}

#block-carrefour-search-form-narrow,
#block-carrefour-account-menu,
#block-carrefour-account-menu li {
  display: inline-block;
}

#block-carrefour-account-menu a {
  color: white;
  text-decoration: none;
  padding-left: .9em;
}

#block-carrefour-account-menu a:active,
#block-carrefour-account-menu a:hover{
  text-decoration: underline;
}

/* Presentation block */
.presentation-image {
  position: relative;
  margin-bottom: 10.5em;
}

.presentation-info {
  background-color: rgba(0, 0, 0, 1); /* requires alpha */
  color: white;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10.5em;
  padding: 1em;
}

.presentation-info .field--name-field-author {
  font-weight: bold;
}

.presentation-info .field--name-field-product-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  line-height: 2.4rem;
  padding: 1ex 0;
}

/* Product CTO */
.product-cto {
  background-color: #FFCD34;
  display: grid;
  grid-template-columns: minmax(1vw, 100vw) 10em 3em  1em;
  font-size: 1rem;
  line-height: 1rem;
  padding: .4ex 0;
}

.cto-binding {
  grid-column: 2;
  text-transform: uppercase;
}

.cto-price {
  grid-column: 2;
  font-size: .8rem;
  font-weight: bold;
  color: #032447;
}

.cto-cart {
  grid-column: 3;
  grid-row: 1 / 3;
  background-image: url("../images/cart.svg");
  background-repeat: no-repeat;
  background-color: transparent;
  background-position-y: 5px;
  text-indent: -9999px;
  margin: -4px 0 4px 0;
  background-size: 62%;
  height: 4ex
}

@media all and (min-width: 570px) {
  .presentation-image {
    margin-bottom: -0.4em;
  }

  .presentation-info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: inherit;
    width: 18em;
    background-color: rgba(0, 0, 0, 0.7); /* requires alpha */
    color: white;
    padding: 1em;
    margin: 0 1.5em 2em 0;
  }

  .presentation-info .field--name-field-author {
    font-weight: bold;
  }

  .presentation-info .field--name-field-product-title {
    font-size: 2.2rem;
    line-height: 2.4rem;
    padding: 1ex 0;
  }
}

@media all and (min-width: 569px) and (max-width: 850px) {
  #block-carrefour-account-menu ul {
    line-height: 12px;
  }

  /**
   * Search form.
   */
  .search-block-form {
    margin-top: 0;
  }
  #block-carrefour-search-form-narrow,
  .search-block-form {
    text-align: right;
  }

  input[type="search"] {
    width: 80%;
  }
}

@media all and (min-width: 851px) {
  #block-carrefour-account-menu ul {
    line-height: 12px;
  }

  /**
   * Search form.
   */
  .search-block-form {
    text-align: right;
    margin-top: 3ex;
  }

  input[type="search"] {
    width: 100%;
  }

  /**
   * Footer
   */
  #block-carrefour-block-5 {
    clear: both;
    margin-top: 20ex;
    font-size: 66%;
  }
}

@media all and (min-width: 851px) and (max-width: 1200px) {
  body {
    /*font-size: 108%;*/
  }
}

@media all and (min-width: 1201px) {
  body {
   /* font-size: 125%;*/

  }
}

/**
 * Debug
 */
.xdebug-var-dump {
  width: 100%;
}

/**
 * Debug
 */

pre {
  margin: 0;
}
