/* STYLES.CSS */

/* imports */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&family=League+Spartan:wght@300;400;600;700&family=Raleway:ital,wght@0,400;0,600;1,400;1,600&display=swap');
/*
font-family: 'Barlow Condensed', sans-serif;
font-family: 'League Spartan', sans-serif;
font-family: 'Raleway', sans-serif;
*/

 :root{
   --color1: #107527;
   --hauteurMenu : 140px;
   --colorbg: #10752760; /* #10752730;*/
   --color: rgba(0,0,0,1);
   --val1: 37vh;
   --coulbtn: #107527;
   --vertfonce: #1d4810;

  --size: 50px;
  --twice: calc(var(--size) * 2);
  --half: calc(var(--size) / 2);
  --banner: 30vw;
  --bkg: #91AEBA;
}

 @media screen and (max-height:600px) {
   :root {
     --val1: 25vh;
   }
 }

/* Reset */
html{height: 100%; width: 100%; }
body{width: 100%; height: 100%; overflow-x: hidden; color:var(--color); margin: 0; padding: 0;
    font-family: 'Raleway', sans-serif;
 /*transition:background-color 2s;*/}
* {box-sizing: border-box; position: relative; }

img{max-width: 100%; height: auto;}
figure{margin:0}
ul, ol{margin: 0; display: block; text-align: left; padding: 0; }
li{margin: 0.2em 0; list-style: none; min-height:1.36em; padding-left: 6px; }
div, section{box-sizing: border-box; position: relative; display: block;  }
blockquote {margin-inline-start: 0px; margin-inline-end: 0px; }
p, h1, h2, h3, h4, h5, h6{margin-block-start: 0px; margin-block-end: 0px; margin-inline-start: 0px; margin-inline-end: 0px; }
a{transition: color .1s }
::selection {background:#10752730; color:var(--color1); transition: all 2s}

/* typo */
body, p, h1, h2, h3, h4, h5, h6{font-family: 'Raleway', sans-serif;}

p{font:400 15px / 1.35 'Raleway',sans-serif; margin:.5em 0 .5em;}
h1{font:600 28px/1 'League Spartan',sans-serif; margin:1em 0 .5em}
h2{font:600 24px/1.1 'League Spartan',sans-serif;margin:1em 0 .5em}
h3{font:600 18px/1.35 'League Spartan',sans-serif;margin:1em 0 .5em}
a{text-decoration: none; color:var(--color); outline: none}
sup {vertical-align: super; font-size: smaller; line-height: 1; }
strong{font-weight: bold}

/* blocs */
div.petit p{font-size: 12px}

/* SVG */
svg .pict{fill:var(--color)}

/* layout */
#page{display: flex; width:100%; flex-direction: row}
section{margin:40px auto; width: calc(100% - 20px); max-width: 960px; padding: 60px 10px}

main{width:100%; }
main div.contenus{margin: auto; }
main.leave{position:fixed;}
main.home{width:100vw; padding:0; background: #FFF; left: 0}
#diaporama {height: 100vh; background: #000}
#diaporama .swiper-wrapper{opacity: .8}
#diaporama img{height: 100%; width: 100%; object-fit: cover;}

/* bouttons */
.button, a.button, button {
  display: inline-block;
  padding: 2px 12px;
  font-size: 14px;
  border: 1px solid;
  width: auto;
  margin-top: 5px;
  border-radius: 20px;
  color: var(--coulbtn);
  border: 1px solid var(--coulbtn);
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  background: transparent;
  /* font-family: 'Barlow'; */
}

.button:hover, a.button:hover, button:hover {
  color: white;
  background-color: var(--coulbtn);
}

/* a:hover  svg{background: var(--color);transition-duration: .1s} */
a:hover path{fill:var(--vertfonce);transition-duration: .1s}

#logo_ecochanvre{
  position: absolute;
  width: 500px;
  top: 50vh;
  left: 50vw;
  z-index: 10;
  transform: translate(-50%, -50%);
  filter: drop-shadow(15px 1px 20px rgb(0 0 0 / 1));
  max-width: calc(100% - 40px);
  margin-top: 0px;
}

#logo_ecochanvre.topleft{
  position: fixed;
  top: -120px;
  left: 10px;
  transform: none;
  width: 180px;
  height: 57px;
  filter: none;
  fill: var(--color1);
  transition: margin 1s;
  margin-top: 110px;
  z-index: 20000;
}

