@import url("https://fonts.googleapis.com/css?family=Lato:300, 400, 500, 700");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/* ------------------------------- */
/*  =     Global                   */
/* ------------------------------- */

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

body,
body::before {
  background: #f5f5f5 url(../img/body.png) no-repeat center;
  background-size: cover;
}

body {
  background-attachment: fixed;
  font-family: lato, "helvetica neue", helvetica, arial, sans-serif;
  font-size: 1em;
  font-weight: 300;
  color: #4a4a4a;
}

td {
  font-family: inherit;
  font-size: 1em;
}

a:link,
a:visited {
  color: #009dd9;
  transition: all 0.5s;
}

a:hover,
a:focus {
  color: #08235a;
}

button,
input,
textarea,
select {
  padding: 20px;
  border: 1px solid transparent;
  outline-style: none;
  font-size: 1em;
  border-radius: 5px;
  transition: all 0.5s;
}

button,
input,
select {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 2.8125; /* 45px / 16px */
}

input,
select {
  height: 2.8125em;
}

select {
  padding-right: 0;
}

input[type="checkbox"],
input[type="radio"],
input[type="file"] {
  border-style: none;
  border-radius: 0;
}

input[type="checkbox"],
input[type="radio"] {
  padding: 0;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button a {
  max-width: 100%;
  height: auto;
  padding: 1em 3em;
  background: #08235a none !important;
  font-size: 1.125em; /* 18px / 16px */
  font-weight: 700;
  color: #fff !important;
  border-radius: 3.125em; /* 18px / 16px + 1em * 2 */
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border-style: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #08235a;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.button a:hover,
.button a:focus {
  background-color: #009dd9 !important;
}

.button,
.button a {
  width: auto;
}

.button {
  display: inline-block;
  height: auto;
}

/* ------------------------------- */
/*  =     Grouping                 */
/* ------------------------------- */

#header,
#leftnav,
#main {
  padding-right: 20px;
  padding-left: 20px;
}

#header-content,
#tools-area,
#MainMenu,
#searchBox,
#searchResultsCount,
#main {
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

*:not(.ask) > .Article:not(#TemplateAskQuestion):not(#TemplateProperties),
#ListOfTemplates li,
.GenericGrid th,
.GenericGrid td,
#template-group-page #path-descriptor:not(.breadcrumb) a,
.removeFile > a,
.addFile > a,
.suggestDocumentTitle,
.suggestDocumentContent,
#sectionSubmitSuccess,
.qtip {
  border-radius: 5px;
}

#TemplateRankerList > .rank1 > a:hover,
#TemplateRankerList > .rank1 > a:focus,
.feedback--success {
  color: #65b93b !important;
}

#TemplateRankerList > .rank2 > a:hover,
#TemplateRankerList > .rank2 > a:focus,
#ErrorList > h2::before,
.mandatoryFieldMarker,
.feedback--error {
  color: #bf0000 !important;
}

/* ------------------------------- */
/*  =     Sections                 */
/* ------------------------------- */

*:not(.ask) > .Article:not(#TemplateAskQuestion):not(#TemplateProperties),
#ListOfTemplates li,
.GenericGrid th,
.GenericGrid td,
#template-group-page #path-descriptor:not(.breadcrumb) a,
.suggestDocumentTitle,
.suggestDocumentContent,
#sectionSubmitSuccess {
  padding: 30px !important;
  background-color: #fff !important;
  box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.SectionBody > ul > li,
.ArticleBody > ul > li,
.suggestList > div {
  margin-bottom: 1em;
}

.SectionTitle,
.Article > h1,
.Article > h2,
.ArticleTitle {
  margin-bottom: 1.5em !important;
  border-style: none !important;
  color: inherit !important;
}

.SectionBody > ul,
.ArticleBody > ul {
  padding-left: 0;
  list-style: none !important;
}

.Article,
#ListOfSearchedTemplates {
  margin-bottom: 40px !important;
}

.ask .ArticleBody,
#TemplateAskQuestion .ArticleBody {
  font-weight: 700;
}

.ask .button a,
#TemplateAskQuestion .button a {
  padding: 0.25em 1em;
  border-width: 1px;
  border-style: solid;
  font-weight: inherit;
  font-size: 1em;
}

