/*!
Theme Name: DES sécurité Theme
Author: Gilston Digital SA
Author URI: https://gilston.digital/
Description: Theme pour wordpress
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: des-securite
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
-----------------------------------------------------*/

/* NORMALIZED
--------------------------------------------- */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
  font-size: 16px;
}
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:rgb(163,163,163);
}
#content{
	background-color: #fff; 
  
  
}
#main{
  position: relative;
  min-height: 500px;  
}

#main::before{
  width: 60px;
  background-image: url(img/dates.png);
  background-position: top left;
  background-size: 60px auto;
  background-repeat: no-repeat;
  content: "";
  display: block;
  clear: both;
  position: absolute;
  top:6px;
  left: 6px;
  height: 600px;
}
@media only screen and (max-width: 1279px) { /** before large **/
  #main::before{
    opacity: .3;
  }
}


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: #252525;
	font-family: "DM Sans",Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.3rem;
  font-weight: 300;
}
p {
	margin-bottom: 1rem;
}
h1,h2,h3,h4,h5,h6{
  font-weight: 600;
}
h1.entry-title,
h1.main-title-left{
  text-transform: uppercase;
}
h1.entry-title::after{
  width: 150px;
  height: 2px;
  background-color: #d20f1e;
  content: "";
  display: block;
  margin: 6px auto 0 auto;
  
}
h1.main-title-left::after{
  width: 150px;
  height: 2px;
  background-color: #d20f1e;
  content: "";
  display: block;
  margin: 6px 0 0 0;
}

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

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

.btn.btn-primary{
  background-color: #d20f1e;
  border-color: #d20f1e;
}
.btn.btn-primary:hover {
  background-color: #9d020f;
  border-color: #9d020f;
}
.btn.btn-outline-primary{
  color: #d20f1e;
  border-color: #d20f1e;
}
.btn.btn-outline-primary:hover{
  color: #fff;
  border-color: #d20f1e;
  background-color: #d20f1e;
}
.bg-primary{
  background-color: #d20f1e!important;
}

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

header#masthead {
  position: fixed;
  margin-bottom: 0;
  background-color: #FFF;  
  padding:0;
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 1000;
  background-image: url(img/banner.jpg);
  background-position: center;
  background-size: cover;
}
header#masthead .container,
header#masthead .container-fluid{
  height: 100%;
}
body.sticky-header header#masthead{
  height: 50px;
}
header#masthead #main-logo{
  margin-top: 15px;
}
header#masthead #main-logo img{
  height: 130px;
}
body.sticky-header header#masthead #main-logo img{
  height: 30px;
}
header#masthead #swiss-label-link
{
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
}
header#masthead #swiss-label-link img{
  height: 50px;
}
header#masthead #gradiant-bg{
  position: absolute;
  bottom:0;
  left:0;
  width: 100%;
  height: 200px;
  background: linear-gradient(0deg, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 80%); 
  z-index: 1;
}

header#masthead #secondary-nav{
  position: absolute;
  top: .5rem;
  right: 0;
  z-index: 3;
}
header#masthead #secondary-nav .navbar-nav > li > a{
  text-transform: none;
  font-size: 1.2rem;
  font-weight: 400;
}
header#masthead #secondary-nav .navbar-nav > li > a:hover,
header#masthead #secondary-nav .navbar-nav > li.current_page_item > a {
  color: #ffd332;
}
#masthead nav {
  padding: 0;
  height: 100%;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  z-index: 2;
}
#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: center;
  align-items: center;
  padding: 1rem 0;
}
#masthead #main-nav{
  padding-left: 0;
  padding-right: 0;
}
header#masthead  #secondary-nav-mobile{
  display: none;
}
.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;
}

.navbar-nav .dropdown-menu .nav-item .nav-link:hover,
.navbar-nav .dropdown-menu .nav-item.current_page_item .nav-link {
  color: #d20f1e;
}
@media only screen and (max-width: 1279px) { /** before large **/
  
  #content.site-content{
    padding-top: 50px;
  }
  header#masthead{
    height: 50px;
  }
  #masthead nav{
    flex-direction: row;
  }
  header#masthead #secondary-nav,
  header#masthead #swiss-label-link,
  header#masthead #gradiant-bg{
    display: none;
  }
  
  header#masthead  #secondary-nav-mobile,
  header#masthead  #main-nav{
    width: 100%;
    display: flex;
  }
  header#masthead #main-logo{
    opacity: 1;    
    margin-top: 0;
  }
  header#masthead #main-logo img{
    height: 30px;
  }
  #masthead #mobile-navbar-toggler{
    display: block;
  }
  #masthead #main-nav-flex-container{
    height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    overflow: hidden;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: rgba(0,0,0, 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 {
  color: #FFF;
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 0 1.8rem 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: #d20f1e;
}

@media only screen and (max-width: 1279px) { /** before large **/
  #masthead .navbar-nav > li > a {
    font-size: 1.2rem;    
    line-height: 1.2rem;
    margin-bottom:1.2rem;
    text-align: start;
  }
}

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

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

#site-footer #tamtam-inline img {
  height: 26px;
}

#site-footer #footer-logo-link img {
  height: 125px;
}

