/*
	* Copyright : EcoRhizo
	* Author : Adrien Solacroup
	* Encoding : UTF-8
	* Licence (code) : GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
	* Licence (distribution) : Creative Commons Attribution BY SA 4.0 International
*/

/*

--------------------------------
SUMMARY
--------------------------------

* DECLARING VARIABLES

* GENERAL STYLES
- MISCELLANEOUS
- BACKGROUND IMAGE
- BUTTON
- TOOLTIP
- ANIMATION (sliding blocks)
- ANIMATION (img zoom in)

 * CREDENTIALS STYLES

 * NAVBAR STYLES
 
 * HEADER STYLES

 * SECTIONS STYLES

 * WEBSITE CARBON BADGE STYLES
 
 * FOOTER STYLES

*/

/*
--------------------------------
DECLARING VARIABLES
--------------------------------
*/

@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 400;
  src: url("../font/TUZyzwprpvBS1izr_vOECuSf.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url("../font/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Virgil";
  src: url("../font/Virgil.woff2") format('woff2');
}

:root {
  --main_color_01: #2f4e23;
  --main_color_02: #98684a;
  --main_color_03: #6b925b;
  --main_color_04: #abd852;
  --main_color_05: #364256;
  --main_color_01_faded: rgba(47, 78, 35, 0.5);
  --main_color_02_faded: rgba(152, 104, 74, 0.5);
  --main_color_03_faded: rgba(107, 146, 91, 0.5);
  --main_color_02_light: #ed945d;
  --main_color_02_dark: #5b3015;
  --main_color_02_light_faded: rgba(152, 104, 74, 0.15);
  --main_color_03_light_faded: rgba(171, 216, 153, 0.5);
  --main_color_red: #EA668A;
  --main_color_red_dark: #930031;
  --main_color_yellow: #F4D666;
  --main_color_yellow_dark: #e3b301;
  --main_color_lightest_green: #F1F9F8;
  --nav-height: 56px;
}

::selection {
  color: white;
  background: var(--main_color_02);
}


/*
--------------------------------
GENERAL STYLES
--------------------------------
*/

/* MISCELLANEOUS */

body {
  cursor: default;
  font-family: "Open Sans";
  letter-spacing: 0.0625em;
  background: transparent;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--main_color_03);
  /* background-size: 100%; */
}

body.modal-open {
    overflow: hidden;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 2.5rem;
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 3rem;
  }
}

/* SKETCH HIGHLIGHT */

.sketch-highlight{
  position:relative;
  display: inline-block;
}

.sketch-highlight:before{
  content:"";
  left:-2.5%;
  top:0em;
  border-width:2px;
  border-style:solid;
  border-top-color:var(--main_color_02);
  border-left-color:var(--main_color_02);
  border-bottom-color:var(--main_color_02);
  position:absolute;
  border-right-color:transparent;
  width:100%;
  height:100%;
  transform:rotate(2deg);
  opacity:0.5;
  border-radius:0.35em;
  pointer-events: none;
}

.sketch-highlight:after{
  content:"";
  left:0em;
  top:2.5%;
  border-width:2px;
  border-style:solid;
  border-right-color:var(--main_color_02);
  border-bottom-color:var(--main_color_02);
  border-left-color:transparent;
  border-top-color:transparent;
  position:absolute;
  width:100%;
  height:100%;
  transform:rotate(-1deg);
  opacity:0.5;
  border-radius:0.35em;
  pointer-events: none;
}

.sketch-highlight-violet:before{
  border-color: #6666cc !important;
}

.sketch-highlight-violet:after{
  border-color: #6666cc !important;
}

.sketch-highlight-green:before{
  border-color: #5fbeb8 !important;
}

.sketch-highlight-green:after{
  border-color: #5fbeb8 !important;
}

.sketch-highlight-grey:before{
  border-color: #595958 !important;
}

.sketch-highlight-grey:after{
  border-color: #595958 !important;
}

