// Your custom SCSS should be written here...

.grav-lightslider {
    .lSSlideOuter {
        .lSPager.lSpg {
            > li a {
                z-index: 1;
            }
        }
    }
}

.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, #footer {
  padding-left: 3rem;
}

#body > script:first-child + .grav-lightslider {
  margin-top: -3rem;
}

#sb-site{
  background: none !important;

  #body{
    background: none !important;
    padding-bottom: 2rem !important;
    font-family: "Sarabun", sans-serif !important;
    p:empty { display:none; }
  }
}

#header.scrolled {
  padding-left: 2rem;
  padding-right: 2rem;
}
#header #navbar ul.navigation li a {
    font-family: "Sarabun", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    -webkit-backface-visibility: hidden;
    // float: left;
}


#header #navbar ul.navigation li:after {
  display: inline;
  content: "|";
  padding: 0 .1em;
  vertical-align: top;
}

#header #navbar ul.navigation li:last-child:after {
  content: "" !important;
}

#header #navbar ul.navigation li a:hover {
  font-weight: 900;
}

#logo {
  position: relative;
    display: flex;
    flex-direction: row;
    @include transform(scale(0.75));
    // &.active {
    //   a:after {
    //     top: 0;
    //     visibility: visible;
    //     @include transform(scale(0.75));
		// 	  @extend .default-animation;
    //   }

    img {
      padding: 0.5rem;
      height: 3rem;
      margin:auto;
      #gouv {
        padding-right: 2rem;
        padding: 0.5rem;
        min-height: 4rem !important;
        margin:auto;
      }
      #epau {
      }
    }
}

.callout {
  padding-top: 0.5rem;

}

.callout h1, h2, h3, p {
  text-align: left !important;
  }

.callout {
    padding-right: 0rem !important;
    padding-left: 0rem !important;

    // h1 {
    // margin-bottom: 0rem !important;
    // }
    h2 {
      text-transform: capitalize;
      font-weight: 300;
      font-size: 1rem;
    }

}
.titre_nsb {
    display: block;
    margin-right: 52%;

      h1 {
        margin-bottom: 0rem !important;
        text-align: right;
        padding-right: 0rem !important;
      }
}


.titre_bsn {

  display: block;
  margin-left: 40%;
  // padding-right: 15%;

    h1 {
      text-align: left;
      margin-bottom: 0rem !important;
      // padding-bottom: 3rem;
    }

    p {
      padding-right: 15%;
    }
}

@keyframes animate {
  0% {width: 0%;}

  100% {width: 100%;}
}