.ask .button a:not(:hover):not(:focus),
#TemplateAskQuestion .button a:not(:hover):not(:focus) {
  background-color: transparent !important;
  color: inherit !important;
}

/*  = --- Template (group) name -- */

.TemplateName,
.TemplateName a:link,
.TemplateName a:visited,
.TemplateGroupName,
.TemplateGroupName a:link,
.TemplateGroupName a:visited {
  color: inherit;
}

.TemplateName a:link,
.TemplateName a:visited,
.TemplateGroupName a:link,
.TemplateGroupName a:visited {
  font-weight: 300;
  transition-duration: 0.25s;
}

.TemplateName a:hover,
.TemplateName a:focus,
.TemplateGroupName a:hover,
.TemplateGroupName a:focus {
  color: #009dd9;
}

.TemplateName a:hover,
.TemplateGroupName a:hover {
  background-color: transparent;
}

.TemplateName a::before {
  margin-right: 0.5em;
  font-family: fontawesome;
  content: "\f0da";
}

.TemplateName img {
  display: none;
}

.TemplateGroupName {
  padding-left: 0 !important;
  background: none !important;
}

/*  = --- TemplatePath ----------- */

#path-descriptor {
  margin-left: 0;
  margin-bottom: 20px;
  font-size: 0.8125em; /* 13px / 16px */
}

#path-descriptor img,
.TreeFolderContinuator,
.spacer {
  display: none !important;
}

.SubGroupContainer {
  padding-top: 0 !important;
}

.SubGroup {
  float: none !important;
}

#template-group-page #path-descriptor.breadcrumb *,
#template-page #path-descriptor *,
#submit-page #path-descriptor * {
  display: inline;
}

#template-group-page #path-descriptor.breadcrumb .TemplateGroupName::before,
#template-page .TemplateGroupName::before,
#submit-page .TemplateGroupName::before {
  content: ">";
}

#template-group-page #path-descriptor.breadcrumb a:not(:hover):not(:focus),
#template-page .TemplateGroupName > a:not(:hover):not(:focus),
#submit-page .TemplateGroupName > a:not(:hover):not(:focus) {
  text-decoration: underline;
}

#template-group-page #path-descriptor.breadcrumb #CurrentGroupDisplayed a,
#template-page #CurrentGroupDisplayed a,
#submit-page #CurrentGroupDisplayed a {
  font-weight: 700;
}

/*  = --- Section ---------------- */

.Section,
.ask {
  clear: both;
  margin-bottom: 80px !important;
}

.Section > div,
.ask {
  margin-left: auto !important;
  padding-left: 0 !important;
}

#main .SectionTitle {
  padding: 0;
  background: none !important;
  font-size: 1.125em !important; /* 18px / 16px */
}

.SectionBody::after {
  display: table;
  clear: both;
  border-collapse: collapse;
  content: "";
}

/*  = --- Article ---------------- */

.Article {
  width: auto !important;
  border-style: none !important;
}

.Article > h1,
.Article > h2 {
  padding: 0 !important;
  background: none !important;
}

.Article > h1 {
  font-size: 1.5em !important; /* 24px / 16px */
}

.Article > h2 {
  font-size: 1.25em !important; /* 20px / 16px */
}

.ArticleTitle > * {
  float: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: none !important;
  border-style: none !important;
}

.ArticleBody {
  padding: 0 !important;
  border-style: none !important;
  background-color: transparent !important;
}

.ArticleBody p {
  margin: 1em 0 !important;
}

.ArticleBody p:first-child {
  margin-top: auto !important;
}

.ArticleBody p:last-child {
  margin-bottom: auto !important;
}

/*  = --- Specific --------------- */

/* Consulation */

.sectionConsultation > .SectionTitle {
  display: none;
}

/* Shortcuts */

.sectionShortcuts > .SectionTitle {
  display: none;
}