/* CENTER IMAGES */

.centerimage-wrap {
    display:-webkit-flex; -webkit-flex-wrap:wrap;
    display:flex; flex-wrap:wrap; /* pour aligner les boites */
}
 
.centerimage {
  display:-webkit-flex; -webkit-justify-content:center; -webkit-align-items:center;
  display:flex; justify-content:center; align-items:center; /* pour centrer les images */
}

/* BUTTON */

.btn {
  -webkit-box-shadow: 0 0 0 0 !important;
  box-shadow: 0 0 0 0 !important;
  font-family: "Virgil", Arial;
  text-transform: uppercase;
  letter-spacing: .15rem;
  border: 0;
}

.btn-xs {
  color: white;
  font-size: 80%;
  background-color: var(--main_color_02) !important;
}

.btn-xs:hover {
  color: white;
  background-color: var(--main_color_02_dark) !important;
}

.btn-xs:focus {
  color: white;
  background-color: var(--main_color_02_dark) !important;
  box-shadow: none !important;
}

.btn-sm:active {
  color: white;
  background-color: var(--main_color_02) !important;
  box-shadow: none !important;
}

.btn-sm {
  color: white;
  background-color: var(--main_color_yellow) !important;
}

.btn-sm:hover {
  color: white;
  background-color: var(--main_color_yellow_dark) !important;
}

.btn-sm:focus {
  color: white;
  background-color: var(--main_color_yellow_dark) !important;
  box-shadow: none !important;
}

.btn-sm:active {
  color: white;
  background-color: var(--main_color_yellow) !important;
  box-shadow: none !important;
}

.btn-primary {
  background-color: var(--main_color_02) !important;
  padding: 1rem 1.75rem;
  font-size: 90%;
}

.btn-primary:hover {
  background-color: var(--main_color_02_dark) !important;
}

.btn-primary:focus {
  background-color: var(--main_color_02_dark) !important;
  box-shadow: none !important;
}

.btn-primary:active {
  background-color: var(--main_color_02) !important;
  box-shadow: none !important;
}

/* TOOLTIP */

.tooltip-inner {
	background: var(--main_color_02_dark);
	padding: 2rem;
	min-width: 300px;
	font-weight: bold;
}

/* ANIMATION (sliding blocks) */

.animation-element {
  opacity: 0;
  position: relative;
}

.animation-element.slide-left {
  opacity: 0;
  -moz-transition: all 500ms linear;
  -webkit-transition: all 500ms linear;
  -o-transition: all 500ms linear;
  transition: all 500ms linear;
  -moz-transform: translate3d(-100px, 0px, 0px);
  -webkit-transform: translate3d(-100px, 0px, 0px);
  -o-transform: translate(-100px, 0px);
  -ms-transform: translate(-100px, 0px);
  transform: translate3d(-100px, 0px, 0px);
}

.animation-element.slide-left.in-view {
  opacity: 1;
  -moz-transform: translate3d(0px, 0px, 0px);
  -webkit-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  transform: translate3d(0px, 0px, 0px);
}

/* ANIMATION (img zoom in) */

.inner{
	overflow: hidden;
}

.inner img{
	transition: all 0.5s ease;
}

.inner:hover img{
	transform: scale(1.25);
}

.inner object{
	transition: all 0.5s ease;
}

.inner:hover object{
	transform: scale(1.25);
}

/* FOCUS IMG */

.img-to-focus {
  cursor: pointer;
  transition: 0.3s;
}

.img-to-focus:hover {
  opacity: 0.7;
}

.content-focus-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  padding-bottom: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll !important;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.content-focus-modal .canvas-focus {
  cursor: grab;
}

.content-focus-modal .modal-content {
  margin: auto;
  width: auto;
  max-height: 80vh;
}

.content-focus-modal .caption {
  margin: auto;
  width: auto;
  max-height: 80%;
  text-align: center;
  color: white;
  padding: 10px 0;
  font-family: "Virgil", Arial;
}

