/* ==================================================
   VARIABLES GLOBALES
================================================== */
:root {
    /* Couleurs */
    --color-main: rgba(230, 21, 97, 1);
    --color-main-80pct: rgba(230, 21, 97, 0.8);
    --color-main-2: rgba(40, 131, 209, 1);
    --color-main-3: #ffe04b;
    --color-secondary: rgba(37, 135, 255, 1);
    --color-gris-clair: #f5f5f5;
    --color-vert: #39e70e;

    /* Widget */
    --cr-widget-gap: 20px;
    --cr-border-radius: 8px;
}

/* ==================================================
   BASE WRAPPER & ELEMENTS
================================================== */
.cr_widget_wrapper {
	position: relative;
	container-type: inline-size; /* indispensable pour container queries */
}

.cr_widget_elt {
	position: relative;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: var(--cr-border-radius);
    background: #fff;
}

/* ==================================================
   GRILLE - MASONRY
================================================== */
.cr_widget_wrapper.cr_widget_grille.cr_masonry {
    column-count: 3;
    column-gap: var(--cr-widget-gap);
}

.cr_widget_wrapper.cr_widget_grille.cr_masonry .cr_widget_elt {
    display: inline-block;
	width: 100%;
    margin-bottom: var(--cr-widget-gap);
}

/* ==================================================
   GRILLE - FLEX
================================================== */
.cr_widget_wrapper.cr_widget_grille.cr_flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cr-widget-gap);
}

.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_elt {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_company,
.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_content,
.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_contact {
    width: 100%;
}

.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_content {
    flex: 1 1 auto;
}

.cr_widget_wrapper.cr_widget_grille.cr_flex .cr_widget_contact {
    align-self: flex-start;
    margin-top: auto;
}

/* Container queries pour Flex */
@container (min-width: 600px) {
    .cr_widget_grille.cr_flex .cr_widget_elt{
        flex: 0 0 calc((100% - var(--cr-widget-gap)) / 2);
    }
}

@container (min-width: 900px) {
    .cr_widget_grille.cr_flex .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 2) / 3);
    }
}

@container (min-width: 1200px) {
    .cr_widget_grille.cr_flex .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 3) / 4);
    }
}

@container (min-width: 1500px) {
    .cr_widget_grille.cr_flex .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 4) / 5);
    }
}

@container (min-width: 1800px) {
    .cr_widget_grille.cr_flex .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 5) / 6);
    }
}

@container (min-width: 2100px) {
    .cr_widget_grille.cr_flex .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 6) / 7);
    }
}

/* ==================================================
   GRILLE - BLOCK
================================================== */
.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_elt {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_elt_left {
    display: flex;
    flex-direction: column;
    width: 50%;
    background-color: #f5f5f5;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_elt_right {
    width: 50%;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_company {
    width: 100%;
    background: none;
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_company .cr-dropdown-toggle {
    display: none;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_company .cr-dropdown-content {
    display: block;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_contact {
    width: 100%;
    background: none;
    border-top: 0;
    border-bottom-right-radius: 0;
    align-self: flex-start;
    margin-top: auto;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_contact_photo {
    width: auto;
}

.cr_widget_wrapper.cr_widget_grille.cr_block .cr_widget_contact_photo img {
    width: auto;
    height: 50px;
}

/* ==================================================
   CARROUSEL
================================================== */
.cr_widget_wrapper.cr_widget_carrousel {
    width: 100%;
}

.cr_widget_wrapper.cr_widget_carrousel.cr_carousel_arrows {
	padding: 0 50px;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_carousel_track_wrapper {
    width: calc(100% + 1px);
	overflow: hidden;
    container-type: inline-size;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_carousel_track {
    display: flex;
    gap: var(--cr-widget-gap);
    transition: transform 0.5s ease-in-out;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
	margin-bottom: var(--cr-widget-gap);
    flex: 0 0 100%;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_widget_contact {
    width: 100%;
	align-self: flex-start;
    margin-top: auto;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_widget_contact_photo {
    width: auto;
}

.cr_widget_wrapper.cr_widget_carrousel .cr_widget_contact_photo img {
    width: auto;
    height: 50px;
}

/* Container queries pour Carrousel */
@container (min-width: 600px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap)) / 2);
    }
}

@container (min-width: 900px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 2) / 3);
    }
}

@container (min-width: 1200px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 3) / 4);
    }
}

