/* @font-face {
    font-family: Athelas;
    src: url("../../fonts/Athelas-Regular.ttf") format("truetype");
} */

main h1 {
    font-family: Athelas;
    color: #242424;
    font-size: 36px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    margin-top: 2rem;
}

main h1 span {
    font-family: Athelas;
    color: #cc393e;
    font-size: 36px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
}

main h2 {
    font-family: Times;
    color: #cc393e;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

main h3 {
    font-family: Athelas;
    color: #242424;
    font-size: 24px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    margin-left: 0rem;
    margin-right: 0rem;
}

section.form {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 45px;
}

p {
    font-family: Roboto;
    font-style: normal;
    color: #232223;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    margin-left: 15rem;
    margin-right: 15rem;
    margin-top: 2rem;
}

p span {
    font-family: Roboto;
    color: #cc393e;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    line-height: 18px;
    text-align: center;
}

.big-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}


/************ Bouton recherche avancée ************/

#open_dialog{
    background-color: transparent;
    justify-content: flex-start;
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 1rem;
}
#open_dialog svg {
    transform: translateY(.66rem);
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
}

#button_box{
    justify-content: flex-start;
    margin-bottom: 1rem;
    padding: 0 1.7rem;
}

.buttons_criteres_tri {
    background-color: #cc393e;
    margin: 0.2rem;
    font-weight: normal;
    border-radius: 0.2rem;
    position: relative;
    font-size: 0.8rem;
    padding: 0.5rem;
}

span.fas.fa-map-marker-alt,
span.fas.fa-briefcase,
span.fas.fa-clock{
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

button.reset_tableau_cvs:hover,
button.reset_tableau_cvs:focus,
button.reset_tableau_cvs {
    background-color: transparent;
    color: #cc393e;
    font-weight: normal;
    border:transparent;
}

button.buttons_criteres_tri.partage_url_selection{
    right: 2rem;
    position: absolute;
}

#dialog-title:focus{
    outline: 1px dashed black ;
}

/************ carrousel ************/

.cv-list {
    font-family: Roboto;
}
.cv-list .swiper-button-prev-unique,
.cv-list .swiper-button-next-unique {
    margin-top: 0;
    width: 16px;
    height: auto;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.cv-list .swiper-button-prev-unique:focus,
.cv-list .swiper-button-next-unique:focus {
    outline: 5px auto -webkit-focus-ring-color;
}
.cv-list .swiper-button-prev-unique {
    background-size: 1.5rem;
    background-image: url("../img/Chevron_gauche.png");
}
.cv-list .swiper-button-next-unique {
    background-size: 1.5rem;
    background-image: url("../img/Chevron_droite.png");
}

.cv-list .cv-wrapper {
    list-style: none;
}
.cv-list .cv-wrapper li {
    background: #ffffff;
    text-align: center;
}

.cv-list .cv-wrapper li .card-container {
    margin: 10px;
}

.cv-list .cv-wrapper li .card-container .card {
    border: 1px solid #d9d9d9;
    border-radius: 0;
    padding: 30px 10px;
    transition: 0.15s;
}
.cv-list .cv-wrapper li .card-container .card:hover {
    background: #D1555A;
    background-image: url(../img/photoOrdiRouge.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-color: #D1555A;
    color: #fff;
    box-shadow: 0px 0 10px 0 grey;
}

.cv-list .cv-wrapper li .card-container .card:focus {
    outline: 5px auto -webkit-focus-ring-color;
}

.cv-list .cv-wrapper li .card-container .card p.card-name {
    font-family: 'Roboto-medium', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 30px;
    color: #cc393e;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.cv-list .cv-wrapper li .card-container .card:hover p.card-name {
    color: #ffffff;
}

.cv-list .cv-wrapper li .card-container .card img {
    width: 60%;
    object-fit: cover;
    border-radius: 50%;
}

.cv-list .cv-wrapper li .card-container .card .skill-block {
    font-style: italic;
    height: 6rem;
    overflow: hidden;
}

.cv-list .cv-wrapper li .card-container .card a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #cc393e;
    margin-top: 1rem;
    margin: auto;
    padding: 0.5rem 1.25rem;
}
.cv-list .cv-wrapper li .card-container .card a {
    border-color: #ffff;
}
.cv-list .cv-wrapper li .card-container .card a:focus {
    outline: 5px auto -webkit-focus-ring-color;
}

.cv-list .swiper-pagination {
    position: relative;
    margin: 0 auto;
}

.cv-list .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c5c5c5;
    opacity: 1;
    cursor: pointer;
    display: inline-block;
    margin: 0 4px;
}
.cv-list .swiper-pagination-bullet:focus {
    outline: 5px auto -webkit-focus-ring-color;
}
.cv-list .swiper-pagination-bullet-active {
    background: #D1555A;
}