.content-focus-modal .modal-content,
.content-focus-modal .caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
  height: auto;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.content-focus-modal .content-focus-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  font-family: "Virgil", Arial;
}

.content-focus-modal .content-focus-title {
  position: absolute;
  top: calc(var(--nav-height)/2);
  left: 50%;
  transform: translateX(-50%);
  font-family: "Virgil", Arial;
  color: white;
}

.content-focus-modal .content-focus-close:hover,
.content-focus-modal .content-focus-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.content-focus-modal embed {
  display: flex;
  margin: auto;
  width: 80%;
  height: 100%;
}

.content-focus-modal iframe {
  display: flex;
  margin: auto;
  width: 80%;
  height: 100%;
}

@media only screen and (max-width: 700px){
  .content-focus-modal .modal-content {
    width: 100%;
  }
}

/* MODAL SCREENS */

.modal {
  margin-top: var(--nav-height) !important;
  padding-right: 0 !important;
}

.modal-dialog {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100%;
  height: 100%;
  padding: 0;
}

.modal-content {
  height: 100%;
  border-radius: 0;
  position: relative;
}

.modal-header {
  font-family: "Virgil", Arial;
  background-color: var(--main_color_04);
  color: var(--main_color_01);
  border: none;
  border-top-left-radius: 0rem;
  border-top-right-radius: 0rem;
  padding: .5rem 1rem;
}

.modal-body {
  overflow: scroll;
}

.modal-body .row {
  align-items: center;
}

.modal-body p {
  font-size: .9rem;
}

.modal-body .p-modal-img-quote {
  font-size: .8rem;
  font-style: italic;
  color: var(--main_color_01);
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
}

.modal-body a {
  color: var(--main_color_02);
}

.modal-body h5 {
  font-family: "Virgil", Arial;
  text-align: left;
  color: var(--main_color_02_dark);
}

.modal-body .badge {
  background-color: var(--main_color_02);
}

.modal-body li {
  font-size: .8rem;
  text-align: left;
  font-style: italic;
}

.modal-body blockquote {
  font-style: italic;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  background-color: var(--main_color_02_light_faded);
  border-left: var(--main_color_02_dark) solid 0.2rem;
  text-align: left;
}

.modal-body blockquote ul {
  color: var(--main_color_02_dark);
  font-size: .9rem;
  margin-bottom: 0rem;
}

.modal-body blockquote li {
  padding: .25rem .25rem;
}

.modal-footer {
  border-radius: 0;
  bottom: var(--nav-height);
  background-color: var(--main_color_04);
  position: absolute;
  width: 100%;
  padding: .5rem 1rem;
}

.modal-footer .btn {
  padding: .5rem;
}

.modal-footer .btn-modal-quit {
  background-color: var(--main_color_red) !important;
}

.modal-footer .btn-modal-quit:hover {
  background-color: var(--main_color_red_dark) !important;
}

.modal-footer .btn-modal-quit:focus {
  background-color: var(--main_color_red_dark) !important;
}

.modal-footer .btn-modal-quit:active {
  background-color: var(--main_color_red_dark) !important;
}

/* TABS */

.nav-tabs {
  border : none;
}

/*
--------------------------------
CREDENTIALS STYLES
--------------------------------
*/

#background_credentials {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100vw;
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

#background_credentials a {
  color: var(--main_color_04);
}

#background_credentials a:focus,
#background_credentials a:hover,
#background_credentials a:not([href]):not([tabindex]):hover {
  text-decoration: none;
  text-shadow: 1px 0 0 currentColor;
  color: var(--main_color_04);
}


/*
--------------------------------
NAVBAR STYLES
--------------------------------
*/

#mainNav {
  opacity: 0;
  pointer-events: none;
  min-height: 56px;
  background-color: var(--main_color_lightest_green);
  z-index: 99999;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.75rem;
  color: var(--main_color_03);
  border: 1px solid var(--main_color_03);
}

