/*SEARCH BOX*/
*,
*::after,
*::before {
  box-sizing: border-box;
}

.main-wrap {
  position: relative;
  width: 100%;
  /*height: 100vh; front-end devs.. be careful */
}

/* Buttons */

.btn:focus {
  outline: none;
}

.btn--search {
  font-size: 1.5em;
}

.btn--hidden {
  pointer-events: none;
  opacity: 0;
}

/* Icons */

.icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  fill: currentColor;
}

/* Reset Search Input */

.search__input {
  border: 0;
  background: transparent;
  border-radius: 0;
  -webkit-appearance: none;
}

.search__input:focus {
  outline: none;
}

/* Layout for search container */
.search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.js .search {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.js .search::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
}

.btn--search-close {
  font-size: 2em;
  position: absolute;
  top: -4.7em;
  left: 4.75em;
  color: var(--grey-alt);
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  display: none;
}

.js .btn--search-close {
  display: block;
}

.search__form {
  position: relative;
  margin: 5em 0;
  width: 75%;
}

.search--open .search-icon {
  opacity: 1;
}

.search-icon {
  opacity: 0;
  position: absolute;
  top: 16px;
  right: 140px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--main-color);
}

.search__input {
  font-family: inherit;
  font-size: 40px;
  line-height: 1;
  display: inline-block;
  box-sizing: border-box;
  width: 75%;
  padding: 0.05em 0;
  color: var(--lighter-black);
  border-bottom: 2px solid var(--grey-alt);
}

.search__input::-webkit-input-placeholder {
  /* WebKit, Blink, Edge */
  color: var(--lighter-black);
}

.search__input::-moz-placeholder {
  opacity: 1;
  /* Mozilla Firefox 19+ */
  color: var(--lighter-black);
}

.search__input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--lighter-black);
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.search__input::-ms-clear {
  display: none;
}

.search__info {
  display: block;
  width: 75%;
  margin: 0 auto;
  padding: 0.85em 0;
  text-align: left;
  color: var(--grey-alt);
}

.search__related {
  display: flex;
  width: 75%;
  text-align: left;
  pointer-events: none;
}

.search__suggestion {
  width: 50%;
}

.search__suggestion:first-child {
  padding: 0 2em 0 0;
}

.search__suggestion:last-child {
  padding: 0 0 0 2em;
}

.search__suggestion h3 {
  font-size: 1.35em;
  margin: 0;
}

.search__suggestion h3::before {
  content: '\21FE';
  display: inline-block;
  padding: 0 0.5em 0 0;
}

.search__suggestion p {
  font-size: 1.15em;
  line-height: 1.4;
  margin: 0.75em 0 0 0;
}

/************************/
/* Transitions 			*/
/************************/

.js .main-wrap {
  position: relative;
  transition: transform 0.5s;
}

.js .main-wrap--move {
  transform: scale3d(0.7,0.7,1);
}

.js .main-wrap--move .btn--search {
  pointer-events: none;
  opacity: 0;
}

.js .search {
  pointer-events: none;
}

.js .search--open {
  pointer-events: auto;
}

.js .search::before {
  opacity: 0;
  transition: opacity 0.5s;
}

.js .search--open::before {
  opacity: 1;
}

/* Close button */
.btn--search-close {
  opacity: 0;
  transition: opacity 0.5s;
}

.search--open .btn--search-close {
  opacity: 1;
}

/* Search form with input and description */

.search__suggestion,
.search__info {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: opacity 0.4s, transform 0.4s;
}

.search--open .search__suggestion,
.search--open .search__info {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.search--open .search__suggestion:first-child {
  transition-delay: 0.15s;
}

.search--open .search__suggestion:nth-child(2) {
  transition-delay: 0.2s;
}

.js .search__input {
  transform: scale3d(0,1,1);
  transform-origin: 0% 50%;
  transition: transform 0.3s;
}

.js .search--open .search__input {
  transform: scale3d(1,1,1);
  transition-duration: 0.5s;
}

@media screen and (max-width: 40em) {
  .btn--search-close {
    font-size: 1.25em;
  }
  .search__suggestion {
    font-size: 80%;
    width: 100%;
  }
  .search__suggestion:nth-child(2),
  .search__suggestion:nth-child(3) {
    display: none;
  }
}
/*HERE GOES MEDIA QUERIES*/
@font-face {
  font-family: 'urbalyon';
  src:  url('../fonts/urbalyon.eot?126uz9');
  src:  url('../fonts/urbalyon.eot?126uz9#iefix') format('embedded-opentype'),
    url('../fonts/urbalyon.ttf?126uz9') format('truetype'),
    url('../fonts/urbalyon.woff?126uz9') format('woff'),
    url('../fonts/urbalyon.svg?126uz9#urbalyon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.urb-icon {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'urbalyon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-contact:before {
  content: "\e900";
}
.icon-etude:before {
  content: "\e901";
}
.icon-hexagone2:before {
  content: "\e902";
}
.icon-lettre_informations:before {
  content: "\e903";
}
.icon-linkedin:before {
  content: "\e904";
}
.icon-messagerie:before {
  content: "\e905";
}
.icon-Observatoire:before {
  content: "\e906";
}
.icon-photos_cartos:before {
  content: "\e907";
}
.icon-recherche:before {
  content: "\e908";
}
.icon-ressources:before {
  content: "\e909";
}
.icon-ressources_documentaires:before {
  content: "\e90a";
}
.icon-scoopit:before {
  content: "\e90b";
}
.icon-vie_agence:before {
  content: "\e90c";
}
.icon-webtv:before {
  content: "\e90d";
}
.icon-agenda:before {
  content: "\e90e";
}
.icon-carto:before {
  content: "\e90f";
}
.icon-uniE910:before {
  content: "\e910";
}
.icon-uniE911:before {
  content: "\e911";
}
.icon-uniE912:before {
  content: "\e912";
}
.icon-uniE913:before {
  content: "\e913";
}
.icon-plus:before {
  content: "\e914";
}
.icon-hexagon:before {
  content: "\e915";
}
.icon-carret-down:before {
  content: "\e916";
}
.icon-social-share:before {
  content: "\e917";
}
.icon-common-share:before {
  content: "\e918";
}
.icon-lense:before {
  content: "\e919";
}
.icon-tel:before {
  content: "\e91a";
}
.icon-video:before {
  content: "\e91b";
}
.icon-youtube:before {
  content: "\e91c";
}
.icon-close:before {
  content: "\e91d";
}
.icon-check:before {
  content: "\e91e";
}
.icon-download:before {
  content: "\e91f";
}
.icon-file:before {
  content: "\e920";
}
.icon-carret-down-alt:before {
  content: "\e921";
}
.icon-carret-right:before {
  content: "\e922";
}
.icon-rss:before {
  content: "\e923";
}
.icon-geoclip:before {
  content: "\e924";
}
.icon-image:before {
  content: "\e925";
}
.icon-it:before {
  content: "\e926";
}
.icon-job:before {
  content: "\e927";
}
.icon-arrow-right:before {
  content: "\e928";
}
.icon-mail:before {
  content: "\e929";
}
.icon-map:before {
  content: "\e92a";
}
.icon-member-desktop:before {
  content: "\e92b";
}
.icon-member-mobile:before {
  content: "\e92c";
}
.icon-attachment:before {
  content: "\e92d";
}
.icon-marker-alt:before {
  content: "\e92e";
}
.icon-big-lense:before {
  content: "\e92f";
}
