:root {
    --main-color: #3f4e55;
    --main-opacity-color: rgba(63, 78, 85, 0.5);

    --accent-color: #a52524;
    --accent-opacity-color: rgba(165, 37, 36, 0.85);

    --light-grey-color: #feffff;
    --light-grey-opacity-color: rgba(254, 255, 255, 0.95);
    --grey-color: #f3f5f3;
    --semi-grey-color: #f7f7f7;

    --dark-grey-color: #c8c9cb;

    --border-img-radius: 7px;
}

@font-face {
    font-family: Lato;
    src: url(/css/fonts/Lato-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: Lato;
    src: url(/css/fonts/Lato-Bold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: Lato;
    src: url(/css/fonts/Lato-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: Titillium;
    src: url(/css/fonts/TitilliumWeb-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: Titillium;
    src: url(/css/fonts/TitilliumWeb-SemiBold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: Titillium;
    src: url(/css/fonts/TitilliumWeb-ExtraLight.ttf);
    font-weight: 300;
}

@font-face {
    font-family: Lato;
    src: url(/css/fonts/Lato-Italic.ttf);
    font-style: italic;
}

@font-face {
    font-family: Lato;
    src: url(/css/fonts/Lato-LightItalic.ttf);
    font-style: italic;
    font-weight: 300;
}

/* COMMON */
body {
    background-color: var(--light-grey-color);
    color: var(--main-color);
    font-family: Lato;
    padding-top: 68px;
}

h1 {
    font-size: 1.8rem;
}

a {
    color: var(--main-color);
}

a:hover {
    color: var(--accent-color);
}

.text-main {
    color: var(--main-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-grey {
    color: var(--dark-grey-color);
}

.text-muted {
    font-style: italic;
    font-weight: 300;
}

.text-thin {
    font-weight: 300 !important;
}

.text-italic {
    font-style: italic;
}

.text-sm {
    font-size: 0.9rem;
}

.text-xl {
    font-size: 3rem;
}

.text-xxl {
    letter-spacing: -2px;
    font-size: 4.2rem;
}

.btn {
    text-transform: uppercase;
    border-radius: 5px;
}

.btn-white {
    color: var(--main-color);
    background-color: #fff;
}

.btn-grey {
    color: var(--main-color);
    background-color: var(--dark-grey-color);
}

.btn-accent {
    color: #fff;
    background-color: var(--accent-color);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background-color: var(--accent-opacity-color);
    box-shadow: none;
}

.btn-border {
    border: 1px solid var(--dark-grey-color);
}

.btn-border:hover {
    background-color: var(--grey-color);
}

.bg-semi-grey {
    background-color: var(--semi-grey-color);
}

/* SECTIONS */
section {
    width: 100%;
}

section:nth-of-type(odd),
.bg-grey {
    background-color: var(--grey-color);
}

section:nth-of-type(even),
section.section-light,
.bg-light-grey {
    background-color: var(--light-grey-color);
}

section .section-title {
    font-size: 1.25rem !important;
}

section.section-background {
    background-size: 95% auto;
    background-position: center;
    background-repeat: no-repeat;
}

section.section-quiz {
    background-image: url(/imgs/tpl/v2/QUIZZ.png);
}

section.section-testimonial {
    background-image: url(/imgs/tpl/v2/AVIS.png);
}

section.section-quote {
    background-image: url(/imgs/tpl/v2/QUOTE.png);
}

section .text-presentation {
    text-align: left;
}

section .section-title,
section>.container h2,
.text-titillium {
    font-family: Titillium;
}

section>.container h2 {
    font-weight: bold;
}

.news-content a,
.text-presentation a,
.underline-a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.05rem;
}


/* NAV */
nav {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1099;
}

nav.navbar-light {
    background-color: var(--light-grey-color);
}

#home nav.navbar-light {
    box-shadow: none;
}

nav.navbar-light,
html:not([data-scroll='0']) #home nav.navbar-light {
    box-shadow: 0 4px 2px -2px var(--grey-color);
}

nav.navbar-light .navbar-brand img,
footer .navbar-brand img {
    max-height: 45px;
}

nav.navbar-light .navbar-nav a {
    text-transform: uppercase;
}

nav.navbar-light .navbar-container {
    position: absolute;
    right: 0;
    top: 65px;
    text-align: end;
    background-color: var(--light-grey-opacity-color);
}

nav.navbar-light .navbar-nav .nav-link {
    color: var(--main-color);
    font-weight: 300;
}

nav.navbar-light .navbar-nav .nav-link.active,
nav.navbar-light .navbar-nav .nav-lang.active {
    color: var(--accent-color);
}

/* CARD */
.card.clickable-card {
    cursor: pointer;
}

.card-img-top,
.card-overlay {
    border-radius: var(--border-img-radius);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent-opacity-color);
    display: flex;
    align-items: center;
}

.card-overlay table {
    margin: 0;
}

.card-overlay table tr td {
    color: #fff;
    font-weight: 300;
    border-color: rgba(255, 255, 255, 0.7);
}

.card-overlay table tr:first-child td {
    border-top: none;
}

/* CAROUSEL */
.carousel {
    padding-bottom: 40px;
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators li {
    --size: 10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 1px solid transparent;
    background-color: var(--dark-grey-color);
}

.carousel-indicators li.active {
    background-color: var(--accent-color);
}

/* CLIENT */
.client-bloc {
    margin: 15px 0;
}

.client-container,
.client-caption {
    border: 1px solid var(--dark-grey-color);
    border-radius: 7px;
}

.client-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 10% 10%;
}

.client-container .img-fluid {
    max-height: 80px;
}

.client-caption {
    --size: 0.8rem;
    color: var(--dark-grey-color);
    background-color: var(--light-grey-color);
    text-transform: uppercase;
    font-weight: 300;
    font-size: var(--size);
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    position: absolute;
    bottom: calc(-1 * var(--size));
}

/* FOOTER */
footer {
    background-color: var(--main-color);
}

footer,
footer a {
    color: var(--dark-grey-color);
}

footer a:hover {
    color: var(--light-grey-color);
}

footer a[data-toggle='collapse'] {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #66757c;
}

footer a[data-toggle='collapse'] h6 {
    position: relative;
    margin: 0;
    font-size: 0.85rem;
}

footer a[data-toggle='collapse'] h6::after {
    content: '-';
    position: absolute;
    right: 0;
    font-weight: bold;
}

footer a[data-toggle='collapse'].collapsed h6::after {
    content: '+';
}

/* FROM */
.form-control,
.form-control:focus,
.input-group .input-group-text {
    box-shadow: none;
    color: var(--main-color);
    background-color: var(--light-grey-color);
    border-color: var(--grey-color);
    border-radius: 1.2rem;
}

.input-group-prepend+.form-control {
    border-left: 0;
    padding-left: 0;
}

.form-control::placeholder {
    font-style: italic;
}

/* LIST */
.theme-list .list-group-item {
    font-size: 0.75rem;
    background-color: transparent;
    padding: 0.25rem 0;
}

.list-group-item {
    padding: 0.5rem 0;
}

/* NEWS */
.news-container {
    margin-bottom: 1.5rem;
}

.news-picture {
    border-radius: var(--border-img-radius);
}

.news-container .news-picture-container {
    position: relative;
    width: 100%;
    height: 190px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--border-img-radius);
}

.news-container .news-date {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: var(--main-opacity-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0 0.75rem;
    line-height: 0.9;
    border-top-left-radius: var(--border-img-radius);
    border-bottom-left-radius: var(--border-img-radius);
}

.news-container small {
    margin-top: 5px;
}

.news-container .news-date .day {
    font-size: 2.5rem;
}

.news-container .theme,
.news-container .author {
    color: var(--main-color) !important;
}

.news-container .readtime {
    white-space: nowrap;
    color: var(--dark-grey-color) !important;
}

.news-container .news-content:first-letter {
    float: left;
    font-size: 5rem;
    line-height: 0.65;
    margin: 0.1em 0.1em 0 0;
}

.news-container .news-content,
.text-content {
    line-height: 1.5;
}

.news-container a:hover p {
    color: var(--main-color);
}

.news-container.main h1 {
    font-size: 2rem;
    line-height: 1;
}

.news-container.main h2 {
    font-size: 1.6rem;
}

.news-container.main h3 {
    font-size: 1.75rem;
}

.news-container.main h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.news-container .btn {
    font-size: 0.8rem;
}

.news-modal .modal-dialog {
    margin-top: 90px;
}

.news-modal .modal-dialog button.close {
    font-size: 1.25rem;
    position: absolute;
    right: 0.125rem;
    top: -0.125rem;
}

.news-modal .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.news-modal .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* BANNERS */
.banner-container {
    color: #fff;
    text-align: center;
    padding: 1rem 0.5rem 2rem;
    background-color: var(--accent-color);
    border-radius: var(--border-img-radius);

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1.5rem;

    background-repeat: no-repeat;
    background-size: 450%;
}

.banner-container.banner-horizontal {
    flex-direction: row;
    background-size: 150%;
    padding: 1rem 0.5rem 1rem 1rem;
}

.banner-container.banner-coaching:not(.banner-horizontal) {
    /* min-height: 350px; */
    word-break: break-word;
    hyphens: auto;
}

.banner-container .banner-picto {
    width: 80px;
    height: auto;
}

.banner-container .banner-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.banner-container.banner-horizontal .banner-title {
    max-width: 40%;
    text-align: left;
}

.banner-container.banner-horizontal .banner-count {
    display: none;
}

.banner-container.banner-chart {
    background-image: url(/imgs/tpl/v2/pictoETS-rouges.png);
    background-position: 56% 16%;
}

.banner-container.banner-time {
    background-image: url(/imgs/tpl/v2/pictoETS-rouges2.png);
    background-position: 56% 20%;
}

.banner-container.banner-globe {
    background-image: url(/imgs/tpl/v2/pictoETS-rouges3.png);
    background-position: 10% 20%;
}

.banner-container.banner-balance {
    background-image: url(/imgs/tpl/v2/pictoETS-rouges4.png);
    background-position: 15% 35%;
}

.banner-container.banner-coaching {
    min-height: auto;
    padding: 1.5rem 1rem;
    color: var(--main-color);
    background: var(--grey-color);
    background-repeat: no-repeat;
    background-size: 90%;
    background-image: url(/imgs/tpl/v2/pictoCoaching-grey.png);
    background-position: -200% 0%;
}

img.picto-title {
    max-width: 150px;
}

/* BLOCK */
.block-container {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--main-color);
    background-color: var(--light-grey-color);
    border-radius: var(--border-img-radius);
    min-height: 150px;
    padding: 1rem;
    font-weight: bold;
}
.block-container:hover {
    color: var(--accent-color);
}
.block-container.active {
    color: #fff;
    background-color: var(--accent-color);
}

.block-container-detail {
    padding: 1.5rem;
    color: #fff;
    background-color: var(--accent-color);
    border-radius: var(--border-img-radius);
}

.picture-wrap {
    margin-bottom: 0.5rem;
}

#expertise-container {
    position: relative;
    overflow-x: hidden;
}

#expertise-container .background-image {
    position: absolute;
    top: 60px;
    right: -60px;
    width: 300px;
}