#mainNav .navbar-toggler:focus {
  outline: none;
}

#mainNav .navbar-brand {
  color: var(--main_color_01);
  padding: .9rem 0;
}

#mainNav .navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

#mainNav .navbar-nav .nav-item:hover {
  color: fade(white, 80%);
  outline: none;
  background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active, #mainNav .navbar-nav .nav-item:focus {
  outline: none;
  background-color: var(--main_color_03_faded);
}

#mainNavv.navbar-shrink .nav-link .navbar-icon {
  filter: invert(100%);
}

#mainNav .navbar-nav .nav-link button {
  background-color: var(--main_color_02) !important;
}

#mainNav .navbar-nav .nav-link button:hover {
  background-color: var(--main_color_02_dark) !important;
}

#mainNav .navbar-nav .nav-link button:focus {
  background-color: var(--main_color_02_dark) !important;
}

#mainNav .navbar-nav .nav-link button:active {
  color: white;
  background-color: var(--main_color_02) !important;
}

#mainNav .dropdown-item.active, .dropdown-item:active {
  background-color: var(--main_color_02_faded);
}

#mainNav .dropdown-menu {
  padding-left: .5rem;
  padding-right: .5rem;
}

#mainNav .navbar-brand:focus,
#mainNav .nav-link:focus {
  outline: none;
}

@media (min-width: 992px) {
  #mainNav {
    padding: 0;
    border-bottom: none;
    background-color: var(--main_color_03);
    -webkit-transition: background-color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
  }
  #mainNav .navbar-brand {
	color: white;
    background-color: transparent
  }
  #mainNav .dropdown-menu {
    background-color: var(--main_color_02)
  }
  #mainNav .dropdown-item:hover {
    background-color: var(--main_color_04)
  }
  #mainNav .nav-link {
    -webkit-transition: none;
    transition: none;
    padding: 1rem 1rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 0.25rem solid transparent;
  }
  #mainNav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
  }
  #mainNav .nav-link:active {
    color: white;
  }
  #mainNav.navbar-shrink {
    background-color: var(--main_color_lightest_green);
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: var(--main_color_01);
  }
  #mainNav.navbar-shrink .dropdown-menu {
    background-color: var(--main_color_lightest_green);
  }
  #mainNav.navbar-shrink .dropdown-item:hover {
    background-color: var(--main_color_04);
  }
  #mainNav.navbar-shrink .dropdown-item.active {
    background-color: white;
  }
  #mainNav.navbar-shrink .dropdown-item.active:hover {
    background-color: var(--main_color_04);
  }
  #mainNav.navbar-shrink .nav-link {
    color: var(--main_color_05);
    padding: 1rem 1rem 1rem;
    border-bottom: 0.25rem solid transparent;
  }
  #mainNav.navbar-shrink .nav-link:hover {
    color: var(--main_color_02);
  }
  #mainNav.navbar-shrink .nav-link:active {
    color: var(--main_color_02);
  }
  #mainNav.navbar-shrink .nav-link.active {
    color: var(--main_color_02);
    outline: none;
    border-bottom: 0.25rem solid var(--main_color_02);
  }
}

/*
--------------------------------
HEADER STYLES
--------------------------------
*/

.masthead {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 35rem;
}

.masthead .container {
  padding-top: var(--nav-height);
  padding-bottom: var(--nav-height);
}

.masthead .sketch-highlight:before,
.masthead .sketch-highlight:after,
.masthead .sketch-highlight-alternate:before,
.masthead .sketch-highlight-alternate:after{
  border-width: .25rem;
  opacity: 1;
}

.masthead .sketch-highlight:before{
  border-top-color:var(--main_color_02_light);
  border-left-color:var(--main_color_02_light);
  border-bottom-color:var(--main_color_02_light);
}

.masthead .sketch-highlight:after{
  border-right-color:var(--main_color_02_light);
  border-bottom-color:var(--main_color_02_light);
}

