/*
    Theme Name: TVE
    Version: 2.0
    Author: Bastien (Rose & Piment)
*/

@font-face {
    font-family: 'SourceSansPro Re';
    src: url('fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SourceSansPro Se';
    src: url('fonts/SourceSansPro-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SourceSansPro Bo';
    src: url('fonts/SourceSansPro-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.ttf?prflrj') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-quote:before {
    content: "\e900";
}


/*--------------------------------------------------------------
    Generale
--------------------------------------------------------------*/

:root {
    --rouge-1: #e1261d;
    --jaune-1: #fed11b;
    --bleu-1: #3a3e85;
    --gris-1: #afbdc5;
    --gris-2: #dee3e8;
}

body,
html {
    width: 100%;
    height: auto;
    font-size: 15px;
}
body {
    font-family: 'SourceSansPro Re', Helvetica, sans-serif;
    overflow-x: hidden;
    color: #222;
}

section {
    padding: 3rem 0;
}

b,
strong {
    font-family: 'SourceSansPro Bo', Helvetica, sans-serif;
    font-weight: unset;
}

a {
    font-family: 'SourceSansPro Se', Helvetica, sans-serif;
    color: #222;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

button:hover,
button:focus,
a:hover,
a:focus {
    color: var(--bleu-1);
    box-shadow: 0 !important;
    outline: 0 !important;
    text-decoration: none;
}

p {
    color: #222;
    margin-bottom: 20px;
}
p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
    padding-left: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'SourceSansPro Se', Helvetica, sans-serif;
}

h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 2.3rem;
}

figure {
    margin: 0;
}

.card {
    border-radius: 0;
    border: 0;
    background-color: transparent;
}
.card img {
    border-radius: 0 !important;
}

.modal-content {
    border: 0;
    border-radius: 0;
}

.grecaptcha-badge {
    display: none;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE10+ CSS here */
    .card > * {
        flex: 0 0 auto;
    }
}


/*--------------------------------------------------------------
    Top Nav
--------------------------------------------------------------*/

.top-nav {
    display: table;
    margin-right: auto;
}
.top-nav ul li a {
    font-family: 'SourceSansPro Bo', Helvetica, sans-serif;
    font-size: 0.9rem;
    color: #222;
    text-decoration: none;
}

.top-nav .navbar-center,
.top-nav .navbar-right {
    display: table-cell;
    vertical-align: middle;
}
.top-nav .navbar-center a {
    color: #222;
    text-decoration: none;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 0.2rem 1rem;
}
.top-nav .navbar-center a:hover,
.top-nav .navbar-center a:focus {
    background-color: var(--rouge-1);
    color: #fff;
}
.top-nav .navbar-right {
    padding-left: 0.5rem;
}

@media screen and (max-width: 575px) {
    .top-nav {
        margin: 0 0 0 auto;
    }
}


/*--------------------------------------------------------------
    Header
--------------------------------------------------------------*/

header .navbar .navbar-nav {
    border-top: 1px solid var(--gris-1);
    border-bottom: 1px solid var(--gris-1);
}
header .navbar .navbar-nav li a {
    font-family: 'SourceSansPro Bo', Helvetica, sans-serif;
    color: #222;
    font-size: 1rem;
    text-align: center;
    padding: 0.3rem 2rem !important;
    position: relative;
}
header .navbar .navbar-nav li a:hover,
header .navbar .navbar-nav li a:focus {
    color: var(--rouge-1);
    text-decoration: underline;
}

header .navbar .navbar-nav .dropdown-toggle::after {
    display: none;
}
header .navbar .navbar-nav .dropdown-menu {
    border: 0;
    border-radius: 0;
}
header .navbar .navbar-nav .dropdown-menu a {
    font-size: 0.9rem;
    color: #fff !important;
    margin-top: 0;
    white-space: normal;
}
header .navbar .navbar-nav .dropdown-menu a:before {
    display: none;
}
header .navbar .navbar-nav .dropdown-menu a:focus,
header .navbar .navbar-nav .dropdown-menu a:hover {
    background-color: transparent;
    text-decoration: underline;
}

header .social-icon-colored {
    margin-top: 0 !important;
}

/* Fixed navigation */

header.navigation.fixed-header {
    background-color: var(--bleu-1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 0 !important;
}
header.navigation.fixed-header .navbar-nav {
    border: 0;
}
header.navigation.fixed-header .navbar-nav li a {
    margin-top: 0;
    color: #fff;
}
header.navigation.fixed-header .navbar-nav li a:before {
    display: none;
}

header.navigation.fixed-header .top-nav .navbar-center a {
    color: #fff;
    border: 1px solid #fff;
}

@media screen and (max-width: 991px) {
    header .navbar .navbar-nav {
        border: 0;
    }
    header .navbar .navbar-toggler {
        color: var(--bleu-1);
        border-color: var(--bleu-1);
        margin: 0;
    }
    header .navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(58,62,133, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    }
    header .navbar .navbar-nav {
        margin-top: 1rem;
    }
    header .navbar .navbar-nav li {
        text-align: center;
    }
    header .navbar .navbar-nav li a {
        padding-bottom: 0;
        margin-top: 0;
    }
    header .navbar .navbar-nav li a:before {
        display: none;
    }
    header .navbar .navbar-nav li a br {
        display: none;
    }

    header.navigation.fixed-header .navbar .navbar-toggler {
        color: #fff;
        border-color: #fff;
        margin: 0;
    }
    header.navigation.fixed-header .navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    }
}


/*--------------------------------------------------------------
    Intro
--------------------------------------------------------------*/

#intro .logo {
    position: relative;
    display: inline-block;
    padding-right: 5.6rem;
    margin-bottom: 0;
}
#intro .logo:before {
    content: '';
    display: block;
    position: absolute;
    width: 90px;
    height: 100%;
    background: url(img/banner.jpg);
    background-repeat: no-repeat;
    z-index: 1;
    top: 0;
    right: 0;
}

