
#index {
  text-align: center;
}

#recipes-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.recette-cuisine {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.plus {
  margin: 20px;
}

.fiche-recette .cadre a {
  color: #004B96;
}
.fiche-recette .categorie {
  text-align: center;
}
.fiche-recette .categorie a {
  color: #000;
  font-size: 20px;
}
/* */
.fiche-recette.fiche-article {
  padding: 50px;
}
.fiche-recette.fiche-article p {
  font-size: 20px;
  line-height: 32px;
}



.page .tags {
  margin: 10px;
  background: #eee;
}


/* pagination */

.pagination {
  font-size: 24px;
  line-height: 42px;
  text-align: center;
  margin: 50px 0;
}
.pagination a {
  color: #333 !important;
  background: #ddd;
  margin: 5px;
  padding: 2px 12px;
  text-decoration: none;
  transition: ease 0.8s;
}
.pagination a:hover {
  background: #ccc;
  color: #000;
}
.pagination span {
  background: #000 none repeat scroll 0 0;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  margin: 5px;
}




#navbt {
  text-align: center;
  font-size: 18px;
  margin: 16px;
}
#navbt span {
  cursor: pointer;
}





.sider {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  background-color: rgba(0,0,0,0.8);
  overflow-x: hidden;
  transition: 0.5s;
  box-shadow: 0 0 8px #666;
}

.sider a {
  padding: 4px 8px 4px 0px;
  text-decoration: none;
  font-size: 20px;
  color: #fff;
  text-shadow: 1px 1px 0px #000;
  display: block;
  transition: 0.3s;
  text-transform: capitalize
}
.sider a:hover {
  text-decoration: underline;
  text-shadow: 2px 2px 2px #000;
}
.sider h4 {
  font-size: 18px;
  padding: 10px 20px;
  margin: -60px 0 20px 0;
  color: #ddd;
  text-align: right;
  background: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.sider h4 span {
  font-size: 14px;
  display: block;
  text-transform: none;
  font-weight: normal;
}
.sider a:hover {
  color: #f1f1f1;
}
.side ul {
  margin: 0;
  padding: 0;
}
.sider li {
  margin: 0;
  list-style-type: none;
}
.sidecat {
  top: 0;
  left: 0;
  padding-top: 60px;
}
.sidetype {
  top: 0;
  right: 0;
  padding-top: 60px;
}
.sidetype h4 {
  text-align: left;
}
.sider .closebtn {
  position: absolute;
  top: -10px;
  font-size: 56px;
  color: red;
}
.sider .closebtn:hover {
  text-decoration: none;
}
.sidecat .closebtn {
  left: 10px;
}
.sidetype .closebtn {
  right: 0;
}

@media screen and (max-height: 450px) {
  .sidetype {padding-top: 15px;}
  .sidetype a {font-size: 18px;}
  .sidecat {padding-top: 15px;}
  .sidecat a {font-size: 18px;}
}










/* Buttons */

.btn {
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: red;
}

.btn:focus {
  outline: none;
}

.btn--search {
  font-size: 1.5em;
}

.btn--hidden {
  pointer-events: none;
  opacity: 0;
}


/* Reset Search Input */

.search__input {
  border: 0;
  background: transparent;
  border-radius: 0;
  -webkit-appearance: none;
}

.search__input:focus {
  outline: none;
}


/* Icons */

.icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  fill: currentColor;
}



/* Demo colors */

.demo-4 { color: #fff;  }
.demo-4 main {  background-image: url(../img/bg_4.svg); }
.demo-4 a, .demo-4 .btn { color: #a4a186; }
.demo-4 .btn--search-close { color: #ab3a3a; }




/* Layout for search container */
.search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.js .search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
}

.btn--search-close {
  font-size: 2em;
  position: absolute;
  display: block;
  top: 1.25em;
  right: 1.25em;
  background: url(img/close.png) no-repeat center;
}


.search__form {
  margin: 5em 0;
}

.search__input {
  font-family: inherit;
  font-size: 6vw;
  line-height: 1;
  display: inline-block;
  box-sizing: border-box;
  width: 110%;
  max-width: 1200px;
  padding: 10px 100px 10px 10px;
  color: #fff;
  border-bottom: 6px solid;
}

.search__input::-webkit-input-placeholder {
  /* WebKit, Blink, Edge */
  color: #fff;
}

.search__input::-moz-placeholder {
  opacity: 1;
  /* Mozilla Firefox 19+ */
  color: #fff;
}

.search__input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #fff;
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.search__input::-ms-clear {
  display: none;
}


@media (min-width: 600px) {
  .search__input {
    font-size: 4vw;
  }
}
@media (min-width: 900px) {
  .search__input {
    font-size: 6vw;
  }
}
@media (min-width: 1200px) {
  .search__input {
    font-size: 4.6vw;
  }
}




.search__ok {
  background: url(img/loupe.png) no-repeat center;
  border: 0 none;
  width: 32px;
  height: 32px;
}


.search__info {
  font-size: 105%;
  font-weight: bold;
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 0.85em 0;
  text-align: right;
  color: #fff;
}


/************************/
/* Transitions      */
/************************/

.js .search {
  pointer-events: none;
}

.js .search--open {
  pointer-events: auto;
  position: fixed;
  z-index: 9999;
}



.js .search--open + .page {
/*  position: fixed;*/
    filter:blur(2px);
    -o-filter:blur(2px);
    -ms-filter:blur(2px);
    -moz-filter:blur(2px);
    -webkit-filter:blur(2px);
    /*background: rgba(0,0,0,0.2)*/
}

/* Close button */
.btn--search-close {
  opacity: 0;
  transform: scale3d(0.8, 0.8, 1);
  transition: opacity 0.5s, transform 0.5s;
  content: 'X';
  color: #fff;
}

.search--open .btn--search-close {
  opacity: 1;
  transform: scale3d(1, 1, 1);
  content: 'X';
  
}

/* Search input */
.js .search__form,
.js .search__info {
  opacity: 0;
  transform: translate3d(0,150px,0);
  transition: opacity 1s, transform 1s;
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.js .search__info {
  transform: translate3d(0,20px,0);
}

.js .search--open .search__form,
.js .search--open .search__info {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.js .search--open .search__info {
  transition-delay: 0.35s;
}

.js .search--open { 
background: rgb(0,0,0,0.85); /* Old browsers */
}


@media (min-width: 1024px) {
  .fiche-recette #recipe {
    flex-direction: row;
  }
  .fiche-recette #ingredients,
  .fiche-recette .img-recette,
  .fiche-recette .img-recette img {
    width: 400px;
    margin: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .recette-cuisine { width: 40%; margin: 10px; }
}


@media (max-width: 767px) {
  header h1 {
    font-size: 40px;
    line-height: 50px;
  }
  .recette-cuisine { width: 90%; }
  #navbt span {
    margin: 4px;
  }
    #newsletter {
    flex-direction: column;
  }
  .introindex {
    border-radius: 10px;
    margin: 10px;
  }
}