.prestation-block,
.emploi-block,
.realisation-block,
.partenaire-block{
  background-color: rgb(163,163,163);
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 100%;
}
.realisation-block{
  padding: 0;
  background-color: #FFF;
}
.partenaire-block{
  padding: 0;
}
.realisation-block .realisation-content,
.partenaire-block .partenaire-content{
  padding: 1.5rem;
}
.realisation-block .realisation-image{
  flex: 35% 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
}
.prestation-block h2,
.emploi-block h2,
.partenaire-block h2{
  margin: 0;  
  color: #252525;
  font-size: 1.5rem;
  line-height: 1.1;
}
.realisation-block h2{
  margin: 0;  
  color: #252525;
  font-size: 1.5rem;
  line-height: 1.1;
}
.emploi-block h4{
  color: #252525;
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 300;
}
a .prestation-block:hover,
a .emploi-block:hover,
.partenaire-block:hover,
.prestation-block.active{
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

a .prestation-block:hover h2,
a .emploi-block:hover h2,
.partenaire-block:hover h2,
.prestation-block.active h2{
  color: #d20f1e;
}

#prestations-sidelist .prestation-block{
  padding: .8rem;
}
#prestations-sidelist .prestation-block h2{
  font-size: 1rem;
}

.separator{
  height: 2px;
  background-color: #d20f1e;
}


div.wpforms-container-full{
  margin: 0!important;
}
div.wpforms-container-full input[type="submit"]:not(:hover):not(:active), div.wpforms-container-full button[type="submit"]:not(:hover):not(:active), div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full input[type="submit"]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full button[type="submit"]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active){
  background-color: #d20f1e!important;
  border-color: #d20f1e!important;
  border-radius: 0!important;
}
div.wpforms-container-full input[type="submit"]:hover, div.wpforms-container-full input[type="submit"]:active, div.wpforms-container-full button[type="submit"]:hover, div.wpforms-container-full button[type="submit"]:active, div.wpforms-container-full .wpforms-page-button:hover, div.wpforms-container-full .wpforms-page-button:active, .wp-core-ui div.wpforms-container-full input[type="submit"]:hover, .wp-core-ui div.wpforms-container-full input[type="submit"]:active, .wp-core-ui div.wpforms-container-full button[type="submit"]:hover, .wp-core-ui div.wpforms-container-full button[type="submit"]:active, .wp-core-ui div.wpforms-container-full .wpforms-page-button:hover, .wp-core-ui div.wpforms-container-full .wpforms-page-button:active{
  background-color: #9d020f!important;
  border-color: #9d020f!important;
  border-radius: 0!important;
}

.home-cta-bloc .ratio{
  --bs-aspect-ratio:35%;
}
.home-cta-bloc .ratio *{
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
}
.home-cta-bloc .bloc-title{
  color: #FFF;
  position: absolute;
  bottom: 0;
  left:0;  
  padding: 1.2rem;
  padding-right: 180px!important;
  margin: 0;
  font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6), 0 0 4px rgba(0, 0, 0, 1);
}
.home-cta-bloc .bloc-img{
  width: auto;
  background-color: rgba(255,255,255,.8);
  padding: .4rem;
  position: absolute;
  top:0;
  right: 0;
}

.home-cta-bloc a{
  position: absolute;
  bottom:1.5rem;
  right: 1.5rem;
}
@media only screen and (min-width: 991px) {
  .home-cta-bloc .ratio{
    --bs-aspect-ratio:20%;
  }
  .home-cta-bloc .bloc-title{
    padding: 1.5rem;
    font-size: 3.2rem;
    padding-right: 180px!important;
  }
  .home-cta-bloc .bloc-img{
    padding: 1.2rem;
  }
  .bloc-img img{    
    height: 50px;
  }
}


.home-cta-bloc{
  display: block;
  box-shadow: 0 0 12px rgba(27, 28, 33, 0.2);
  color:#141215;
}

.home-cta-bloc:hover{
  box-shadow: 0 0 14px rgba(27, 28, 33, 0.5);
}
.post-thumbnail img{
  width: 100%;
  height: auto;
}
#news-slideshow{
  box-shadow: 0 0 12px rgba(27, 28, 33, 0.2);
  
}
#news-slideshow .news-slide{
  
}

#news-slideshow .news-slide-bloc{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#news-slideshow .news-slide .sepatator{
  width: 50px;
  height: 2px;
  background-color: #d20f1e;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
#news-slideshow .news-text-bloc{
  background-color: rgba(0,0,0,.8);
  width: 50%!important;
  color: #fff;
}
#news-slideshow .news-text-bloc h3{
  font-size: 1.2rem;
}
@media only screen and (min-width: 768px) {
  #news-slideshow .news-text-bloc{    
    width: 34%!important;
  }
}
@media only screen and (min-width: 991px) {
  #news-slideshow .news-text-bloc{    
    width: 34%!important;
  }
  #news-slideshow .news-text-bloc h3{
    font-size: 2rem;
  }
}
@media only screen and (min-width: 1200px) {
  #news-slideshow .news-text-bloc{    
    width: 30%!important;
  }
  #news-slideshow .news-text-bloc h3{
    font-size: 2rem;
  }
}
#news-slideshow .slick-prev{
  top: auto;
  right: 3rem;
  left: auto;
  z-index: 11;
  bottom: 0;
}
#news-slideshow .slick-next{
  top: auto;
  right: 1rem;
  left: auto;
  z-index: 11;
  bottom: 0;
}