.masthead .sketch-highlight-alternate:before{
  border-top-color:var(--main_color_02);
  border-left-color:var(--main_color_02);
  border-right-color:var(--main_color_02);
  border-bottom-color:transparent;
}

.masthead .sketch-highlight-alternate:after{
  border-right-color:transparent;
  border-left-color:var(--main_color_02);
  border-bottom-color:var(--main_color_02);
  border-top-color:var(--main_color_02);
}


.masthead h1 {
  display: table-cell;
  vertical-align: middle;
  font-family: "Amatic SC", Arial;
  font-size: 2.75rem;
  font-weight: bold;
  line-height: 3rem;
  letter-spacing: 0.4rem;
  color: var(--main_color_02_light);
  text-shadow: 1px 1px var(--main_color_02_dark);
}

.masthead h2 {
  font-size: 1rem;
  color: black;
  font-weight: normal;
  font-family: "Virgil", Arial;
  margin: 0;
}

.masthead p {
  margin: 0;
}

.masthead .btn {
  padding: .5rem;
  margin-left: 10%;
  margin-right: 10%;
  font-size: .75rem;
}

.masthead img {
  height: 50px;
}

@media (min-width: 768px) {
  .masthead h1 {
    font-size: 2.75rem;
    line-height: 2.75rem;
    letter-spacing: 0.4rem;
  }
  .masthead h2 {
    font-size: 1.25rem;
  }
  .masthead .btn {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
  }
  .masthead h1 {
    font-size: 3.75rem;
    line-height: 4rem;
    letter-spacing: 0.4rem;
  }
  .masthead h2 {
    font-size: 1.25rem;
  }
  .masthead .btn {
    font-size: 1rem;
  }
  .masthead img {
    height: 100px;
  }
}

@media (min-width: 2000px) {
  .masthead {
    height: 100vh;
  }
  .masthead h1 {
    font-size: 6.25rem;
    line-height: 8rem;
    letter-spacing: 0.8rem;
  }
  .masthead h2 {
    font-size: 2rem;
  }
  .masthead .btn {
    font-size: 1.25rem;
    padding: 1rem;
  }
  .masthead img {
    height: 100px;
  }
}

#title_page {
  pointer-events: none;
  opacity: 0;
  border-radius: .75rem;
  background-color: rgba(255, 255, 255, 0.75);
}

/*
--------------------------------
SECTIONS STYLES
--------------------------------
*/

section .low-highlight {
  background:linear-gradient(90deg, white 1rem, transparent 1rem),linear-gradient(180deg, transparent 70%, var(--main_color_02_light) 70%);
  padding-right: 0.75rem;
}

section .low-highlight-left {
  background:linear-gradient(180deg, transparent 70%, var(--main_color_02_light) 70%);
  padding-left: 0.75rem;
}

section h2 {
  font-weight: bold;
  font-family: "Amatic SC", Arial;
  color: var(--main_color_03);
  letter-spacing: .25rem;
  text-shadow: 1.5px 1.5px var(--main_color_01);
}

/*
--------------------------------
WEBSITE CARBON BADGE STYLES
--------------------------------
*/

.wcb-section {
  padding-top: 3rem;
  background: var(--main_color_01);
}

.wcb-section #wcb_a {
  background: var(--main_color_02) !important;
  border-color: var(--main_color_02) !important;
}

.wcb-section #wcb_g {
  border-color: var(--main_color_03) !important;
  color: var(--main_color_03) !important;
}

.wcb-section #wcb_2 {
  display: none;
  color: var(--main_color_02) !important;
}

/*
--------------------------------
FOOTER STYLES
--------------------------------
*/

footer {
  padding: 3rem 0;
  background-color: var(--main_color_01);
}

footer a {
  color: var(--main_color_02);
}

footer a:focus,
footer a:hover,
footer a:not([href]):not([tabindex]):hover {
  text-decoration: none;
  text-shadow: 1px 0 0 currentColor;
  color: var(--main_color_02_dark);
}