.popover {
    z-index: 1200;
}


img {
    max-width: 100%;
    height: auto;
}

@media print {
    img {
        display: block;
        page-break-inside: avoid;
    }
}

.modal-content {
    position: relative;
    padding: 40px;
    z-index: 200;
}

.modal .logoModal {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 30%;
    z-index: 300;
}

.modal-wrapper {
    position: relative;
}

.modal .bgLogoModal {
    position: absolute;
    right: 0;
    bottom: 0;
    max-height: 55%;
    z-index: 100;
}

.modal-body {
    position: relative;
}

.modal p,
.modal span,
.modal a,
.modal i,
.modal h4 {
    position: relative;
    z-index: 400;
    font-size: 1.3rem;
}


.modal h4 {
    font-family: Lato;
    font-weight: 400;
    z-index: 400;
}

.modal h3 {
    font-family: Lato;
    font-weight: 300;
    color: rgba(165, 37, 36, 0.85);
}

.modal i {
    color: rgba(165, 37, 36, 0.85);
}

.modal-body p {
    position: relative;
    line-height: 2;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.itemPOR {
    height: 400px;
}

.itemPOR img {
    max-width: 40%;
    margin: 5%;
    vertical-align: middle;
}

.itemPOR .carousel-caption {
    left: 50%;
    color: #424E54;
    text-align: left;
}

.itemPOR .download-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 500;
}