#top-templates {
  float: none !important;
}

/* Search results */

#ListOfTemplates li,
.GenericGrid th,
.GenericGrid td,
.suggestDocumentTitle {
  padding-right: 15px !important;
  padding-left: 15px !important;
}

#ListOfTemplates img + b::before,
.GenericGrid img + b::before,
.suggestDocumentTitle img + b::before {
  display: inline-block;
  width: 2em;
  font-size: 1.125em; /* 18px / 16px */
  font-family: fontawesome;
  text-align: center;
  color: #009dd9;
  content: "\f111";
}

#ListOfTemplates .documentStandard + b::before,
.GenericGrid .documentStandard + b::before,
.suggestDocumentTitle .documentStandard + b::before {
  content: "\f15c";
}

#ListOfTemplates .documentVideo + b::before,
.GenericGrid .documentVideo + b::before,
.suggestDocumentTitle .documentVideo + b::before {
  content: "\f03d"; /* @todo : utiliser bonne classe. */
}

#ListOfTemplates li,
.GenericGrid td {
  position: relative;
}

#ListOfTemplates a::after,
.GenericGrid a::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

.GenericGrid,
.GenericGrid th,
.GenericGrid td {
  border-style: none !important;
}

.GenericGrid {
  border-collapse: separate !important;
  border-spacing: 0 1em;
}

.GenericGrid > thead {
  display: none;
}

.GenericGrid th,
.GenericGrid td {
  text-align: inherit;
  vertical-align: middle !important;
}

.GenericGrid th {
  font-size: inherit !important;
  color: inherit !important;
}

.GenericGrid th:first-child,
.GenericGrid th:last-child,
.GenericGrid td:first-child,
.GenericGrid td:last-child {
  display: none;
}

/* Ask */

.ask h2 {
  display: none;
}

.ask p {
  display: inline;
}

/* Template */

#TemplateFieldsList {
  display: none; /* @todo : retirer cette règle au profit d'un paramétrage BO effectué par Eptica. */
}

/* Template info */

#TemplateInfo > .SectionTitle {
  display: none;
}

#TemplateAskQuestion > h2 {
  color: #009dd9 !important;
}

#TemplateAskQuestion .button > a:not(:hover):not(:focus) {
  color: #009dd9 !important;
}

#TemplateProperties {
  float: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #4a4a4a !important;
}

#TemplateProperties > h2::after {
  content: " ?";
}

#TemplateRankerList {
  padding-left: 0;
  list-style-type: none;
}

#TemplateRankerList > li {
  display: inline;
}

#TemplateRankerList > li + li {
  margin-left: 1em;
}

#TemplateRankerList a {
  font-size: 0;
  text-decoration: none;
}

#TemplateRankerList a::before {
  font-family: fontawesome;
  font-size: 40px;
}

#TemplateRankerList > .rank1 > a::before {
  content: "\f118";
}

#TemplateRankerList > .rank2 > a::before {
  content: "\f11a";
}

.confirmRank {
  color: inherit;
}

.confirmRank + #finalRanker {
  display: none;
}

/* Ask form */

.sectionAskForm #TemplatePath {
  display: none;
}

#submit-request,
#sectionCustomer {
  padding: 40px;
  background-color: #e4e4e4;
  color: #000;
}

#submit-page button,
#submit-page input,
#submit-page textarea,
#submit-page select,
#sectionCustomer button,
#sectionCustomer input,
#sectionCustomer textarea,
#sectionCustomer select {
  width: 100%;
}

.FieldLabel,
#submit-request label,
.sectionSendVisible label,
#CreateCustomerPersonalInfo label {
  float: none;
}

#submit-request label,
.sectionSendVisible label,
#CreateCustomerPersonalInfo label {
  width: auto;
  margin-bottom: 1em;
}

.FieldLabel,
.FieldValue {
  display: block;
}

.FieldHelp,
.feedback {
  font-size: 0.75em; /* 12px / 16px */
}

.feedback {
  font-weight: 700;
}

.Field,
#attachmentsInstructions {
  margin-bottom: 1.5em;
}