@keyframes glissement {
  from {
    margin-left: 100%;
    width: 300%;
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}
.after-h1 {
  .in-view-right {
    // opacity: 0;
    // transition: opacity 1s ease-in-out;
    animation: animate 1.2s 1 normal ease-in-out forwards;
  }
  .in-view {
    animation: glissement 1.2s 1 normal ease-in-out forwards;
  }
}
//
// .after-h1 {
//   .test {
//     // opacity: 0;
//     // transition: opacity 1s ease-in-out;
//     animation: anim 2.5s 1 normal ease-in-out forwards;
//   }
//   .animateMe {
//     animation: glissement 2.5s 1 normal ease-in-out forwards;
//   }
// }



.programmes {


  display: flex;
  flex-wrap: wrap;
  //
  // background-image:
  // url("/user/themes/epau-antimatter/images/14360_default_big.jpg") ,
  //   url("/user/themes/epau-antimatter/images/10361_web_01.jpg") ,
  //   url("/user/themes/epau-antimatter/images/hyperliens_marseille_.PNG") ,
  //   url("/user/themes/epau-antimatter/images/jeux-olypiques-paris-2024-village-athle-lot-e2.jpg") ;
  //
  // background-attachment: fixed;
  //
  // background-position: 50% -50px;

  // position: sticky;
  // transform: translateY(-1);

  // min-height: 500px;

  background-color: #d5d2d1;

  z-index: -1;
  justify-content: center;
  padding-left: 15%;
  padding-right: 15%;

  padding-top: 8rem;
  padding-bottom: 8rem;
}

.parallax-window {
    // min-height: 400px;
    background: transparent;
    // height: 1534px;
    // overflow: hidden;
}

// .images-background {
//   position: absolute !important;
//   width: 100%;
//   display: flex;
//   flex-direction: row;
//   flex-wrap: wrap;
//   justify-content: space-between;
//
//   #photo1 {
//     position: relative;
//     top: -60px;
//
//   }
//
//   #photo2 {
//     z-index: 0;
//     width:700px !important;
//     position: relative;
//     top: 260px;
//   }
//
//   #photo3 {
//     z-index: 0;
//     width:700px !important;
//     position: relative;
//     top: 300px;
//   }
//
//   #photo4 {
//     z-index: 0;
//     width:700px !important;
//     position: relative;
//     top: 300px;
//   }
// }


.programme {

  z-index: 1;
  max-width: 35%;
  min-width: 26rem;
  padding: 1.5rem;
  background-color: white;
  margin: 0.4rem;


    h4 {
      text-transform: uppercase;
      line-height: 1.2;

    }

    img {
      max-height: 4rem;
    }

    p {
      font-family: $font-family-default;
      font-weight: 500;
      font-style: italic;
      padding-bottom: 1.5rem;
    }
}


.programme:hover {
  background-color: #000;
  transition:0.2s ease-in-out;

  p {
    color: #fff;
  }

  h4 {
    color: #fff;
  }
}


/*CSS pour afficher/masquer un texte via un bouton*/

/*Style du module TEXTE*/
.texte-cache {
  position: relative;

  max-height: 400px; /*Hauteur du texte visible avant le clic*/
  overflow: hidden; /*On cache tout ce qui dépasse des 400px*/
  transition: max-height 1s ease; /* Transition CSS entre l'ouverture et la fermeture*/
}

/*Style du module TEXTE lorsqu'il est ouvert*/
.texte-cache.ouvert {
    max-height: 300vh; /* On lui définit une hauteur max de tout l'écran si nécessaire pour qu'il affiche tout son contenu*/
  }

/*On stylise l'effet de flou lorsque le module TEXTE est fermé, donc il n'a pas la classe "ouvert"*/
.texte-cache:not(.ouvert)::after {
  content: '';
  position: absolute;
  top: 400px;
  bottom: 0;
  left: 0;
  right: 0;
  // background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); /*Couleur de notre effet*/
}

.bouton-ouverture {
    position: relative;
    justify-content: center;
    cursor: pointer;
    border: solid;
    border-radius: 0px !important;
    background-color: transparent;
    text-transform: uppercase;
    left: 45%;
    // margin-top: 3rem;
    margin-bottom: 2rem !important;

}

.gouvernance {
  background-color: #000;
  color: #ffffff;
  text-transform: uppercase;
  padding-bottom: 6rem;
  padding-top: 2rem;

}

.mozaique_personnes {
  background-color: #d5d2d1;
  padding-bottom: 4rem;



  .equipe {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    // margin-left: 15%;
    // padding-right: 15%;
    width: 100%;
    padding-left: 22%;
    padding-right: 15%;
    margin: auto;
    justify-items: center;

    h3 {
      // display: flex;
      // flex-grow: 1;
      padding-top: 3rem;
      // padding-left: 15%;
      min-width: 100%;
      font-family: "Sarabun", sans-serif;
      font-weight: 800;
      font-size: 1rem;
      line-height: 20px;
      text-align: left;
    }

    .personne {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      // width: 50%;

      padding-right: 0.5rem;
      padding-bottom: 0.5rem;

      .mozaique {
        display: flex;
        flex-direction: row;


        justify-content: flex-end;
        max-width: 30rem;
        min-width: 30rem;

        .photo {
          // min-width: 10rem;
          // min-height: 10rem;

          // max-width:50% !important;
          overflow: hidden;
          width: 15rem !important;
          height: 15rem !important;
          // object-fit: cover;
          // background-size: cover;

          img {
              // maxwidth: 15rem !important;
              // height: 15rem !important;
              object-fit: cover;
              width: 100%;
              height: 100%;

          }

        }

        .info {
          background-color: #fff;
          display:flex;
          flex-direction: column;
          font-family: $font-family-default;
          width: 50%;
          height: 15rem;
          min-width: 15rem;

          h5 {
           font-weight: 900;
           font-size: 1.1rem;
           margin: 0;
           padding-top: 0.8rem;
           padding-right: 1rem;
           padding-left: 1.3rem;
         }
         h6 {
           font-weight: 300;
           font-size: 0.9rem;
           font-style: italic;
           line-height: 1.3;
           margin: 0;
           padding-right: 1.2rem;
           // padding-bottom: 1rem;
           padding-left: 1.3rem;
         }

         &:hover {
             background-color: #000;
             color: #fff;
             transition:0.2s ease-in-out;
         }
        }
      }
    }
  }

}


// .mozaique :hover {
//   background-color: #000;
//   color: #fff;
// }

.bouton {
  border: solid !important;
  background-color: transparent;
  border-radius: 0px !important;
  text-transform: uppercase;
  align-self: flex-end;
  margin:auto;
  margin-bottom: 0.8rem !important;
  font-size: 0.7rem;
}
//
// .bouton :hover {
//     background-color: #000;
// }


// pop in biographie

.modal {
	position: fixed;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
}
.modal.open{
	display: block;
  // .bouton {
  //   border: solid !important;
  //   background-color: transparent;
  //   text-transform: uppercase;
  //   align-self: flex-end;
  //   margin:auto;
  //   margin-bottom: 2rem;
  // }
}

// #modal .mask{
// 	background: none !important;
// 	opacity: 1;
// 	position: absolute;
// 	top: 0;
// 	right: 0;
// 	bottom: 0;
// 	left: 0;
//
// }
// #body .grey {
//   opacity: 0.5;
// }

.modal .container{
	position: absolute;
	background: white !important;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 50%;
	height: content;
	min-height: 50px;
  border: solid;
  color: black;

  .message{
  	padding: 5% 10% 5% 5%;
  }

  a.close{
  	position: absolute;
  	right: 5%;
  	top:5%;
  	color: black;
  	font-size: 30px;
  }

  a.close:hover{
  	color: black;
  }

}


#new-footer {
  // position:absolute;
  display: flex;
  flex-direction: column;

  .tothetop {
    position: absolute;
    // align-self: center;
    height: 1rem;
    bottom: $footer-height + 10rem;
		text-align: center;
		left: 0;
		right: 0;

    span {
      font-size: 1.7rem;
      line-height: 2,5rem;
      background: #fff;
      width: 4rem;
      height: 5rem;
      border-radius: $border-radius;
      display: inline-block;
      text-align: top;
    }
  }


  .footer {
    display: flex;
    flex-direction: row;

    .footer-logos {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      width: 70%;
      align-items: center;
      margin-left: 3rem;
      img {
        // min-height: 4rem;
        max-height: 4rem;
        padding-right: 1rem;
        &:last-of-type {
          // height: 3.25rem;
          padding-top: 0.30rem;
          padding-bottom: 0.30rem;
        }
      }
    }

#new-footer .footer .footer-logos img:last-of-type {
  height: 0.5rem !important;
}
    .contact {
      display: flex;
      flex-direction: column;
      width: 30%;
      margin-top: 1.5rem;
      align-items: flex-start;
      img {
        margin-bottom: 1rem;
        max-height: 2rem;
      }
      svg {
        margin-bottom: 1rem;
      }
      h6 {
        margin: 0 !important;
        font-weight: 600;
      }
      p {
        margin: 0;
      }
    }
  }
}


button:focus {
  border: solid !important;
  background-color: transparent;
  border-radius: 0px !important;
  text-transform: uppercase;
  align-self: flex-end;
  margin:auto;
  // margin-bottom: 2rem;
  outline: -webkit-focus-ring-color auto 0px;
      outline-color: -webkit-focus-ring-color;
      outline-style: auto;
      outline-width: 0px;
}
