body {
  padding-top: 0 !important;
  font-family: 'Avenir Next';
  background: #fff;
  font-size: 13px;
  line-height: 1.2em;
}

#page-wrapper > header {
  height: 35px;
}

#page--navbar {
  background: #533B78;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.not-front #page--navbar {
  z-index: 1009;
}

#page--navbar .uk-width-expand {
  position: relative;
  margin: 0 -15px;
}
.top a {
  font-size: 0;
}

.top a:before {
  display: none !important;
}

#page--navbar .top {
  position: absolute;
  top: 0;
  right: 0;
}

#page--navbar .top a {
  font-size: 0;
}

#page--navbar > .uk-container {
  width: 100%;
}
.region-nav {
  margin-left: -10px;
}
.region-nav > nav {
  float: left;
}

.uk-navbar-nav a {
  text-transform: uppercase;
}

.uk-navbar-nav > li > a {
  min-height: 35px;
  height: 35px !important;
}

.uk-navbar-dropdown {
  margin-top: 0;
}

#homebutton .uk-margin {
  margin: 0;
}

#pp-nav {
  right: -30px !important;
  transition: right 0.3s;
}

.pp-viewing-aitia #pp-nav,
.pp-viewing-h-bergement #pp-nav,
.pp-viewing-pr-vention #pp-nav,
.pp-viewing-ressources #pp-nav,
.pp-viewing-th-rapeutique #pp-nav {
  transition: right 0.3s 0.7s;
  right: 17px !important;
}

#pp-nav ul li:first-of-type {
  display: none;
}
#pp-nav ul li span {
  transition: background 0.4s, border-color 0.9s;
}
#pp-nav ul li.active span {
  transition: background 0.4s 0.4s, border-color 0.9s;
}

#pagepiling {
  opacity: 0;
  position: relative;
  font-size: 13px;
  line-height: 1.2em;
}

#pagepiling .pp-section {
  background: #eee;
  overflow: hidden;
}
#pagepiling .pp-section.active {
  background: #fff;
}

#pagepiling .uk-article-title {
  display: none;
}

#pagepiling .header a {
  color: #fff;
}

.not-front article {
  text-align: justify;
  margin-bottom: 50px;
}

.not-front > .uk-grid > .uk-width-1-5 {
  position: relative;
}
.not-front .logo-wrapper {
  position: fixed;
  top: 35px;
  left: 0;
  width: 20%;
}

.logo-wrapper {
  position: relative;
  text-align: center;
  margin-top: 82px;
}

.logo-wrapper .image .cls-1 {
  transition: fill 0.9s;
}
.logo-wrapper .menu li {
  display: none;
  opacity: 0;
}
.pp-viewing-aitia .logo-wrapper li,
.not-front .logo-wrapper li {
  display: block !important;
  opacity: 1 !important;
}


.logo-wrapper .menu {
  margin-top: 10px;
}
.logo-wrapper .menu a {
  padding: 0;
}
.logo-wrapper .menu a .bw {
  display: none;
}

.cat-aitia #page--navbar,
.cat-aitia footer .footer {
  background: #533B78;
}
.cat-aitia #page-title,
.cat-aitia .uk-article {
  color: #533B78;
}
.cat-aitia .logo-wrapper .image .cls-1 {
  fill: #533b78;
}

.cat-hebergement #page--navbar,
.cat-hebergement footer .footer {
  background: #0064A0;
}
.cat-hebergement #page-title,
.cat-hebergement .uk-article {
  color: #0064A0;
}
.cat-hebergement .logo-wrapper .image .cls-1 {
  fill: #0064A0;
}

.cat-prevention #page--navbar,
.cat-prevention footer .footer {
  background: #3EAEC7;
}
.cat-prevention #page-title,
.cat-prevention .uk-article {
  color: #3EAEC7;
}
.cat-prevention .logo-wrapper .image .cls-1 {
  fill: #3EAEC7;
}

.cat-ressources #page--navbar,
.cat-ressources footer .footer {
  background: #C05E2D;
}
.cat-ressources #page-title,
.cat-ressources  .uk-article {
  color: #C05E2D;
}
.cat-ressources .logo-wrapper .image .cls-1 {
  fill: #C05E2D;
}

.cat-therapeutique #page--navbar,
.cat-therapeutique footer .footer {
  background: #60A955;
}
.cat-therapeutique #page-title,
.cat-therapeutique .uk-article {
  color: #60A955;
}
.cat-therapeutique .logo-wrapper .image .cls-1 {
  fill: #60A955;
}


#pagepiling .navbarbg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.9s;
  height: 35px;
  -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
}

#pagepiling > .links {
  position: relative;
  margin-top: 24px;
  text-align: center;
}

#pagepiling > .links a {
  padding: 0;
}

#pagepiling > .links .color,
.pp-viewing-intro #pagepiling > .links li,
.pp-viewing-aitia #pagepiling > .links li,
.pp-viewing-h-bergement #pagepiling > .links li[for="h-bergement"],
.pp-viewing-pr-vention #pagepiling > .links li[for="pr-vention"],
.pp-viewing-ressources #pagepiling > .links li[for="ressources"],
.pp-viewing-th-rapeutique #pagepiling > .links li[for="th-rapeutique"] {
  display: none;
}

.pp-viewing-h-bergement #pagepiling li[for="h-bergement"] a,
.pp-viewing-pr-vention #pagepiling li[for="pr-vention"] a,
.pp-viewing-ressources #pagepiling li[for="ressources"] a,
.pp-viewing-th-rapeutique #pagepiling li[for="th-rapeutique"] a {
  transform: scale(1) !important;
}