#attachmentsInstructions {
  padding: 0;
}

.attachmentField {
  position: relative;
  padding: 10px;
  border: 1px dashed #f5f5f5;
  font-size: 0.875em; /* 14px / 16px */
}

.attachmentField > label,
.attachmentField > .FieldValue {
  display: inline-block !important;
}

.removeFile > a,
.addFile > a {
  display: inline-block;
  padding: 5px;
  background-color: #4a4a4a;
  font-size: 0.857142857142857em; /* 12px / 14px */
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
  cursor: pointer;
  transition: background-color 0.5s;
}

.removeFile > a::before,
.addFile > a::before {
  margin-right: 0.25em;
}

.removeFile > a {
  position: absolute;
  top: 5px;
  right: 5px;
}

.removeFile > a::before {
  content: "✖";
}

.removeFile > a:hover {
  background-color: #bf0000;
}

.addFile {
  clear: both;
  display: block;
  padding: 10px 10px 30px;
  border-top: 1px solid #fff;
  text-align: center;
}

.addFile > a::before {
  content: "+";
}

.addFile > a:hover {
  background-color: #65b93b;
}

#suggestionsContainer,
#submit-request > .button {
  clear: left;
}

.waiter {
  width: auto;
  background-image: url(../img/ajax-loader.gif);
  background-size: auto;
}

#suggestPanel {
  padding: 0;
  background-color: transparent;
}

#suggestTitle,
#suggestSubmitAnyway {
  margin: 1em auto;
  padding: 0 !important;
}

.suggestList,
.suggestDocumentTitle,
.suggestDocumentContent {
  border-style: none !important;
}

.suggestDocumentContent {
  margin-top: -5px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

#suggestSubmitAnyway {
  font-weight: 700;
}

#submit-request > .button {
  width: 100%;
}

#ErrorList > h2::before,
#sectionSubmitSuccess > .SectionTitle::before {
  margin-right: 10px;
  font-family: fontawesome;
  font-size: 36px;
  vertical-align: middle;
}

#ErrorList > h2::before {
  content: "\f071";
}

#sectionSubmitSuccess > .SectionTitle::before {
  color: #009dd9;
  content: "\f00c";
}

#ErrorList > div {
  background: none !important;
  color: inherit !important;
}

#registerSection {
  display: none;
}

/* ------------------------------- */
/*  =     Qtip                     */
/* ------------------------------- */

.qtip {
  height: 200px;
  background-color: #009dd9;
  border-style: none;
  font-size: 0.8125em; /* 13px / 16px */
  line-height: inherit;
  color: #fff;
  opacity: 0;
}

.qtip[style*="display"] {
  animation: qtip_anim 0.5s 3s both;
}

.qtip-titlebar {
  display: none;
  padding: 15px;
  background-color: #4a4a4a !important;
}

.qtip-content {
  height: calc(100% - 2 * 15px);
  margin: 15px;
  padding: 0;
}

/* ------------------------------- */
/*  =     Header                   */
/* ------------------------------- */

#header {
  margin-bottom: auto;
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
}

body:not(.home) > #header {
  display: none;
}

/*  = --- Header content --------- */

#header > #header-content {
  float: none;
}

/* Company logo */

#CompanyLogo > a {
  display: inline-block;
  width: 500px;
  height: 100px;
  background: url(../img/logo.png) no-repeat center;
  background-size: cover;
}

#CompanyLogo img {
  display: none;
}

/*  = --- Tools area ------------- */

#tools-area {
  display: none;
  float: none !important;
}

/*  = --- Main menu -------------- */

#MainMenu {
  height: auto;
  margin: 60px auto auto;
  background-color: transparent;
  border-bottom-style: none;
  font-size: 2em;
  font-weight: 500;
}

body:not(.home) #MainMenu {
  display: none;
}

#MainMenu > div {
  height: auto;
  padding-left: 0;
  background-color: transparent;
  border-bottom-style: none;
}

#header > #MainMenu span {
  float: none;
  position: static;
  height: auto !important;
  margin: auto;
  padding: 0 !important;
  background-color: transparent !important;
  border-style: none !important;
  font-size: 1em;
}

