/* basics */

html, body {
    min-height: 100%;
    height: 100%;
}

body.mce-content-body {
	padding: 15px;
    height: auto;
    min-height: auto;
}

.navbar {
    z-index: 1020;
}

a:focus {
	outline: none;
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(39, 36, 37, 0.7);
}

.body-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transition: all 0.8s ease-out;
}

/* system */

.SystemTable {
    text-align: left;   
}

.system-message {
    font-size: inherit;   
}

.systemfooter p {
    margin-bottom: 0rem;   
}

/* images */

img.contain {
    object-fit: contain;
    padding: 15px;
}

img.cover {
    object-fit: cover;
}

img.scale-down {
    object-fit: scale-down;
}

img.none {
    object-fit: none;
}

.bg-initial {
	background: initial;
}

.bg-cover {
	background-size: cover;
    background-position: center center;
}

.bg-contain {
	background-size: contain;
    background-position: center center;
}

.text-shadow {
	text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
}


/* hover, combinable avec https://animate.style/ */ 

a:hover .d-flex-hover {
	display: flex !important;
}

a:hover .d-block-hover {
	display: block !important;
}

a:hover .d-inline-block-hover {
	display: inline-block !important;
}

.link-dark:hover {
    color: #fa3737 !important;
    transition: all .3s ease-out;
}

/* formulaires */

.g-recaptcha {
    display: inline-block;
}

.has-error .form-control {
    border-color: #fa3737;
}

.has-error .form-control-feedback {
    color: #fa3737;   
}

i.form-control-feedback {
    display: block;
    float: right;
    margin-top: -33px;
    padding-right: 10px;
    font-size: 20px;
}

/* BS4, BS5, stop stretched-link cover / hack from doc Bootstrap ABR/MBE */

.no-stretched-link {
	z-index: 2;
}

/* customs by project */

.bg-hover-primary:hover {
    background: linear-gradient(60deg, rgba(198,8,8,1) 0%, rgba(250,55,55,1) 100%) !important;   
}

.bg-hover-primary:hover * {
    color: #ffffff !important;  
}

.bg-hover-primary:hover .qs-menu .dropdown-menu * {
    color: initial !important;  
}

.primary-gradient {
    background: linear-gradient(60deg, rgba(198,8,8,1) 0%, rgba(250,55,55,1) 100%);   
}

section.bg-light,
.light-gradient {
    background: linear-gradient(60deg, rgba(233,231,231,1) 0%, rgba(245,255,251,1) 100%);   
}

.dark-opacity {
    background: rgba(0,0,0,0.75);   
}

.tplDphCarouselHeader .carousel-item img {
    height: 620px;
	max-height: 70vh;
}


@media (min-width: 991px) { 
    .body-scroll .navbar {
        width: 100%;
        position: fixed;
        top: 0px;
        transition: all 0.2s linear;
    }
}

.navbar .nav-link {
    color: #FFFFFF;
    font-size: 20px;
}

.navbar .nav-item .nav-link {
	border-top: solid 5px transparent;
	border-bottom: solid 5px transparent;
}

.navbar .nav-item.active .nav-link,
.navbar .nav-link:hover {
	border-bottom: solid 5px #000;
}

.navbar .dropdown-menu a {
    transition: all 0.8s ease-out;
}

.navbar .dropdown-menu a:hover,
.dropdown-menu a.active {
	color: #fa3737 !important;
    transition: all .3s ease-out;
}

.navbar-toggler,
.navbar-toggler:focus {
    color: #FFFFFF;
    outline: none;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    color: #fa3737;
}

article ul li,
body.mce-content-body ul li {
    display: block;
	line-height: 1.2em;
    padding: 5px 0px;
}

article ul li:before,
body.mce-content-body ul li:before {
    display: inline-block;
    width: 30px;
    font-size: 13px;
    font-family: "Font Awesome 5 Pro";
    font-weight: 500;
    font-size: inherit;
    text-rendering: auto;
    content: "\f111";
    color: #cc141f;
    margin-left: -30px;
}

.btn-up {
    display: none;
    transition: all 0.5s ease-out;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    z-index: 10;
    opacity: 0;
}

.body-scroll .btn-up {
    display: block;
    opacity: 1;
    transition: all 1.5s ease-out;
}

.label-commune-sante {
 	max-width: 100%;
    width: 240px;
    height: auto;
}

/* AddThis Share button */

.at-share-btn-elements a {
 	background-color: transparent !important;   
}

.at-resp-share-element .at-share-btn {
 	margin: 0px 0px 0px 0px !important;   
}

.at-style-responsive .at-share-btn {
 	padding: 0px 0px 0px 0px !important;   
}

.at-share-btn-elements svg {
 	display: none;   
}

.at-share-btn-elements span.at-icon-wrapper {
 	width: 54px !important;
    height: 53px !important;
    line-height: initial !important;
}

.at-share-btn-elements span.at-icon-wrapper:after {
 	font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    content: "\f064";
    font-size: 48px;
    color: #FFFFFF;
}


/* FIGCAPTION */

.caption {
    color: #FFFFFF;
    font-size: .875em;
}

.caption-vertical {
    margin-top: -30px;
    transform: rotate(-90deg);
    transform-origin: top left;
}

/* a verifier pourquoi encore nécessaire avec BS5 > ABR */

.dropdown-toggle:after {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    content: "\f107";
}

/* deapsearch custom classes */ 

.btn.active .d-none {
    display: block !important;
}

.btn.btn-dark.active {
    border: none;
    border-left: solid 5px #fa3737 !important;
}

.btn.btn-light.active {
    border: none;
    border-left: solid 5px #fa3737 !important;
}