#intro .card {
    border-top: 15px solid #3a3e85;
}
#intro .card .img {
    position: relative;
}
#intro .card .card-title {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 2rem;
    z-index: 10;
    transform: translateY(-50%);
    right: 0;
    text-align: center;
}
#intro .card .card-title i {
    font-size: 4rem;
    display: block;
}

@media screen and (max-width: 767px) {
    #intro .logo {
        display: block;
        padding-right: 0;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    #intro .logo:before {
        display: none;
    }
}


/*--------------------------------------------------------------
    Carousel
--------------------------------------------------------------*/

@media screen and (max-width: 767px) {
    #carouselIntro {
        display: none;
    }
}


/*--------------------------------------------------------------
    Youtube
--------------------------------------------------------------*/

.video-container {
    width: 100%;
    height: auto;
}
.video-container iframe {
    width: 100%;
    height: 366px;
    border: 0;
}

@media screen and (max-width: 1199px) {
    .video-container iframe {
        height: 307px;
    }
}

@media screen and (max-width: 991px) {
    .video-container iframe {
        height: 194px;
    }
}


/*--------------------------------------------------------------
    Vocation
--------------------------------------------------------------*/

#vocation h2 {
    position: relative;
    display: table;
    margin: 4.5rem auto 0;
}
#vocation h2::before {
    content: "\e900";
    font-family: 'icomoon';
    position: absolute;
    color: var(--gris-1);
    font-size: 3.5rem;
    right: 0;
    left: 0;
    top: -4.5rem;
    margin: 0 auto;
}
#vocation .card .card-body {
    text-align: center;
    padding: 0;
}
#vocation .card .card-body .card-title {
    background-color: var(--rouge-1);
    color: #fff;
    padding: 0.4rem;
}


/*--------------------------------------------------------------
    Histoire
--------------------------------------------------------------*/