#MainMenu a {
  color: inherit !important;
}

/* ------------------------------- */
/*  =     Container                */
/* ------------------------------- */

#container {
  float: none;
  margin-top: auto;
}

/*  = --- Left nav --------------- */

#leftnav {
  float: none;
  width: auto;
  margin-left: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: transparent;
  text-align: center;
}

body:not(.home) #leftnav {
  background-color: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#searchBox,
#searchResultsCount {
  width: auto;
  margin: auto;
  padding: 0;
  border-style: none;
}

#searchBox > h2,
#searchResultsCount > h2 {
  margin-bottom: 1em;
  font-size: 1em;
  color: inherit;
}

/* Search box */

#searchBox > h2 {
  display: none;
}

#search-templates {
  max-width: 500px;
  overflow: hidden;
  margin: auto;
  background-color: #fff;
  font-size: 0.8em;
  border-radius: 2.34375em; /* 75px / 2 / 16px */
  box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.home #search-templates {
  font-size: 1em;
}

#search_query,
#click_search {
  height: 4.6875em; /* 75px / 16px */
  line-height: 4.6875;
}

#search_query {
  float: left;
  width: 85% !important;
  margin: 0 !important;
  background-color: transparent;
  border-style: none;
  font-style: italic;
  border-radius: 0;
}

.searchBoxSearch {
  clear: none !important;
  width: 15%;
  padding-right: 0 !important;
}

#click_search {
  position: relative;
  overflow: hidden;
  padding: 0;
  font-size: 1em;
  text-indent: -20000em;
  border-radius: 0;
}

#click_search::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  font-family: fontawesome;
  text-indent: 0;
  content: "\f002";
}

#click_search:not(:hover):not(:focus) {
  background-color: transparent !important;
}

#click_search:not(:hover):not(:focus)::before {
  color: #009dd9;
}

/* Search results count */

#searchResultsCount {
  display: flex;
  display: none;
  flex-direction: column;
  margin-top: 20px;
}

#searchResultsCount > a {
  float: none;
  padding-right: 0;
  color: #009dd9 !important;
  order: 1;
}

#searchResultsCount > h3,
#searchResultsCount > h3 > b {
  font-size: 1em;
  font-weight: inherit;
}

/*  = --- Main ------------------- */

#main {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Home #1 (#home-page)

/* Home #2 (#template-group-page) */

.home #search-templates,
#display_faq_nav {
  max-width: 850px;
}

#display_faq_nav {
  margin: 1em auto 0;
  font-size: 0.875em; /* 14px / 16px */
  font-weight: 700;
  text-align: right;
}

#display_faq_nav > a {
  text-decoration: none;
}

#template-group-page:not(.home) #visited-templates,
#template-group-page:not(.home) #top-templates {
  display: none;
}

#template-group-page #visited-templates,
#template-group-page #top-templates {
  -webkit-animation: fade-in-bottom 0.6s 0.5s
    cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in-bottom 0.6s 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

#template-group-page #path-descriptor:not(.breadcrumb) #TreePathDisplayed,
#template-group-page
  #path-descriptor:not(.breadcrumb)
  #CurrentGroupDisplayed:not(:last-child),
#template-group-page #path-descriptor.breadcrumb #SubGroupDisplayed {
  display: none;
}

#template-group-page #path-descriptor:not(.breadcrumb) .SubGroup > div,
#template-group-page
  #path-descriptor:not(.breadcrumb)
  #TreePathDisplayed
  > span,
#template-group-page #path-descriptor:not(.breadcrumb) #CurrentGroupDisplayed {
  float: left;
  width: 50%;
}

#template-group-page #path-descriptor:not(.breadcrumb) .TemplateGroupName {
  display: block;
  position: relative;
  padding-top: 100%;
}

#template-group-page #path-descriptor:not(.breadcrumb) a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 5px;
  padding: 30% 5px 5px !important;
  text-align: center;
}

