/**
 * @file
 * Global rules
 *
 * Theme global rules.
 */



/***
 *
  Variables
 *
***/

:root {
  --primary: #388116;
  --secondary: #2B2B2B;
  --neutral: #4B4B4B;
  --highlight: #D3742F;
  --white: #fff;
}

html {
  height: 100%;
  font-size: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  overflow-x: hidden;

}
html, body {
  position: relative;
  font-family: Poppins, sans-serif;
  color: #000000;
}
/* body {

} */
body * {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
p, h1, h2, h3 {
  position: relative;
}
p {
  color: #000;
}
footer p {
  color: white;
  font-size: 16px;
}
::selection {
  background-color: var(--primary);
  color: #fff;
}
a:focus, button:focus, div:focus, input:focus {
  outline: none;
}
h1 {
  margin: 0;
  text-align: center;
}
h2 {
  font-weight: 700;
  color: #000;
  margin-top: 0;
}
h3 {
  font-size: 1.875rem;
  margin-top: 0;
}


.section__title {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 !important;
  font-weight: 700;
}
.title__suffix {
  color: var(--primary);
  margin-top: -0.6rem;
}
.main__content {
  padding-bottom: 5rem;
}
.page-title {
  text-align: center;
}

.block-system-main-block{
  position: relative;
}
/**
*  Mobile
**/
/* @media (max-width: 812px) {
  h2 {
    font-size:30px;
  }
  h1 {
    font-size: 3.125rem;
  }
  .title__suffix {
    font-size: 30px;
  }
  p {
    font-size: 16px;
  }
} */

/**
*  Desktop
**/
@media (min-width: 813px) {
  h2 {
    font-size:36px;
  }
  h1 {
    font-size: 3.125rem;
  }
  .title__suffix {
    font-size: 36px;
  }
}

/**
 * Links
 */

a {
  color: var(--highlight);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.color__primary{
  color: var(--primary);
}

.color__highlight{
  color: var(--highlight);
}







/**
*  Block News Homepage
**/

.view-actualites .node--view-mode-teaser {
  position: relative;
}
.block-actu-list {
  list-style: none;
  padding: 0;
}


/**
*  Bloc actu homepage
**/

.article__home-h2{
  color: var(--primary);
  text-transform: uppercase;
  text-align: center;
}
.article__home{
  list-style: none;
  padding: 0;
}
.article__home-element{
  background-color: #F4F4F4;
  margin: 2rem auto;
  max-width: 330px;
}
.article__home-wrapper{
  position: relative;
  display: flex;
  flex-direction: column;
}
.article__home-head{
  display: flex;
}
.article__home-image{
  width: fit-content;
}
.article__home-image img {
  display: block;
}
.article__home-date{
  width: 140px;
  height: auto;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.article__home-date-full{
  width: 100%!important;
}
.article__home-date-separator::before {
  content:url("../images/separator_white.svg");
  position:relative;
  /* z-index:100000; */
  top: -5px;
}
.article__home-content{
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 1rem;
}
.article__home-title {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0;
  margin-top: 1rem;
  font-weight: 700;
}
.article__home-body p{
  margin: 0.5rem 0;
}
.article-home-block .more-link {
  color: var(--highlight);
  font-weight: 500;
  position:relative;
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 1200px) {
  .article__home{
    margin-top: 0;
  }
  .article-home-block{
    position: absolute;
    top: 1rem;
    right: 3rem;
    background: var(--white);
    max-width: 700px;
    width: 100%;
    padding: 1rem 0;
  }
  .article__home-h2{
    font-size: 2rem;
    margin: 0 0.5rem;
  }
  .article__home-element{
    margin: 0.8rem 2rem;
    width: inherit;
    max-width: unset;
  }
  .article__home-wrapper{
    display: flex;
    flex-direction: row;
    position: relative;
  }
  .article__home-head{
    width: 38%;
    align-items: center;
  }
  .article__home-image{
    width: 100%;
   }
   .article__home-image img{
    height: 100px;
   }
   .article__home-date{
    height: 100px;
    width: 105%;
  }
  .article__home-content{
    width: 70%;
  }
  .article-home-block .more-link {
    color: var(--highlight);
    font-weight: 500;
    position:relative;
    display: flex;
    justify-content: flex-end;
    margin-right: 2rem;
  }
}
@media (min-width: 1500px) {
  .article-home-block{
    top: 2rem;
    right: 5rem;
    width: 700px;
  }
  .article__home-element{
    margin: 0.2rem 2rem;
  }
  .article__home-wrapper{
    display: flex;
    flex-direction: row;
    position: relative;
  }
  .article__home-head{
    width: 40%;
  }
  .article__home-image{
    width: 100%;
   }
   .article__home-image img{
    height: inherit;
   }
   .article__home-date{
    font-size: 1.25rem;
    height: 160px;
    width: 45%;
  }
  .article__home-content{
    width: 60%;
  }
}
@media (min-width: 1750px) {
  .article-home-block{
    top: 20px;
    right: 15%;
  }
  .article__home-element{
    margin: 0.8rem 2rem;
  }
  .article__home-h2{
    margin-top: 2rem;
    margin: 2rem 0.5rem;
  }
}
@media (min-width: 1850px) {
  .article-home-block{
    top: 40px;
    right: 15%;
  }
}


/**
*  News Page
**/
.actu-list {
  list-style: none;
  padding: 0;
}
.node--type-article h2 {
  font-weight: 700;
  padding-left: 2rem;
  margin-top: -0.5rem;
  margin-bottom: 1.4rem;
  line-height: 1;
}
.view-display-id-page_1 > .view-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}


.article-teaser{
  background-color: white;
  border-radius: 3px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, .16);
  transition: 0.3s;
  height: 100%;
}
.article-teaser:hover {
  box-shadow: 0px 5px 12px rgba(0, 0, 0, .30);
  transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px)
}
.article__teaser-wrapper{
  padding: 2rem;
  font-size: 1rem;
}
.article__teaser-date {
  color: #939393;
  margin: 0;
}

