/*!
Theme Name: Gilston Digital Starter Theme
Author: Gilston Digital SA
Author URI: https://gilston.digital/
Description: Theme de départ pour wordpress
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gd-starter
*/  

/* NORMALIZED
--------------------------------------------- */
html {
	line-height: 1.2;
	-webkit-text-size-adjust: 100%;
  font-size: 18px;
}
body {
	margin: 0;
}
main {
	display: block;
}
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}
a {
	background-color: transparent;
}
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}
b,
strong {
	font-weight: 600;
}
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}
small {
	font-size: 80%;
}
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub {
	bottom: -0.25em;
}
sup {
	top: -0.5em;
}
img {
	border-style: none;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

body{
	background-color: #1B1C21;
}
#content{
	background-color: #fff;
}
a,img,header#masthead,#left-logo,#content,.nav-link{
  transition: all ease-in 0.2s;
  -webkit-transition: all ease-in 0.2s;
  -ms-transition: all ease-in 0.2s;
  -o-transition: all ease-in 0.2s;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #1B1C21;
	font-family: Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.3;
  font-weight: 300;
}
p {
	margin-bottom: 1rem;
}
h1,h2,h3,h4,h5,h6{
  font-weight: 600;
}

/* Links 
---------------------------------------------- */
a{
  text-decoration: none;
  color: #fa7429;
}
a:hover{
  color: #c95217;
}
a:focus {
	outline: none;
}
a:hover,
a:active {
	outline: 0;
}

/* CONTENT
--------------------------------------------- */
#content.site-content{
  padding-top: 100px;
}
body.sticky-header #content.site-content{
  padding-top: 50px;
}

.btn.btn-primary{
  background-color: #fa7429;
  border-color: #fa7429;
}
.btn.btn-primary:hover {
  background-color: #c95217;
  border-color: #c95217;
}
.btn.btn-outline-primary{
  color: #fa7429;
  border-color: #fa7429;
}
.btn.btn-outline-primary:hover{
  color: #fff;
  border-color: #fa7429;
  background-color: #fa7429;
}
.bg-primary{
  background-color: #fa7429!important;
}

/* NAV
--------------------------------------------- */

header#masthead {
  margin-bottom: 0;
  background-color: #FFF;
  box-shadow: 1px 3px 5px rgba(27, 28, 33, 0.1);
  padding:0;
  height: 100px;
  width: 100%;
  position: fixed;
  display: flex;
  align-items: center;
  z-index: 1000;
}
header#masthead .container{
  height: 100%;
}
body.sticky-header header#masthead{
  height: 50px;
}
header#masthead #left-logo{
  position: absolute;
  left:0;
}
header#masthead #left-logo img{
  height: 50px;
}
body.sticky-header header#masthead #left-logo img{
  height: 30px;
}
#left-logo:hover img{
  opacity: 0.7;
}
#masthead nav {
  padding: 0;
  height: 100%;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
#masthead .navbar-nav{
  flex-direction: row;
  justify-content: flex-end;
}
#masthead #mobile-navbar-toggler{
  display: none;
  position: relative;
  z-index: 2001;
	border: 0;
  padding: 0;
}
#masthead #mobile-navbar-toggler,
#masthead #mobile-navbar-toggler:focus,
#masthead #mobile-navbar-toggler:hover,
#masthead #mobile-navbar-toggler:active{
	outline: none;
	border: 0!important;
	border-style: none!important;
	box-shadow: none;
}
#masthead #mobile-navbar-toggler img{
	height: 18px;
}
#masthead #main-nav-flex-container{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#masthead #main-nav{
  padding-left: 0;
  padding-right: 0;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  left: -1rem;
  border-radius: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 1);
  border: 0;
  padding: 1rem 0;
  min-width:300px;
}

.navbar-nav .dropdown-menu .nav-item {
  text-align: start;
  padding: 0 1rem;
  font-weight: 400;
}

.navbar-nav .dropdown-menu .nav-item .nav-link { 
  position: relative;
  text-transform: uppercase;
}

#masthead .navbar-nav .dropdown-menu .nav-item .nav-link:hover,
#masthead .navbar-nav .dropdown-menu .nav-item.current_page_item .nav-link {
  color: #fa7429;
}

#masthead .navbar-nav > li > a {
  color: #1B1C21;
  font-size: 1.1rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0 1.5rem 0 0;
}

body.sticky-header header#masthead .navbar-nav > li > a{
  font-size: 1rem;
  line-height: 1rem;
}


#masthead .navbar-nav > li > a:hover,
#masthead .navbar-nav > li.current_page_item > a {
  color: #fa7429;
}

@media only screen and (max-width: 991px) { /** before large **/
  #content.site-content{
    padding-top: 50px;
  }
  header#masthead{
    height: 50px;
  }
  header#masthead #left-logo{
    opacity: 1;    
  }
  header#masthead #left-logo img{
    height: 30px;
  }
  #masthead #mobile-navbar-toggler{
    display: block;
  }
  #masthead #main-nav-flex-container{
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    overflow: hidden;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: rgba(255, 255, 255, 0.9);
  }
  #masthead .navbar-nav{
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 0 2rem;
  }
 
  #masthead .dropdown-menu{
    padding-top: 0!important;
    width: 100%!important;
  }
  #masthead .navbar-nav .dropdown-menu .nav-item  {
    text-align: center;
  }
  #masthead .navbar-nav > li > a {
    font-size: 1.5rem;    
    line-height: 1.5rem;
    margin-bottom:1.3rem;
    text-align: center;
  }
  body.sticky-header #masthead .navbar-nav > li > a {
    font-size: 1.5rem!important;
    line-height: 1.5rem!important;;
    margin-bottom:1.3rem!important;
    text-align: center;
  }
}

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

#site-footer{
	position: relative;
  color: #FFF;
}

#site-footer #gd_credit-inline img{
	height: 18px;
}

#site-footer #credits{
	position: absolute;
	top:10px;
	right: 6px;
	display: flex;
	flex-direction: column;
}

#site-footer #gd_credit img{		
	width: 14px;	
}

#site-footer #gd_credit-inline img {
  height: 18px;
}