.downloadPOR {
    background-color: transparent;
    border-color: transparent;
}

.downloadPOR:hover {
    border-color: transparent;
    background-color: white;
}

.colorPOR1 {
    color: #F1A445;
}

.colorPOR2 {
    color: #55B7C1;
}

.colorPOR3 {
    color: #AB60A1;
}

.carouselPOR {
    background-color: #EFF0EE;
    border-radius: 15px;
}

/* reverse carousel class */
.carousel-reverse .carousel-item-next.carousel-item-left,
.carousel-reverse .carousel-item-prev.carousel-item-right {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.carousel-reverse .carousel-item-next,
.carousel-reverse .active.carousel-item-right {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.carousel-reverse .carousel-item-prev,
.carousel-reverse .active.carousel-item-left {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.indicatorsPOR {
    margin-bottom: 15px;
}

.captionPOR {
    position: absolute;
    top: 3%;
    right: 5%;
}

.captionPOR ul li {
    font-weight: bold;
}

.bottom-right-paragraph {
    position: absolute;
    bottom: 0;
    right: 20px;
    margin: 10px;
    color: black;
    text-align: right;
}

.container-publication {
    display: flex;
    flex-direction: row;
    /* border: red dashed 1px; */
    width: 100%;
    transition: 1s;
}


.carousel-datepage {
    margin-bottom: 0;
    font-weight: 300;
}

.banner-container:not(.banner-coaching) {
    width: 160px;
    height: 200px;
}

.banner-horizontal:not(.banner-coaching) {
    width: 100%;
    height: 100%;
}

.btn-consult {
    border-radius: 18.67px;
}

.btnShowMore {
    position: absolute;
    right: 0;
    margin: 20px;
    background-color: transparent;
    color: #424E54;
    border-color: #424E54;
}

@media only screen and (max-width: 769px) {
    section.section-quiz {
        background-image: url(/imgs/tpl/v2/fondQuizzMobile.jpg);
    }

    section.section-testimonial {
        background-image: url(/imgs/tpl/v2/fondAvisMobile.jpg );
    }

    .container-publication {
        flex-direction: column;
    }

    .banner-container {
        width: 100%;
        min-height: 160px;
    }

    .col-container-publications {
        flex: initial !important;
    }

    .itemPOR {
        height: auto;
    }

    .itemPOR img {
        max-width: 60%;
        margin: 5%;
        margin-left: 13%;
        vertical-align: middle;
    }

    .itemPOR .carousel-caption {
        left: 50%;
        color: #424E54;
        text-align: left;
    }

    .captionPOR {
        position: static;
        margin: 5%;
    }

    .bottom-right-paragraph {
        position: static;
    }

    .btnShowMore {
        position: static;
        display: block;
        margin: 20px auto;
        width: 100%;
    }

    .modal .bgLogoModal {
        display: none;
    }

    .banner-coaching h6 {
        font-size: 1.3rem;
        text-align:justify !important;
        hyphens: none;
    }
}

/* bootstrap breakpoint */
@media only screen and (max-width: 991px) {
    .modal .bgLogoModal {
        display: none;
    }
}

a.news-container:hover,
.news-container a:hover {
    text-decoration: none;
    color: var(--main-color);
}

a.news-container:hover h3,
.news-container a:hover h6 {
    color: var(--accent-color);
}