.cv-list #err {
    width: 50%;
    margin: 0 auto;
}
.cv-list #err:focus {
    outline: 5px auto -webkit-focus-ring-color;
}

#controls {
    display: inline-block;
    margin-left: 50%;
    transform: translate(-50%);
}

#controls .dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgb(202, 202, 202);
    cursor: pointer;
    display: inline-block;
    margin: 0 0.2rem;
    transition: 0.2s;
}

#controls .dot.active {
    background: #cc393e;
}

.contact {
    overflow: auto;
    text-align: center;
    background-image: url("../img/backgroundcontact.png");
    background-size: cover;
    background: opacity(100%);
    background-color: rgba(189, 89, 92, 0.8);
    width: 100%;
    height: 12rem;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1rem;
    margin-top: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact h2{
    font-family: Roboto;
    color: #ffffff;
    /* font-size: 24px; */
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    /* margin-top: 2rem; */
    margin: 0;
    text-transform: none;
}

.contact a {
    font-family: Roboto;
    display: inline-flex;
    color: #bd595d;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #ffffff;
    margin-top: 1.5rem;
    padding: 0.5rem 1.25rem;
}
.contact a:hover {
    text-decoration: none;
    background-color: #cc393e;
    color: white;
}
.contact a:focus {
    outline: 5px auto -webkit-focus-ring-color;
}

/************ boite de dialogue **********/

#dialog .c-dialog__box {
    position: relative;
    padding: 0;
    font-family: Roboto;
    color: #242424;
}

.closeButtonContainer {
    width: 2rem;
    height: 2rem;
    background: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    right: -1rem;
    top: -1rem;
    font-size: 10px;
}

#close_dialog {
    padding: 0;
    background-color: transparent;
}

.c-dialog__box fieldset {
    border: none;
    padding: 0;
}

.c-dialog__box legend {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    margin-top: 1.5rem;
}

.c-dialog__box label,
.c-dialog__box select {
    font-size: 0.95rem;
}

.c-dialog__box label {
    font-weight: 400;
    margin-right: 1rem;
    color: inherit;
}

.c-dialog__box label:last-of-type {
    margin-right: 0;
}
.c-dialog__box fieldset {
    margin-bottom: 0;
    margin-top: 1rem;
}
.c-dialog__box fieldset:last-of-type {
    padding-bottom: 0;
}

.c-dialog__box select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dfdfdf;
    background-color: #fff;
}

.c-dialog__box h1 {
    font-family: Roboto;
    color: #242424;
    font-weight: 600;
    letter-spacing: 0.6px;
    font-size: 1.5rem;
    margin: 0;
}

.c-dialog__box button {
    font-family: Roboto;
}

.c-dialog__box #skills_box,
.c-dialog__box #experience_box,
.c-dialog__box #disponibilite_box {
    border-bottom: 1px solid#dfdfdf;
}

.c-dialog__box .part1,
.c-dialog__box #reset_box {
    padding: 2rem;
}

.c-dialog__box #reset_box {
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.c-dialog__box #sort_tableau_cvs {
    border-radius: 10rem;
    background: #cc393e;
}

.c-dialog__box .reset_tableau_cvs {
    background: none;
    color: #3d3d3d;

}

/* custom checkboxes */
#dialog label {
    position: relative;
    cursor: pointer;
    padding-left: 25px;
}
#dialog select:focus{
    outline: thin dotted;
}
#dialog input[type="checkbox"],
#dialog input[type="radio"],
#dialog label .checkmark,
#dialog label .radiomark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
}
#dialog input[type="checkbox"],
#dialog input[type="radio"] {
    opacity: 1;
    cursor: pointer;
}
#dialog label .checkmark {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 3px;
}
#dialog label .radiomark {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 50%;
}
#dialog label:hover input ~ .checkmark,
#dialog label:hover input ~ .radiomark {
    background-color: #eee;
}
#dialog label input:checked ~ .checkmark,
#dialog label input:checked ~ .radiomark {
    background-color: #cc393e;
    border-color: #cc393e;
}
#dialog label .checkmark:after,
#dialog label .radiomark:after {
    content: "";
    position: absolute;
    display: none;
}
#dialog label input:checked ~ .checkmark:after,
#dialog label input:checked ~ .radiomark:after {
    display: block;
}
#dialog label .checkmark:after {
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
#dialog label .radiomark:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
#region_box {
    position: relative;
    padding-left: 20px;
}
#region_box .checkmark {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    height: 3em;
    width: 20px;
}
#region_box .checkmark:after {
    position: absolute;
    display: block;
    content: "";
    left: 6px;
    top: 1rem;
    width: 6px;
    height: 10px;
    border: solid #cc393e;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