#template-group-page #path-descriptor:not(.breadcrumb) a:hover,
#template-group-page #path-descriptor:not(.breadcrumb) a:focus,
#template-group-page
  #path-descriptor:not(.breadcrumb)
  #CurrentGroupDisplayed
  a {
  background-color: #009dd9 !important;
  color: #fff;
  box-shadow: 8px 8px 16px 0 rgba(0, 0, 0, 0.1);
}

/* Search results (#search-templates-page) */

#search-templates-page #main > .Section:first-child {
  margin-bottom: auto !important;
}

/* Page (#template-page) */

#template-page #sectionTemplate {
  margin-bottom: auto !important;
}

#template-page #sectionTemplate > .SectionTitle,
#template-page #TemplatePath > .SectionTitle {
  display: none;
}

#template-page #TemplatePath {
  margin-bottom: auto !important;
}

/* Formulaire (#submit-page) */

#submit-page #CurrentTemplateDisplayed {
  display: block;
}

#AskCustomerPersonalInfo .FieldLabel,
#CreateCustomerPersonalInfo .FieldLabel {
  padding-right: 0;
  text-align: inherit;
}

/* ------------------------------- */
/*  =     Media Queries            */
/* ------------------------------- */

/*  = --- Tiny ------------------- */

@media (max-width: 480px) {
}

/*  = --- Small ------------------ */

@media (min-width: 481px) {
  #template-group-page #path-descriptor:not(.breadcrumb) .SubGroup > div,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #TreePathDisplayed
    > span,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #CurrentGroupDisplayed {
    width: 33.333333333333333%;
  }
}

/*  = --- Medium ----------------- */

@media (min-width: 769px) {
  #visited-templates,
  #visited-templates + #top-templates {
    width: 48% !important;
  }

  #visited-templates {
    float: right;
  }

  #visited-templates + #top-templates {
    float: left !important;
  }

  #template-group-page #path-descriptor:not(.breadcrumb) .SubGroup > div,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #TreePathDisplayed
    > span,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #CurrentGroupDisplayed {
    width: 25%;
  }

  #template-group-page #path-descriptor:not(.breadcrumb) a {
    margin: 10px;
  }

  #submit-request,
  #sectionCustomer {
    padding: 80px;
  }

  #submit-page .attachmentField,
  #CreateCustomerPersonalInfo > .Field {
    float: left;
    width: 30%;
    margin: 1%;
  }

  #CreateCustomerPersonalInfo {
    overflow: hidden;
  }

  div#MyField_CustomerNumber {
    width: 100% !important;
  }

  input#MyCustomerNumber {
    width: 20%;
  }

  div#Field_CiviliteNotaire {
    width: 20% !important;
  }

  div#Field_Civilite {
    width: 20% !important;
  }

  div#Field_FirstName {
    width: 37% !important;
  }

  div#Field_LastName {
    width: 37% !important;
  }

  div#Field_EMail {
    width: 59% !important;
  }

  div#Field_WorkPhone {
    width: 37% !important;
  }

}
/*  = --- Large ------------------ */

@media (min-width: 1025px) {
  body:not(.home) {
    padding-top: 100px;
  }

  body:not(.home).scroll > #header,
  body:not(.home).scroll #leftnav {
    position: fixed;
  }

  body:not(.home) > #header {
    display: block;
    position: absolute;
    top: 0;
    z-index: 9999;
    padding: 20px;
    transform-origin: left top;
    transform: scale(0.5);
  }

  body:not(.home).scroll #CompanyLogo > a {
    animation: logo_anim 0.5s both;
  }

  body:not(.home) #leftnav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9998;
  }

  body:not(.home).scroll #leftnav {
    font-size: 0.8em;
    animation: header_anim 0.25s;
  }

  #template-group-page #path-descriptor:not(.breadcrumb) #path-descriptor {
    font-size: 0.875em; /* 14px / 16px */
  }

  #template-group-page #path-descriptor:not(.breadcrumb) .SubGroup > div,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #TreePathDisplayed
    > span,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #CurrentGroupDisplayed {
    width: 20%;
  }

  #template-group-page #path-descriptor:not(.breadcrumb) a {
    margin: 15px;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