#logo_ecochanvre.topleft *.a{
  fill: var(--color1);
}

#arrow_bas{position: absolute; transform: translate(-50%, -50%); top: calc(100vh - 60px);
left: 50vw; z-index: 10; filter: drop-shadow(0px 1px 20px rgb(0 0 0 / 1)); cursor: pointer;
}

section#presentation{text-align: center; padding: 120px 0; max-width: 750px}

#activites{height: 600px;}
#activites h1{width: 300px; position: absolute; left: 50%;top: 50%; text-align: center;transform: translate(-150px, -60px);}
#activites .pict{width: 150px; height: auto; position: absolute; left: 50%;top: 50%; text-align: center;}
#activites .pict h3{margin: 0;}
/*#activites .pict_batiment{transform: translate(-75px, -240px);}
#activites .pict_alimentation{transform: translate(-335px, -70px);}
#activites .pict_textile{transform: translate(185px, -70px);}
#activites .pict_culture{transform: translate(-205px, 110px);}
#activites .pict_plasturgie{transform: translate(55px, 110px);}*/

#activites .pict_batiment{transform: translate(-75px, -240px);}
#activites .pict_alimentation{transform: translate(-315px, -130px);}
#activites .pict_textile{transform: translate(165px, -130px);}
#activites .pict_culture{transform: translate(-315px, 60px);}
#activites .pict_divers{transform: translate(165px, 60px);}
#activites .pict_plasturgie{transform: translate(-75px, 150px);}

#categories{height: 440px;}
#categories .bt_filiere{
  cursor: pointer;
  transition: transform .2s;
}
#categories .bt_filiere:hover{
  transform: scale(1.2);
}

#activites + #membres{margin-top:80px;}
div#actus_wrapper{background: #819D6C70}

section#actualites{padding:15px 10px 40px}
section#actualites h1{text-align: center; padding-bottom: 5px; margin: 30px auto 40px; position: relative}
/* section#actualites h1:after{content:""; display: inline-block; width:100%; border-bottom: 2px solid var(--coulbtn);} */
section#actualites img{width:100%; object-fit: cover; height: 200px}
section#actualites .swiper-slide{background: white; transition: background-color 0s}
section#actualites .swiper-slide .content_txt{padding: 10px; height: 200px;}
section#actualites .swiper-slide .content_txt h2{margin: 0}
section#actualites .swiper-slide[data-fancybox]:hover {background-color:var(--colorbg); cursor: pointer;}
section#actualites .swiper-slide[data-fancybox]:hover .content_txt{transition: none;}

section#actualites .swiper-slide[data-fancybox]:hover img{
  filter: grayscale(1);
  mix-blend-mode: hard-light;
}

section#membres{}
section#membres h1{text-align: center; text-align: center; margin-bottom: 45px; margin-top: 10px; line-height: 1;}
section#membres .wrapper_membres{display: flex; justify-content: center; flex-flow: row wrap; align-items: center;}
section#membres img{filter: grayscale(1); transition: all .2s;}
section#membres img+p{margin-top: 0}
section#membres a:hover img{filter: grayscale(0); transform: scale(1.2)}
section#membres .wrapper_membres .m{
  width: 25%;
  text-align: center;
  margin: 20px 0;
  height: auto;
  line-height: 20px;
}

section#partenaires{padding-bottom: 100px;}
section#partenaires h1{text-align: center; text-align: center; margin-bottom: 60px; margin-top: 10px; line-height: 1;}
section#partenaires .swiper-wrapper{align-items: center;}
section#partenaires .swiper-slide{text-align: center;}

