/*
Theme Name: Université-FC-thème
Author: Marie-Almina Gindre
Description: Thème wordpress pour les sites de l'université de Franche-Comté
Version: 1.1
License: GNU General Public License v3 or later
*/


/***** Global *****/

/* Polices */
@font-face {
font-family: Lovelo_Black;
src: url(assets/fonts/Lovelo-Black.ttf);
font-weight: normal;
}

@font-face {
font-family: Poppins_Bold;
src: url(assets/fonts/Poppins-Bold.otf);
font-weight: normal;
}

@font-face {
font-family: Poppins_medium;
src: url(assets/fonts/Poppins-Medium.otf);
font-weight: normal;
}

@font-face {
font-family: Poppins_regular;
src: url(assets/fonts/Poppins-Regular.otf);
font-weight: normal;
}

.article-loop, .article-full{
  position: relative;
}

* {
  box-sizing: border-box;
}

body {
  background-color: white;
  font-family: Poppins_regular, Helvetica;
}

footer {
  margin-top: 4px;
  padding: 25px;
}

a {
  text-decoration: none;
}

/* Pour évité que les images soient déformées lorque la taille de la fenêtre change (wp met une width maximal mais ne touche pas à la hauteur donc sur petis écran c'est déformé)*/
img{
  height: auto;
}

/***** Header *****/

/*
main_header est la classe du header principal
On y retrouve le logo du site ou son nom
*/
.main_header{
  padding: 0px;
  max-width: 1200px;
  margin: auto; 

}

.main_header, 
footer {
  width: 100%;
  padding-left: 0px;
  margin-bottom: 8px;
  overflow: hidden;
}

/***** Menus *****/

.menu{
  padding:0px;
  margin:3px;
  list-style-type:none;
}

.menu-item{
  float:left;
  list-style-type:none;
}

.menu .menu-item a{
  display:block;
  color: black;
  text-decoration:none;
  text-align:center;
}

.menu_secondaire{
  display: inline-block;
}

/***** Menus section *****/

#site-header{
  display: flex;
}

#site-header img{
  height: 85px;
  margin: 10px;
}

.menu_principal{
  display: flex;
  width: max-content;
}

.section_menus{
  margin-top: 10px;
  margin-left: 5px;
}

.section_menus .partie_principale{
  display: inline-block;
}

/***** Up Section*****/

.section_up, .section_menus{
  display: block;
}

.section_up{
  text-align: right;
  height: auto;
  width: 100%;
  position: relative;
}

.menu-reseaux, .menu-sup, .menu-langue{
  display: inline-block;
  vertical-align: middle;
}

.menu-langue{
  width: 130px;
  cursor: pointer;
}

#gtranslate_selector{
  -webkit-appearance: none;
  border: solid 1px #606060;
  border-radius: 8px;
  padding: 5px;
  padding-right: 20px;
}

#gtranslate_selector:focus{
  outline: none;
}

#gtranslate_selector option{
  border: solid 1px black;
}

.menu-langue::before{
  font:normal 17px/1 dashicons !important;
  content: "\f347";
  padding: 5px;
  color: #606060;
  pointer-events: none;
  position: absolute;
  top:7px;
  right:0;
}



@media screen and (max-width: 500px) {
  .menu-secondaire li{
    width: 100%;
  }

  .menu-langue::before{
    content:'';
  }

  .menu-langue{
    width: auto;
    margin-top:5px;
  }

  #gtranslate_selector{
    padding-right: 5px;
  }

}

/***** Menu supérieur *****/
/***** gauche sous logo , fond gris, txt blanc, surligné rouge *****/

.menu-sup{
  background-color: #ef4036;
  display: inline-block;
  padding: 5px;
  position: relative;
  margin-right: 5px;
}

.menu-sup .menu-item:not(:last-child):after{
  position: absolute;
  top:20%;
  content:'';
  border-right: 1px solid white;
  height: 60%;
}

.menu-sup .menu .menu-item a{
  color: white;
  padding:2px 6px;
}



/***** Menu Réseaux Sociaux *****/

/* L'image utilisé se trouve dans le dossier img */
/* Ce menu permet d'ajouter des liens pour
 * ?
 * Twitter
 * Facebook
 * Linkedin
 * Google +
 * Instagram
 * Pour ajouter d'autres réseaux il faudra ajouter une image et le code CSS correspondant
 */

/*
https://fr-fr.facebook.com/
https://twitter.com/?lang=fr
https://www.google.com/
https://www.instagram.com/?hl=fr
https://fr.linkedin.com/
*/

.menu-reseaux{
  height: 33px;
}

.menu-reseaux .menu-item{
  margin:0 3px;
}

.menu-reseaux .menu-item, .menu-reseaux .menu-item a{
  height: 28px;
  width:28px;
}