#histoire .carousel {
    position: relative;
}
#histoire .carousel:before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background: url(img/border.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    z-index: 1;
    top: 1px;
    right: 0;
}
#histoire .histoire .card .card-header,
#modalHistoire .histoire .card .card-header {
    background-color: transparent;
    border-bottom: 0;
    text-align: center;
    font-size: 1.3rem;
    color: var(--bleu-1);
    position: relative;
}
#histoire .histoire .card .card-header:before,
#modalHistoire .histoire .card .card-header:before {
    content: "";
    position: absolute;
    background-color: var(--gris-1);
    height: 1px;
    width: 5rem;
    right: 0;
    left: 0;
    bottom: 0.5rem;
    margin: 0 auto;
}
#histoire .histoire .card .card-body,
#modalHistoire .histoire .card .card-body {
    text-align: center;
    padding: 0;
}
#histoire .histoire .card .card-body *:last-of-type,
#modalHistoire .histoire .card .card-body *:last-of-type {
    margin-bottom: 0;
}

#histoire .btn {
    margin: 0 auto;
    display: block;
    background-color: var(--bleu-1);
    border: 1px solid var(--bleu-1);
    border-radius: 0;
    padding: 0.175rem 2.75rem;
    margin-top: 2rem;
}


/*--------------------------------------------------------------
    Process / Equipe
--------------------------------------------------------------*/

#process .carousel,
#equipe .carousel {
    border-top: 2.5rem solid var(--jaune-1);
}
#process .carousel .carousel-caption *,
#equipe .carousel .carousel-caption * {
    color: #fff;
}
#process .card .card-body h3,
#equipe .card .card-body h3 {
    text-transform: uppercase;
    font-size: 1.3rem;
}

[id^="modalProcess"] .modal-body * {
    text-align: justify;
}
[id^="modalProcess"] .card img {
    max-width: 150px;
    display: block;
    margin: 0 auto;
}
[id^="modalProcess"] .card .card-title  {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.3rem;
}


/*--------------------------------------------------------------
    RSE
--------------------------------------------------------------*/

#rse h2 {
    text-align: left;
}
#rse .carousel {
    position: relative;
    overflow: hidden;
}
#rse .carousel:before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background: url(img/border.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    z-index: 1;
    top: 1px;
    left: -66.4%;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotateY(180deg);
}

/*--------------------------------------------------------------
    Gamme EC
--------------------------------------------------------------*/

#gamme-ec .carousel {
    position: relative;
}
#gamme-ec .carousel:before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background: url(img/border.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    z-index: 1;
    top: 1px;
    right: 0;
}

#gamme-ec h2 {
    text-align: left;
}
#gamme-ec .btn {
    display: table;
    background-color: var(--bleu-1);
    border: 1px solid var(--bleu-1);
    border-radius: 0;
    padding: 0.175rem 2.75rem;
    margin-top: 2rem;
}

/*--------------------------------------------------------------
    Certification
--------------------------------------------------------------*/

#certification img {
    border-top: 2.5rem solid var(--gris-1);
}
#certification h2 {
    position: relative;
    display: table;
    margin: 4.5rem auto 0;
}
#certification h2::before {
    content: "\e900";
    font-family: 'icomoon';
    position: absolute;
    color: var(--gris-1);
    font-size: 3.5rem;
    right: 0;
    left: 0;
    top: -4.5rem;
    margin: 0 auto;
}
#certification .card img,
[id^="modalCertif"] img {
    max-width: 150px;
    border-top: 0;
    display: block;
    margin: 0 auto;
}
#certification .card h3 {
    font-size: 1.2rem;
}
#certification .btn {
    display: table;
    background-color: var(--bleu-1);
    border: 1px solid var(--bleu-1);
    border-radius: 0;
    padding: 0.175rem 2.75rem;
    margin: 0 auto;
}