section#membres .wrapper_membres .m p{
  line-height: 1;
  margin-bottom: 10px;
}

section#membres .pic_type{
  width: 35px;
  height: 35px;
  border-radius: 40px;
  margin: auto;
  display: inline-block;
  margin: 0px 5px;
}

section#membres .pic_type svg{
  width: 35px;
  height: 35px;
}

section#membres .plusurl{
  width: 34px;
  height: 34px;
  border-radius: 40px;
  border: 1px solid #D9C600;
  color: #FFF;
  font-size: 50px;
  display: inline-block;
  line-height: 33px;
  background: #D9C600;
}
section#membres a:hover .plusurl{
  color: #D9C600;
  background: #FFF;
}
section#musee{
  position: relative;
  height: 400px;
  background: #000;
  padding: 0;
}
section#musee #swiper_musee{
  width: 100%;
  height: 100%;
  opacity: .9;
}
section#musee .texte{
  text-align: center;
  position: absolute;
  z-index: 10;
  width: 100%;
  top: 50%;
  transform: translate(0, -50%);
}
section#musee .texte h1{
  text-align: center; text-align: center; margin-bottom: 20px; margin-top: 10px; line-height: 1; color:#FFF; font-size: 50px;
}
section#musee .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section#musee button{
  --coulbtn: #FFF;
}
section#musee button:hover{
  color:#000;
}
footer{
  width:100%;
  background:#819D6C;
  display: flex;
  justify-content: space-between;
}
footer a:hover{
  color: var(--vertfonce)
}
footer div.adresse{
  text-align: center;
  color: #FFF;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 50%;
  /* margin-left: 25%; */
}
footer div a{
  color:#FFF;
}
footer div.col_gauche{
  width: 25%;
  text-align: center;
  display: flex;
  flex-flow: row;
  justify-content: space-around;
  align-items: center;
}
footer div.col_droit{
  color: #FFF;
  flex-flow: wrap;
  width: 25%;
  padding-right: 40px;
  text-align: right;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}
footer div.rs{
}
footer div.menu2_footer{
  margin-bottom: 20px;
  font-size: 13px;
}

#menu {
  position: fixed;
  right: 0;
  text-align: right;
  z-index: 10000;
  padding: 10px 0;
  padding-right: 10px;
  width: 100vw;
}

#menu a {
  color: white;
  padding: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0px 1px 20px rgba(0,0,0,1);
  transition: all .2s;

}

#menu.topright a{
  color: var(--color1);
  text-shadow: 0px 1px 20px rgba(0,0,0,0);
}

#menu.topright{
  background: white;
}


#menu.topright .active a,
#menu.topright a:hover,
#menu a:hover {
  color: #D9C600;
}