@container (min-width: 1500px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 4) / 5);
    }
}

@container (min-width: 1800px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 5) / 6);
    }
}

@container (min-width: 2100px) {
    .cr_widget_wrapper.cr_widget_carrousel .cr_widget_elt {
        flex: 0 0 calc((100% - var(--cr-widget-gap) * 6) / 7);
    }
}

/* ==================================================
   CARROUSEL - CONTROLS
================================================== */
.cr_carousel_prev,
.cr_carousel_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	width: 30px;
    height: 30px;
	text-align: center;
    background: var(--color-main);
    border: none;
    cursor: pointer;
	border-radius: 100%;
}
.cr_carousel_prev { left: 0; }
.cr_carousel_next { right: 0; }
.cr_carousel_prev.disabled, .cr_carousel_next.disabled { cursor: default; opacity: 0.5;}
.cr_carousel_prev i, .cr_carousel_next i { color: #fff;}

.cr_carousel_nav {
    text-align: center;
    margin-top: 10px;
}
.cr_carousel_nav button {
	display: inline-block;
    width: 12px;
    height: 12px;
	margin: 0 5px;
	padding: 0;
    border-radius: 100%;
    border: none;
    background: transparent;
	border: 1px solid var(--color-main);
    cursor: pointer;
}
.cr_carousel_nav button:hover,
.cr_carousel_nav button.active {
    background: var(--color-main);
}

/* ==================================================
   ÉLÉMENTS DU WIDGET
================================================== */
.cr_widget_badge {
	display: table;
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	padding: 40px 70px;
	background-color: var(--color-main);
	border-radius: 10px;
	overflow: hidden;
}
.cr_widget_badge > div:not(.cr_badge_bgrd) {
	position:relative;
	z-index: 1;
}
.cr_badge_bgrd {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
	height: 70%;
	aspect-ratio: 1/1;
	opacity: 0.15;
	background: url(https://clientsravis.fr/images/clientsRavis.fr-Picto-noir.svg) no-repeat center;
	background-size: contain;
	border-radius: 10px;
	animation: cr_bgrd_swing 20s ease-in-out infinite alternate;
}
@keyframes cr_bgrd_swing {
    0% {transform: rotate(0);}
    100% {transform: rotate(30deg);}
}
.cr_widget_badge * {
	box-sizing: border-box;
	color: #fff;
}
.cr_widget_badge h2 {
	display: flex;
    justify-content: flex-start;
    flex-direction: row;
	line-height: 1;
}
.cr_widget_badge h2 span {
	margin-right: 20px;
	font-size: 82px;
	font-weight: bold;
}
.cr_average_rating_wrapper p,
.cr_average_rating_wrapper span,
.cr_average_rating_wrapper i {
	line-height: 1 !important;
	vertical-align: top;
}
.cr_average_rating_wrapper p {
	margin: 30px 0;
}
.cr_average_rating_wrapper span {
	margin-right: 15px;
}
.cr_testimonies_badge_links p {
	margin-bottom: 20px;
}
.cr_testimonies_badge_links a {
	display: inline-block;
	margin-right: 10px;
	padding: 5px 10px;
	border: 1px solid #fff;
	border-radius: 5px;
}
.cr_testimonies_badge_links a.cr_all_testimonies {
	color: var(--color-main);
	background: #fff;
}
.cr_testimonies_badge_links a:hover {
	color: #fff;
	background: #000;
	border-color: #000;
}
.cr_testimonies_phrase_cr p.cr_picto::after {
	display: inline-block;
	transform: translate3D(5px, 4px, 0);
    content: "\A";
	height: 18px;
	width: 24px;
	background-image: url(https://clientsravis.fr/images/clientsRavis.fr-Picto-blanc.svg);
	background-size: contain;
	background-repeat: no-repeat;
}

/* ==================================================
   ÉLÉMENTS DU WIDGET
================================================== */
.cr_widget_wrapper p, 
.cr_widget_wrapper a { font-family: inherit; line-height: 150%; }
.cr_widget_company {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: var(--cr-border-radius);
    border-top-right-radius: var(--cr-border-radius);
}

.cr_widget_company_logo { width: 50%; margin-bottom: 0; }
.cr_widget_company_logo img { max-width: 100%; max-height: 40px; mix-blend-mode: multiply; }

.cr_widget_company_logo {
	width: 200px;
	height: 80px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.cr_widget_company_logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}


.cr_widget_company_info { margin-bottom: 0; }

.cr_widget_company_name,
.cr_widget_company_business_sectors,
.cr_widget_company_description { font-size: 16px; }

.cr_widget_company_name { font-weight: bold; }

.cr_widget_company_business_sectors span {
    display: inline-block;
	margin: 0 5px 5px 0;
	padding: 0 10px;
	font-size: 13px;
	color: #fff;
	background: #404040;
	border-radius: 50px;
}

.cr_widget_content { padding: 15px; }

.cr_widget_project { font-weight: bold; }
.cr_widget_testimony, .cr_widget_testimony p, .cr_widget_testimony span, .cr_widget_testimony a { font-size: 16px; }

.cr_widget_btn_see_textimony { margin-top: 30px; }
.cr_widget_btn_see_textimony a{ display: inline-block; padding: 3px 10px; font-size: 13px; color: var(--color-main); border: solid 1px var(--color-main); border-radius: 5px;}
.cr_widget_btn_see_textimony a:hover{ color: #fff; background: var(--color-main);}

.cr_widget_qualities span {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 0 10px;
    font-size: 13px;
    color: #fff;
    background: var(--color-main-2);
    border-radius: 50px;
}

.cr_widget_contact {
    display: flex;
    padding: 15px;
    padding-bottom: 30px;
    background: #f5f5f5;
    border-top: 1px solid #ccc;
    border-bottom-left-radius: var(--cr-border-radius);
    border-bottom-right-radius: var(--cr-border-radius);
}

.cr_widget_contact_photo { width: 25%; }
.cr_widget_contact_photo img { mix-blend-mode: multiply; }
.cr_widget_contact_info { width: 75%; padding-left: 10px; }
.cr_widget_contact_name { margin-bottom: 0; font-size: 14px; font-weight: bold; }
.cr_widget_contact_job_title { margin-bottom: 0; font-size: 14px; color: #909090; }
.cr_widget_contact_company { margin-bottom: 0; font-size: 14px; font-weight: bold; }

/* Bloc ClientsRavis */
.cr_widget_clientsravis{ position: absolute; right: 10px; bottom: 0; transform: translateY(50%); }
.cr_widget_clientsravis p{ margin-bottom: 0; padding: 0 10px; font-size: 12px; color: #909090; background: #fff; border-radius: 5px; border: 1px solid #ccc; }
.cr_widget_clientsravis a:hover{ color: #909090; }

/* ==================================================
   DROPDOWNS
================================================== */
.cr-dropdown { position: relative; margin: 0; }
.cr-dropdown p, .cr-dropdown a, .cr-dropdown button { font-family: inherit; }

.cr-dropdown-toggle {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    font-weight: normal;
    font-size: 15px;
    color: var(--color-main);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}

.cr-dropdown-toggle:hover { color: #000; }
.cr-dropdown-toggle::after { display: none !important; }

.cr-dropdown.open .cr-dropdown-toggle {
    color: var(--color-main);
}

.cr-dropdown-content {
    display: none;
    padding: 0;
    background: none;
    border-radius: 0 !important;
}

.fas.fa-star, .fa-star-half-alt, .far.fa-star {
    color: gold;
}