.not-front .logo-wrapper .links .color,
.cat-aitia .logo-wrapper .links,
.cat-footer .logo-wrapper .links,
.cat-hebergement .logo-wrapper > .menu li:not([for="h-bergement"]),
.cat-hebergement .logo-wrapper .links li[for="h-bergement"],
.cat-prevention .logo-wrapper > .menu li:not([for="pr-vention"]),
.cat-prevention .logo-wrapper .links li[for="pr-vention"],
.cat-ressources .logo-wrapper > .menu li:not([for="ressources"]),
.cat-ressources .logo-wrapper .links li[for="ressources"],
.cat-therapeutique .logo-wrapper > .menu li:not([for="th-rapeutique"]),
.cat-therapeutique .logo-wrapper .links li[for="th-rapeutique"]{
  display: none !important;
}

.not-front .logo-wrapper .links .bw {
  display: inline-block;
}

.navbarbg div.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  opacity: 0;
}

.navbarbg .uk-nav {
  margin-left: -15px;
  position: relative;
}

#pagepiling .navbarbg a {
  color: #fff;
  padding: 10px 15px;
  min-height: 35px;
  box-sizing: border-box;
  font-family: 'Avenir Next';
  position: relative;
}

#pagepiling .navbarbg a:before {
  content: '';
  display: block;
  position: absolute;
  left: 15px;
  right: calc(102% - 15px);
  bottom: 10px;
  height: 1px;
  background-color: currentColor;
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
  -webkit-transition-property: right;
  transition-property: right;
}

#pagepiling .navbarbg a:hover:before {
  right: 15px;
}


#pagepiling .navbarbg .uk-navbar-dropdown a {
  color: #000;
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 0;
}

#pagepiling .navbarbg .uk-navbar-dropdown a:before {
  display: none;
}


.navbarbg .top {
  position: absolute;
  top: 0;
  right: 0;
}

.top a {
  background: url(/themes/aitia/images/totop.svg) center center no-repeat;
  background-size: 23px;
  font-size: 0 !important;
  width: 35px;
}

#pagepiling .content.uk-grid {
  position: relative;
  top: 84px;
  text-align: justify;
}

#pagepiling .content .uk-text-lead {
  display: none;
}

#pagepiling .content .more-link {
  text-align: right;
}
#pagepiling .content .more-link a {
  color: #221f20;
  text-decoration: underline;
}

#intro .content {
  top: 0;
  text-align: center;
  transform: translate(-50%,-50%) scale(0.5);
  transition: top 0s 0.7s, transform 0s 0.7s;
}
#intro:not(.pp-section) .content,
#intro.active .content {
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  transition: top 0.7s 0.25s, transform 0.7s 0.25s;
}

#intro .logo {
  margin-bottom: 0;
}

#intro .logo img {
  height: 240px;
  width: 180px;
}

#intro .menu {
  margin: 0;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  line-height: 16px;
}

#intro .menu li {
  display: table;
  height: 30px;
  width: 100%;
}
#intro .menu li a {
  display: table-cell;
  padding: 0;
  vertical-align: middle;
}

.menu li a {
  transition: all 0.3s;
}
.menu:hover li a:not(:hover) {
  opacity: 0.5;
  transform: scale(0.95);
}
.menu li a:hover {
  transform: scale(1.1);
  opacity: 1;
}

#intro .menu li a:hover {
  transform: scale(1.2);
}



#intro .menu a img {
  width: 170px;
}
#intro .menu .bw {
  display: none;
}

#intro .bg-wrapper {
  /*
  transform: scale(1);
  */
  opacity: 0;
  transition: opacity 0s 0.7s, transform 0s 0.7s;
}
#intro.active .bg-wrapper {
  opacity: 1;
  /*
  transform: scale(1.2);
  */
  transition: opacity 0.5s 0.2s,  transform 15s;
}

#intro .bg {
  height: 100vh;
  opacity: 0;
}

#intro .bg:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: -moz-radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%, rgba(255,255,255,0) 100%);
  background: -webkit-radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%, rgba(255,255,255,0) 100%);
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%, rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

#intro .info {
  padding: 20px;
}

#intro .info a {
  color: #fff;
}

#homebutton {
  display: none !important;
}

footer .footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: #533b78;
  color: #fff;
}

footer .uk-width-expand {

}

footer .footer .uk-nav,
footer .footer .uk-navbar-nav {
  margin-left: -15px;
}

footer .footer .uk-nav a,
footer .footer .uk-navbar-nav a {
  height: 35px;
  color: #fff !important;
  min-height: 35px;
  padding-left: 15px;
  padding-right: 15px;
}

footer .footer .top {
  position: absolute;
  left: 40px;
  width: 20%;
  text-align: center;
}

footer .footer .top a {
  margin-left: auto;
  margin-right: auto;
  font-size: 0;
}


.info-bottom > div > div:first-of-type,
.info-bottom > div.inline > div > div:first-of-type {
  font-weight: bolder;
}

.info-bottom > div.inline > div:first-of-type {
  font-weight: normal;
}

.info-bottom > div.inline > div > div:first-of-type {
  float: left;
  width: 30px;
}

.info-bottom > div .uk-margin {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}



.node-35 article table {
  max-width: 600px;
}

.node-35 article table td {
  vertical-align: top;
}

.node-35 article table td:first-of-type {
  padding-right: 20px;
  font-weight: bold;
}


.node-36 article div[uk-lightbox] img {
  max-width: 100%;
  width: 960px;
}



#aitia-messages {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1px;
}

#aitia-messages:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0,0,0);
  background: -moz-linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  background: -webkit-linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
  pointer-events: none;
}

#aitia-messages > * {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#aitia-messages .uk-alert:first-of-type {
  margin-top: 50px !important;
}