.swiper-button-next, .swiper-button-prev {
  right: -18px;
  left: auto;
  background: var(--color1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: #FFF;
  top: calc(50% + 37px);
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}
.swiper-button-prev {
  left: -18px;
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 20px;
  color: #FFF;
}
/* Custom scroll  */
.custom-scroll .scrollbot-scrollbar-holder{
  width: 10px;
  height: 100%;
  position: absolute;
  left: 10px !important;
  background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;
  border-radius: 15px;
  display: block;
  height: calc(100% - 20px) !important;
  top: 10px  !important;
}

.custom-scroll .scrollbot-inner-parent{
  padding-left: 30px !important;
  padding-right: 0px !important;
}
/* .scrollbot-inner-parent{
  padding-right: 40px;
} */


/* home */
div.news{
  position: fixed;
  right: 100px;
  bottom: 200px;
  background: #806497C8;
  width: 390px;
  height:auto;
  z-index: 100;
  color:#FFF;
  padding: 25px 20px 10px;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}
div.news *{margin: 0}
div.news h2{font:600 28px/1 'League Spartan',sans-serif; margin:1em 0 .5em; margin-top:8px; }
div.news h3{font: 400 20px/1.1 'League Spartan',sans-serif;}

div.news .losange{
  width: 80px;
  margin: 20px auto 10px;
  margin-right: 0;
}

/* main */
div.contenus .col_1sur2{width: 50%;}
div.contenus .col_1sur2 img{height: 100%; width: 100%; object-fit: cover;}
div.contenus .col_1sur3{width: calc(33% - 10px); max-height: 100%;}
div.contenus_page {
  padding: 44px;
  max-width: 900px;
  margin: auto;
}

div.contenus_page > *:first-child {
    margin-top:0px;
}

/* fancybox */
.fancybox-bg {background:var(--colorbg)};
.fancybox-caption {color: var(--color);}
.fancybox-button svg path {fill: var(--colorbg);}

.fancybox-content {
  background: #fff;
  display: inline-block;
  margin: 0;
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 44px;
  position: relative;
  text-align: left;
  vertical-align: middle;
}

.fancybox-content{
  border-radius: 20px;
  width:800px;
  min-height: 500px;
  max-height: calc(100vh - 50px);
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

.fb_actualite .fancybox-content {padding: 0px;}
.fb_actualite img.bandeau{
  height: 300px; width: 100%; object-fit: cover;
}
.fb_actualite .contenus_page{padding:30px 44px;}


.fb_filiere .fancybox-content {padding: 0px;}
.fb_filiere img.bandeau{
  height: 270px; width: 100%; object-fit: cover;
}
.fb_filiere .contenus_page{padding:20px 44px 30px;}
.fb_filiere .contenus_page h1{text-align: center;}

.fancybox-slide--html .fancybox-close-small {
  background: var(--color1);
  opacity: 1;
  color: #FFF;
  border-radius: 50%;
  padding: 0px;
  width: 26px;
  height: 26px;
  top: 15px;
  right: 15px;
}
.fancybox-button svg {
  display: block;
  height: 100%;
  overflow: visible;
  position: relative;
  width: 100%;
}
.fancybox-button svg path {
  fill: #FFF;
  stroke-width: 0;
}
.fancybox-navigation .fancybox-button--arrow_left, .fancybox-navigation .fancybox-button--arrow_right {
  background: #FFF;
  opacity: 1;
  color: #FFF;
  border-radius: 50%;
  padding: 0px;
  width: 26px;
  height: 26px;
  margin: 30px;
}
.fancybox-navigation .fancybox-button svg path {
  fill: var(--color1);;
  stroke-width: 0;
}
.fancybox-navigation .fancybox-button div {
  padding: 3px;
}

figure[data-ratio] img{width: 100%; height: 100%; object-fit: contain}
figure[data-crop] img{object-fit: cover}
figure[data-ratio="auto"] {aspect-ratio: auto; }
figure[data-ratio="16/9"] { aspect-ratio: 16 / 9;}
figure[data-ratio="10/8"] { aspect-ratio: 10 / 8;}
figure[data-ratio="21/9"] { aspect-ratio: 21 / 9;}
figure[data-ratio="7/5"] { aspect-ratio: 7 / 5;}
figure[data-ratio="4/3"] { aspect-ratio: 4 / 3;}
figure[data-ratio="3/2"] { aspect-ratio: 3 / 2;}
figure[data-ratio="3/1"] { aspect-ratio: 3 / 1;}

div.video iframe {
  width: 100%;
  height: 390px;
}

/* Important styles */
#menu_toggle {
  display: none;
  width: 30px;
  height: 30px;
  margin: 30px auto 10px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  margin: 0;
  right: 20px;
}
#menu_toggle span:after,
#menu_toggle span:before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
}
#menu_toggle span:after{
  top: 9px;
}
#menu_toggle span {
  position: absolute;
  display: block;
  top: 14px;
}
#menu_toggle span,
#menu_toggle span:after,
#menu_toggle span:before {
  width: 100%;
  height: 2px;
  background-color: var(--color);
  transition: all 0.3s, background-color 2s;
  backface-visibility: hidden;
  border-radius: 0px;
}
#menu_toggle.on span {
  background-color: transparent;
  transition: all 0.3s, background-color 0s;
}
#menu_toggle.on span:before {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu_toggle.on span:after {
  transform: rotate(-45deg) translate(7px, -8px);
}