.menu-reseaux .menu-item a[href*="facebook"]{
  background-position: -50px 0;
}

.menu-reseaux .menu-item a[href*="twitter"]{
  background-position: -24px 0;
}

.menu-reseaux .menu-item a[href*="google"]{
  background-position: -98px 0;
}

.menu-reseaux .menu-item a[href*="linkedin"]{
  background-position: -74px 0;
}

.menu-reseaux .menu-item a[href*="instagram"]{
  background-position: -124px 0;
}

.menu-reseaux .menu-item a{
  background-image: url("assets/img/social.png");
  background-repeat: no-repeat;
  overflow: hidden;
  text-indent: 150%;
  border-radius: 50%;
  border: 1px solid black;
}



/***** Menu principal *****/


.menu_principal{
  background-color: #292f33;
}

.menu_principal .menu-item:not(:first-child){
  margin-left: 2px;
}

.menu_principal .menu .menu-item a{
  color: white;
  margin: 0px 5px;
  padding: 5px 3px;
  transition-property: margin;
  transition-duration: 1s;
}

.menu_principal .menu .menu-item a:hover {
  background-color:#ef4036;
  margin: 0px 5px;
  transition: 1s;
}

/***** Menu secondaire *****/

.menu_secondaire{
  background-color: #f9f9f9;
  border:1px solid #E6E6E6;
  margin:10px;
}

.menu_secondaire .menu-item:not(:first-child){
  margin-left: 2px;
}

.menu_secondaire .menu .menu-item a{
  margin: 5px;
  padding: 40px 10px;
  transition-property: background-color;
  transition-duration: 2s;
  font-family: Poppins_regular;
  text-transform: uppercase;
  color : #515151;
  font-size: 14px;
}

.menu_secondaire .menu .menu-item a:hover {
  background-color: #dbdbdb;
}

/***** Menu du footer *****/

.menu-footer{
  color: #292f33;
  /* color: #ef4036; couleur charte */
  display: flex;
  justify-content: center;
}

.menu-footer .menu-item{
  float:none;
}

.menu-footer .menu-item a:not([href]),.menu-footer .menu-item a[href=""]{
  pointer-events: none;
  color: #ef4036;
}

.menu-footer .menu-item a{
  color: white;
  text-align: left;
}

.menu-footer .menu, .menu-footer .sub-menu{
  list-style-type:none;
}

.menu-footer .menu{
  column-count: 2;
  column-rule: 1px solid white;
  column-gap: 5em;
}

.menu-footer .sub-menu{
  padding: 0;
}

footer{
  background-color: #002c40;
  border: 1px solid #002c40;
}


@media screen and (max-width: 800px) {

  .menu-footer .menu{
    column-count: 1;
  }

  .menu_principal .menu-item{
    width: 100%;
  }

  .section_menus{
    margin-left: 0px;
  }

  .menu_secondaire{
    margin-left: 0px;
  }

  .section_menus, .section_menus .partie_principale{
    max-width: 100%;
  }

  .section_menus .partie_principale .menu_principal{
    max-width: 100%;
  }

}


/***** Contenu de la page *****/
main {
  display: block;
  max-width: 1200px;
}


/* 'Margin: 0 auto' centers block content on the page

wrap : classe de tout sauf premier header et footer avec copyright (main)
*/
.wrap {
  width: 100%;
  margin: 0 auto;
}

/*
dans wrap le contenu de la page
*/
.content-area {
  display: inline-block;
}

/*
pareil que content area mais en plus petit??
TODO : c'est quoi tout ça
*/
.content-thin {
  width: 100%;
}

.content-full-width {
  width: 100%;
}

.content-area{
  display: inline-block;
}



/***** Articles *****/

.article-loop {
  width: 45%;
  text-align: left;
  margin: 5px;
  padding: 10px;
}

/*
dans content-area un article
contient header et plusieurs div
*/
.article-full {
  width: 100%;
  padding: 0px;
}

.article-loop,
.article-full {
  display: inline-block;
  vertical-align: top;
  background-color: #FFF;
  border-radius: 4px;
  margin-bottom: 4px;
}



/* Quand on set sa taille dans functions.php il
  s'affiche quand même a la taille de l'image que l'on a ajouté donc j'ai mis un important en atendant de comprendre pourquoi
 */

.custom-logo {
	height:25px !important;
  width: auto;
}

.custom-logo-link{
  vertical-align: middle;
  display: inline-block;
}


/***** bloc_menu  *****/

.bloc_menu_item{
  position: relative;
  display: inline-block;
  width: 33%;
  padding: 10px;
  vertical-align: top;
  color: black;
}