.article__teaser-title {
  color: var(--primary);
  font-size: 1.375rem;
  margin: 0.2rem 0;
}
.article__teaser-title:hover {
  text-decoration: underline;
  transition: 0.3s;
}
.article__teaser-title a {
 text-decoration: none;
}
.article__teaser-content p {
margin: 0.5rem 0;
}

.article__teaser-more {
  color: #4B4B4B;
  font-weight: 700;
}
.article__teaser-more:before {
  content: "> ";
}
.article__teaser-more:hover {
text-decoration: underline;
  transition: 0.3s;
}


/**
*  Mobile
**/
@media(max-width: 812px){
  .node--view-mode-teaser .node__content > a{
    font-size: 12px;
  }
  .node--type-article h2{
    font-size: 21px;
    margin-top: 0.1rem;
    margin-bottom: 1.5rem;
  }
  .view-actualites .views-row{
    margin-bottom: 3rem;
  }
  .node--view-mode-teaser .field--type-text-with-summary p{
    padding-bottom: 1rem;
  }
}


/**
*  Desktop
**/
@media(min-width: 813px){
  .view-display-id-page_1 > .view-content .views-row{
    flex: 1 1 33%;
  }
  .view-display-id-page_1 .views-row{
    margin-bottom: 3rem;
  }
  .view-display-id-page_1 .views-row{
    max-width: 33.3%;
  }
  .actu-list{
    margin-top: 4rem;
  }
}


/**
*  Pagination News
**/
.pager__item > a{
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
}
.pager__items{
  padding: 0;
}
.pager__item.is-active {
  background-color: var(--primary);
  border-radius: 15%;
}
.pager__item.is-active a{
  color: var(--white);
  margin-left: 3px;
}


/**
*  Article full page
**/

.full-page h1{
  margin: 2rem;
}

.article-page__title{
  margin-top: 1rem;
}

.article-page__content{
  display: flex;
  padding-bottom: 2rem;
}
.article-page__content > div{
  flex: 0 0 50%;
}
.article-page__title,
.article-page__date{
  text-align: center;
}

.article-page__date{
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 2rem;
}
.article-page__content img{
  width: 100%;
}

.actu-list > li,
.block-actu-list > li{
  margin-bottom: 3rem;
}
/**
*  Mobile
**/
@media(max-width: 812px){
  .article-page__content{
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }
  .article-page__date{
    margin-bottom: 2rem;
  }
}

/**
*  Desktop
**/
@media(min-width: 813px){
  .article-page__content{
    flex-direction: row;
    flex-wrap: unset;
  }
  .article-page__content > div:first-child{
    padding-right: 1rem;
  }
  .article-page__content > div:not(:first-child){
    padding-left: 1rem;
  }
  .article-page__date{
    font-size: 2rem;
  }
  .article-page__content .field--type-text-with-summary > p{
    margin-top: 0;
  }
}

div.webform-confirmation-modal--content .ui-dialog-content .ui-widget-content {
  background: var(--primary);
}