@media (max-width:768px) {
    #open_dialog{
        padding: 0;
    }
    #button_box {
        padding: 0rem 0.8rem;
    }
}

:root {
    --padding : 2rem;
}

.carousel {
    width: 100%
}

.carousel .carousel-inner{
    overflow: hidden;
    width: calc(100% - calc(calc(100% / 3) - calc(2 / 3) * var(--padding)));
    margin-left: calc(calc(calc(100% / 3) - calc(2 / 3) * var(--padding)) / 2);
}


.carousel .liste-carousel .liste-item-carousel {
    list-style: none;
    width: calc(calc(100% / 3) - calc(2 / 3) * var(--padding));;
    min-width: calc(calc(100% / 3) - calc(2 / 3) * var(--padding));
    box-sizing: border-box;
}

.carousel.js_carousel_loaded .next, .carousel.js_carousel_loaded .previous {
    padding: 0.5rem 1rem;
    position: absolute;
    top: calc(50% - 1rem);
    z-index: 20;
}

.carousel.js_carousel_loaded .next {
    right: calc(calc(calc(100% / 3) - calc(2 / 3) * var(--padding)) / 4);
}

.carousel.js_carousel_loaded .previous {
    left: calc(calc(calc(100% / 3) - calc(2 / 3) * var(--padding)) / 4); 
}


@media (max-width: 768px) {
    .course-suggestions {
        padding: 0;
    }

    .carousel .carousel-inner{
        width: calc(100% - calc(calc(100% / 3) - 0.5 * var(--padding)));
        margin-left: calc(calc(calc(100% / 3) - 0.5 * var(--padding)) / 2);
    }
    
    
    .carousel .liste-carousel .liste-item-carousel {
        list-style: none;
        width: calc(calc(100% / 2) - 0.5 * var(--padding));;
        min-width: calc(calc(100% / 2) - 0.5 * var(--padding));
        box-sizing: border-box;
    }

    .carousel.js_carousel_loaded .next, .carousel.js_carousel_loaded .previous {
        padding: 0.5rem 1rem;
        position: absolute;
        top: calc(50% - 1rem);
    }
    
    .carousel.js_carousel_loaded .next {
        right: calc(calc(calc(100% / 3) - 0.5 * var(--padding)) / 4);
    }
    
    .carousel.js_carousel_loaded .previous {
        left: calc(calc(calc(100% / 3) - 0.5 * var(--padding)) / 4);
    }
}

@media (max-width: 576px) {
    
    .carousel .carousel-inner{
        width: calc(100% - calc(calc(100% / 3) - 0.5 * var(--padding)));
        margin-left: calc(calc(calc(100% / 3) - 0.5 * var(--padding)) / 2);
    }
    
    
    .carousel .liste-carousel .liste-item-carousel {
        list-style: none;
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
    }

    .carousel.js_carousel_loaded .next {
        right: 0;
    }
    
    .carousel.js_carousel_loaded .previous {
        left: 0;
    }

}

.carousel .liste-carousel {
    display: flex;
    gap: var(--padding);
    padding: var(--padding) 0;
    justify-content: space-between;
    flex-wrap: wrap;
    /*flex-wrap: nowrap;*/
    transition: 0.3s;
}

.carousel.js_carousel_loaded .liste-carousel {
    flex-wrap: nowrap;
}


.liste-item-carousel .card {
    font-size: 0.9rem;
    border: 1px solid #e7e7e7;
    margin: auto;
    height: 100%;
}

.liste-item-carousel .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.liste-item-carousel .card-text {
    margin-bottom: 1.3rem;
    min-height: 6rem;
    /* line-height: 1.3rem; */
    line-height: 1.2rem;
    font-size: 0.95rem;
    color: #929292;
}

.liste-item-carousel .card-text a {
    position: absolute;
    bottom: 1rem;
    text-transform: uppercase;
}