[id^="modalCertif"] .card .card-title {
    font-family: 'SourceSansPro Se', Helvetica, sans-serif;
    color: #222;
    font-size: 1.3rem;
}


/*--------------------------------------------------------------
    Footer
--------------------------------------------------------------*/

footer .pre-footer {
    background-color: #f2f2f2;
}
footer .pre-footer ul.nav_footer {
    font-family: 'SourceSansPro Bo', Helvetica, sans-serif;
    list-style-type: none;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-left: 0;
}
footer .pre-footer ul.nav_footer:last-of-type {
    margin-bottom: 0;
}
footer .pre-footer ul.nav_footer li:last-child {
    margin-bottom: 0;
}
footer .pre-footer ul.nav_footer li a {
    color: #222;
    font-size: 0.7rem;
}
footer .pre-footer ul.nav_footer li a:hover,
footer .pre-footer ul.nav_footer li a:focus {
    color: var(--bleu-1);
    text-decoration: underline;
}
footer .pre-footer .social-links {
    text-align: center;
}
footer .pre-footer .social-links .social-icon-colored {
    padding-left: 0;
}

footer .footer * {
    color: var(--gris-1);
}

@media screen and (max-width: 767px) {
    footer .pre-footer .border-right {
        border-right: 0 !important;
    }
}

@media screen and (max-width: 575px) {
    footer .pre-footer img {
        margin: 0 auto;
        display: block;
    }
    footer .pre-footer .social-links,
    footer .pre-footer ul.nav_footer {
        text-align: center;
    }
}


/*--------------------------------------------------------------
    Carousel
--------------------------------------------------------------*/

#process .carousel .carousel-item ,
#equipe .carousel .carousel-item {
    height: 100%;
    min-height: 240px;
    background: no-repeat center center scroll;
    background-size: cover;
}


/*--------------------------------------------------------------
    Social
--------------------------------------------------------------*/

.social-links ul {
    position: relative;
    display: table;
    margin-top: 1rem;
    margin-bottom: 0;
}
.social-links .social-icon-colored li {
    position: relative;
    display: table-cell;
    margin: 0px 4px 0px;
}
.social-links .social-icon-colored li a {
    background-color: var(--bleu-1);
    position: relative;
    display: block;
    height: 30px;
    width: 30px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    border-radius: 50%;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}
.social-links .social-icon-colored li a:hover {
    color: var(--rouge-1);
    -webkit-transform: scale(1) rotate(-360deg);
    -moz-transform: scale(1) rotate(-360deg);
    -ms-transform: scale(1) rotate(-360deg);
    -o-transform: scale(1) rotate(-360deg);
    transform: scale(1) rotate(-360deg);
}


/*--------------------------------------------------------------
    Back to Top
--------------------------------------------------------------*/

.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 60px;
    text-align: center;
    z-index: 100;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--bleu-1);
    display: none;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    transition: all 300ms ease;
}

.scroll-to-top:hover {
    color: #fff;
    background-color: var(--rouge-1);
}


/*--------------------------------------------------------------
    404
--------------------------------------------------------------*/

.erreur {
    height: 100%;
    background-color: #f8f9fa;
}
.erreur .text-wrapper {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.erreur .title {
    font-size: 5em;
    font-weight: 700;
    color: #222;
    position: relative;
    text-align: center;
}
.erreur .subtitle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--rouge-1);
    position: relative;
    text-align: center;
}
.erreur .buttons {
    margin-top: 4em;
}
.erreur .buttons a.button {
    background-color: var(--bleu-1);
    display: block;
    font-weight: 700;
    text-decoration: none;
    padding: 15px;
    text-transform: uppercase;
    color: white;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.erreur .buttons a.button:hover {
    background-color: #fff;
    color: var(--bleu-1);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.erreur .subtitle:before,
.erreur .title:before {
    content: attr(data-content);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 blue;
    top: 0;
    color: white;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    -webkit-animation: noise-anim-2 3s infinite linear alternate-reverse;
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}