@media screen and (max-width: 428px) {
  main{
    max-width: 100vw;
  }
  #activites h1{
    position: relative;
    left: 0%;
    top: auto;
    transform: translate(0);
    left: auto;
    top: auto;
  }
  #activites {
    height: auto;
    width: 100%;
  }
  #activites h1{
    width: 100%;
  }
  #activites h1 br{
    display: none;
  }
  #categories {
    height: auto;
    width: 100%;
  }
  #activites .pict{
    width: 100%;
    position: relative;
    left: 0;
    top: 0;
    text-align: center;
    transform: none;
  }
  #activites .swiper-slide{
    width:100%;
    text-align: center;
  }
  section#presentation{padding: 10px 0;}


  #diaporama {
    height: 50vh;
  }
  section#membres .wrapper_membres{
    display: flex;
    justify-content: space-between;
    flex-flow: row;
  }
  #logo_ecochanvre {
    top: 25vh;
  }
  #arrow_bas{display: none;}
  #arrow_bas path{
    fill: var(--color1);
  }

  footer {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-around;
    padding-top: 20px;
  }
  footer div.col_gauche {
    width: 190px;
    margin-top: 10px;
  }
  footer div.adresse {
    margin: 0;
    padding: 0px;
  }
  footer div.col_droit{
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .rs h2{
    display: none;
  }
  footer div.menu2_footer{
    margin-top: 20px;
  }


}

@media screen and (max-width: 860px) {
  #menu .link-container { height: 0; position: absolute; left: 0; top: var(--size); width: 100vw; overflow: hidden; transition: height .3s ease;}
  #menu.open .link-container { height: calc(var(--size) * 5.5); }
  #menu .link-container .link-wrapper,
  #menu .link-container .rs { position: absolute; display: block; margin: auto; right: 50vw; transform: translateX(50%); top: calc(var(--size) * 4 + 9px); height: auto; margin-top: 20px;}
  #menu .link-container .link-wrapper.works { top: 0; }
  #menu .link-container .link-wrapper.values { top: var(--size); }
  #menu .link-container .link-wrapper.ecosystem { top: var(--twice); }
  #menu .link-container .link-wrapper.contact { top: calc(var(--size) * 3); }

  #menu_toggle { display: block; position: absolute; top: 50%; right: var(--size); height: calc(var(--size) / 2.1); width: calc(var(--size) / 1.5); transform: translateY(-50%);  cursor: pointer; }
  #menu_toggle span { display: block; position: absolute; left: 0; height: 1px; width: 100%; background: #000; transition: transform .3s ease, left .3s ease; }
  #menu_toggle span:nth-child(1) { top: 0; transform-origin: top left; }
  #menu_toggle span:nth-child(2) { top: 0; bottom: 0; left: 0; right: 0; margin: auto; }
  #menu_toggle span:nth-child(3) { bottom: 0; transform-origin: bottom left; }

  .open #menu_toggle span:nth-child(1) { transform: rotate(45deg); }
  .open #menu_toggle span:nth-child(2) { transform: scaleX(0); }
  .open #menu_toggle span:nth-child(3) { transform: rotate(-45deg); }
  .open #menu_toggle span:nth-child(1),
  .open #menu_toggle span:nth-child(3) { left: calc(var(--size)/8.5);  }

  #menu{display: none;}

  div.contenus_page {padding: 30px;}
  .fancybox-content {padding: 0; width: auto;}

  .fb_actualite .contenus_page {padding: 20px 30px;}
  .fb_filiere .contenus_page {padding: 0 20px 30px;}
}