/*  = --- 1140px ----------------- */

@media (min-width: 1140px) {
  #header,
  #leftnav,
  #main {
    padding-right: 0;
    padding-left: 0;
  }

  .home::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    content: "";
    -webkit-animation: kenburns-top 10s ease-out both;
    animation: kenburns-top 10s ease-out both;
  }

  #template-group-page #path-descriptor:not(.breadcrumb) .SubGroup > div,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #TreePathDisplayed
    > span,
  #template-group-page
    #path-descriptor:not(.breadcrumb)
    #CurrentGroupDisplayed {
    width: 16.666666666666667%;
  }
}

/* ------------------------------- */
/*  =     Animations               */
/* ------------------------------- */

@keyframes logo_anim {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(0.75);
  }
}

@keyframes header_anim {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qtip_anim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes kenburns-top {
  0% {
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 16%;
    transform-origin: 50% 16%;
  }
  100% {
    -webkit-transform: scale(1.25) translateY(-15px);
    transform: scale(1.25) translateY(-15px);
    -webkit-transform-origin: top;
    transform-origin: top;
  }
}
@keyframes kenburns-top {
  0% {
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 16%;
    transform-origin: 50% 16%;
  }
  100% {
    -webkit-transform: scale(1.25) translateY(-15px);
    transform: scale(1.25) translateY(-15px);
    -webkit-transform-origin: top;
    transform-origin: top;
  }
}

@-webkit-keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

/* ------------------------------- */
/*  =     Surcharges               */
/* ------------------------------- */

/*  = --- Neo -------------------- */

.faq-neo,
.faq-neo::before {
  background-image: url(https://www.y-proximite.fr/faq-neo_body.jpg);
}

.faq-neo a:link,
.faq-neo a:visited {
  color: #008c72;
}

.faq-neo a:hover,
.faq-neo a:focus {
  color: #003840;
}

.faq-neo button,
.faq-neo input[type="button"],
.faq-neo input[type="reset"],
.faq-neo input[type="submit"],
.faq-neo .button a {
  background-color: #003840 !important;
}

.faq-neo input:focus,
.faq-neo textarea:focus,
.faq-neo select:focus {
  border-color: #003840;
}

.faq-neo button:hover,
.faq-neo button:focus,
.faq-neo input[type="button"]:hover,
.faq-neo input[type="button"]:focus,
.faq-neo input[type="reset"]:hover,
.faq-neo input[type="reset"]:focus,
.faq-neo input[type="submit"]:hover,
.faq-neo input[type="submit"]:focus,
.faq-neo .button a:hover,
.faq-neo .button a:focus {
  background-color: #008c72 !important;
}

.faq-neo #ListOfTemplates img + b::before,
.faq-neo .GenericGrid img + b::before,
.faq-neo .suggestDocumentTitle img + b::before {
  color: #008c72;
}

.faq-neo #TemplateAskQuestion > h2 {
  color: #008c72 !important;
}

.faq-neo #TemplateAskQuestion .button > a:not(:hover):not(:focus) {
  color: #008c72 !important;
}

.faq-neo #sectionSubmitSuccess > .SectionTitle::before {
  color: #008c72;
}

.faq-neo .qtip {
  background-color: #008c72;
}

.faq-neo #CompanyLogo > a {
  background-image: url(https://www.y-proximite.fr/faq-neo_logo.png);
}

.faq-neo #click_search:not(:hover):not(:focus)::before {
  color: #008c72;
}

.faq-neo #searchResultsCount > a {
  color: #008c72 !important;
}

#template-group-page.faq-neo #path-descriptor:not(.breadcrumb) a:hover,
#template-group-page.faq-neo #path-descriptor:not(.breadcrumb) a:focus,
#template-group-page.faq-neo
  #path-descriptor:not(.breadcrumb)
  #CurrentGroupDisplayed
  a {
  background-color: #008c72 !important;
}

#loginArea {
  position: relative !important;
  font-size:1.5em;
}