.bloc_menu > div > p{
  position: relative;
  display: block;
  background-color: rgba(0,0,0,0.45);
  padding: 50px;
  width: 60%;
  margin: 30px auto;
  font-size: 22px;
  color:white;
}

.bloc_menu_item p{
  font-size: 15px;
}

.bloc_menu_item a{
  color: black;
}

.bloc_menu_item h3{
  font-family: Lovelo_Black;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.bloc_menu_item p::before{
  content:'';
  display: block;
  width: 50%;
  margin: 0 auto;
  padding-bottom: 10px;
  border-top: 2px solid #ef4036;
}

.bloc_menu_item > .wp-block-group__inner-container{
  cursor: pointer;
  background-color: white;
  height: 200px;
  padding: 20px 30px;
}

.bloc_menu {
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #002c40;
  text-align: center;
  padding: 20px 10px;
}

.bloc_menu figure{
  position: absolute;
  z-index: 0;
  margin: 0 auto;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
}

.bloc_menu figure::after{
  content:' ';
  height: 100%;
  width: 100%;
  position: absolute;
  top:0;
  left:0;
  background: linear-gradient(to bottom,rgba(0,44,64,0) 0%,rgba(0,44,64,0) 40%,rgba(0,44,64,1) 80%,rgba(0,44,64,1) 100%)
}

.bloc_menu figure img{
  width: 100%;
  height: auto;
}

@media screen and (max-width: 800px) {

  .bloc_menu > div > p{
    width: auto;
    padding: 20px;
    font-size: 20px;
  }

  .bloc_menu_item{
    width: 99%;
    padding: 10px;
  }

  .bloc_menu_item h3{
    font-size: 17px;
  }

  .bloc_menu_item p{
    font-size: 14px;
  }

  .bloc_menu_item > .wp-block-group__inner-container{
    padding: 10px;
  }

}



/***** Page simple *****/

/*Pour les templates page simple et page simple menu*/

.page_simple h1{
  text-transform: uppercase;
  font-family: Lovelo_Black;
  font-weight: normal;
  font-size: 50px;
  letter-spacing: 2px;
  text-align: center;
}

.page_simple h2{
  font-family: Poppins_medium;
  font-weight: bold;
  color: #ef4036;
}

.page_simple header{
  border-bottom: 3px solid #ef4036;
  margin: 0 80px;
  margin-bottom: 50px;
}

@media screen and (max-width: 800px) {

  .page_simple h1{
    font-size: 40px;
  }

  .page_simple header{
    margin: 0;
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 400px) {

  .page_simple h1{
    font-size: 25px;
  }

}

/***** Petis blocs ****/

.groupe_petits_blocs{
  width: 90%;
  margin: 0 80px;
}

.petit_bloc{
  display: inline-block;
  width: 24%;
  padding: 10px;
  cursor: pointer;
  vertical-align: top;
}

.petit_bloc figure{
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin: 0;
}

.petit_bloc figure img{
  margin: 0;
}

.petit_bloc h3 a{
  color:black;
}

.petit_bloc h3, .petit_bloc p{
  margin-right: 3px;
  margin-left: 3px;
  color: black;
}


@media screen and (max-width: 800px) {

  .groupe_petits_blocs{
    width: 100%;
    margin: 0;
  }

  .petit_bloc{
    width: 100%;
  }

}

/***** Division cachée *****/

.hidden_div{
  width: 80%;
  margin: 0 auto;
  border-bottom: 1px solid #ccc;
}

.hidden_div h2{
  color:black;
  cursor: pointer;

}

.hidden_div h2::before{
  font:normal 20px/1 dashicons !important;
  content: "\f347";
  padding: 5px;
  color: #c7362f;
}

.hidden_div h2.up::before{
  font:normal 20px/1 dashicons !important;
  content: "\f343";
  padding: 5px;
  color: #c7362f;
}

.hidden_div .hidden_group{
  display: none;
  margin-left: 30px;
}

.hidden_div .hidden_group .wp-block-file a:first-child::before{
  content: "\f498";
  font:normal 20px/1 dashicons !important;
  padding: 5px;
  color: #c7362f;
}

/***** Responsive ******/

 @media screen and (max-width: 800px) {
    .article-loop {
      width: 99%;
    }

    /* Pour éviter que les images ne soient coupées */
    img{
      max-width: 100%;
      height: auto !important;
    }

  }

@media screen and (max-width: 400px) {
  .content-area{
    width: 100%;
  }
}

 /* BLOC ROUGES PAGE ACCUEIL unvisited link */
.bloc_rouge a:link {
  color: blank;
}

/* visited link */
.bloc_rouge  a:visited {
  color: blank;
}

/* mouse over link */
.bloc_rouge a:hover {
  color: blank;
}

/* selected link */
.bloc_rouge  a:active {
  color: blank;
} 