@charset "UTF-8";

:root {
	
	/* distributor color */
	--distributor-box-label-color: var(--gray-dark);
	--distributor-box-name-color: var(--blue-medium);
	--distributor-box-name-chosen-color: var(--orange-light);
	
	/* categories color */	
	--category-title-color: var(--blue-medium);
	--category-box-title-color: var(--blue-dark2);
	--category-opt-color: var(--black);
	
	/* categories background */
	--categories-bg: var(--blue-gray-light);
	--all-categories-container-bg: var(--transparent);
	--category-box-bg : var(--white);
	--category-images-bg : var(--transparent);
	--category-box-separator-bg: var(--orange-base);
	--category-opt-hover-bg: var(--blue-washed);
	--category-cover-link: rgba(155, 185, 192, 0.12);
	
	/* categories border-color  */
	--categories-select-border-color: var(--gray-dark);
	
	/* categories select menu  */
	--cat-name-bg-active: var(--blue-washed);
	--cat-name-border-color-active: var(--blue-gray-light);
	--cat-name-border-color: var(--transparent);
	
	/* delivery */
	--delivery-title-color: var(--blue-dark2);
	--delivery-title-orange-color: var(--orange-base);
	--delivery-info-link-color: var(--blue-medium);
	--delivery-distributor-cards-logo-bg: var(--white);
	--delivery-distributor-cards-logo-img-bg: var(--white);
	--delivery-distributor-cards-coming-soon-bg: var(--blue-washed-light);
	--delivery-distributor-cards-coming-soon-color: var(--white);
	--delivery-distributor-cards-title-color: var(--blue-dark2);
	--delivery-distributor-cards-border-color: var(--gray-medium);
	--delivery-distributor-choice-link-color: var(--white);
	--delivery-distributor-choice-link-bg : var(--blue-washed);
	--delivery-dist-search-color: var(--blue-dark2);
	--delivery-dist-search-bg-smallscreen: var(--orange-base);
	
	/* search catalog */
	--search-our-catalog-bg: var(--blue-washed);
	--search-our-catalog-color: var(--blue-dark2);
	--magnifying-glass-bg: var(--transparent);
	--arrow-right-bg: var(--transparent);
	
	/* images url */
	--distributor-box-down-arrow: url('../img/deploy-arrow-blue-medium.svg');
	--all-categories-link-right-arrow: url('../img/arrow-blue-medium.svg'); /* todo its blue dark */
	--delivery-picto-camion: url('../img/picto-camion.svg');
	--delivery-dist-search-right-arrow: url('../img/arrow-blue-dark.svg');
	--search-our-catalog-bg-img: url('../img/home-search-bg.jpg');
	--search-our-catalog-magnifying-glass-transparent-white: url('../img/magnifying-glass-transparent-white.svg');
	--search-our-catalog-right-arrow: url('../img/arrow-right-transparent-white.svg');
}

/*-----------------------------------------
|              CONTENT-TOPPER              |
 -----------------------------------------*/

main .content-topper {
	flex-flow: column nowrap;
	min-height: 300px;
	height: auto;
 	padding: .5em;
	padding-top: 3em;
}

/* -- Distributor choice -- */

#distributor-box {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: .5em;
	text-align: center;
	background: var(--content-topper-overlay-color);
	color: var(--distributor-box-name-color);
	text-shadow: none;
}

#distributor-box .label {
	text-transform: uppercase;
	color: var(--distributor-box-label-color);
	font-weight: bold;
	font-weight: 700;
}

#distributor-box .distributor-name {
	text-transform: uppercase;
	font-weight: bold;
	font-weight: 800;
	padding-right: 1.5em;
	background: var(--distributor-box-down-arrow)  no-repeat center right;
	background-size: 1em;
}

#distributor-box a {
	text-decoration: none;
	color: inherit;
}

#distributor-box a:hover {
	text-decoration: underline;
	filter: brightness(140%);
}

/* -- Big titles -- */

main .content-topper h1,
main .content-topper h2 {
	padding: 0;
}

main .content-topper h1 {
	font-size: 52px;
	margin-top: .5em;
}

main .content-topper h2 {
	font-size: 32px;
	max-width: 25em;
	margin: 1em auto;
}

main .content-topper #howto-link {
	position: absolute;
	bottom: 1em;
	right: 1em;
	color: var(--white);
	font-size: 18px;
	text-decoration: none;
}

main .content-topper #howto-link:focus,
main .content-topper #howto-link:hover {
	text-decoration: underline;
}

.content-topper .icon.info {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-bottom: -.2em;
    margin-right: .2em;
	background-image: url('../img/icon-i-plain.svg');
}

.content-topper #topper-message {
	margin-bottom: 4em;
}

/*-----------------------------------------
|              CATEGORIES BOX               |
 -----------------------------------------*/
 
main .categories {
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;
	
	width:100%;
	min-height: 350px;
	padding-top: 1.5em;
	
	background-color: var(--categories-bg);
}

.our-catalogue-container {
	display: none;
	flex-flow: column nowrap;
	justify-content: space-between;
	align-items: center;
	
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 1em;
	padding: 0 .5em;
}

.our-catalogue-container h2#our-catalogue {
	width: 100%;
	text-transform: uppercase;
	text-align: center;
	font-size: 28px;
	font-weight: bold;
	font-weight: 800;
	color: var(--category-title-color);
}

.our-catalogue-container #categories-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.our-catalogue-container #categories-select {
	width: 80%;
	padding: .5em 1em;
	border: 1px solid var(--categories-select-border-color);
	border-radius: .7em;
	font-family: 'Open Sans', Sans-Serif, sansserif, sans;
	font-size: 16px;
	font-weight: bold;
	font-weight: 800;
	outline: none;
}

.our-catalogue-container .category-opt {
	color: var(--category-opt-color);
}

.our-catalogue-container .category-opt:hover {
	background-color: var(--category-opt-hover-bg);
}

.categories .all-categories-link {
	color: var(--white);
	background-color: var(--blue-gray-medium);
	text-decoration: none;
	font-size: 24px;
	text-transform: none;
	font-weight: normal;
}

.categories .all-categories-link .search {
	background-image: url('../img/icon-search.svg');
}

.all-categories-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background-color: var(--all-categories-container-bg);
	margin-top: 1em;
	padding-bottom: 1em;
}

.category-box {
	display: flex;
	flex-shrink: 1;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;
	
	width: 350px;
	height: 250px;
	padding: .5em;
	margin: 0 .5em;
	
	background-color: var(--category-box-bg);
	box-sizing: border-box;
	position: relative;
}

.category-box h3 {
	text-align: center;
	color: var(--category-box-title-color);
	font-size: 20px;
	font-weight: bold;
	font-weight: 800;
	margin-bottom: 10px;
}

.category-box .separator {
	width: 80%;
	height: 6px;
	background-color: var(--category-box-separator-bg);
	margin-bottom: 15px;
}

.category-box .category-image {
	width: 100%;
	height: 65%;
	background-color: var(--category-images-bg);
	
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
}

.category-box .cat-box-link {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--transparent);
	color: var(--transparent);
	box-sizing: content-box;
}

.category-box .cat-box-link:hover {
	background-color: var(--category-cover-link);
}

/*-----------------------------------------
|          SELECT MENU CATEGORIES          |
 -----------------------------------------*/

/* select menu with CSS avatar icons */

main #categories-select-button {
	width: 75%;
	padding: .5em 1em;
	border: 1px solid var(--categories-select-border-color);
	border-radius: .7em;
	font-family: 'Open Sans', Sans-Serif, sansserif, sans;
	font-size: 16px;
	font-weight: bold;
	font-weight: 800;
	outline: none;
	box-sizing: border-box;
}

.home ul#categories-select-menu {
	max-height: 90vh;
	box-sizing: border-box;
	padding: .5em .2em;
	border-radius: .7em;
	font-family: 'Open Sans', Sans-Serif, sansserif, sans;
	font-size: 14px;
	overflow-y: scroll; 
}

.home ul#categories-select-menu li:first-child {
	display: none;
}

.home #categories-select-menu > li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 60px;
	box-sizing: border-box;
}

.home #categories-select-menu > li > div {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: .2em .4em;
	padding-left: 25%;
	box-sizing: border-box;
}

.home #categories-select-menu > li > div > .cat-name {
	width: 100%;
    height: 100%;
    padding-left: .5em;
    line-height: 4em;
    white-space: nowrap;
}

.home #categories-select-menu > li > div > span {
	width: 20%;
	height: 100%;
	box-sizing: border-box;
}

.home .ui-selectmenu-menu.ui-front {
	z-index: 1;
}

.ui-icon.category-item {
    background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

.ui-menu .ui-state-active {
	margin: 0;
}

.ui-widget-content .ui-state,
.ui-widget-content .ui-state-active {
	border: none;
	background: white;
}

.ui-state-active .cat-name,
.ui-widget-content .ui-state-active .cat-name{
	border: none;
	background: var(--cat-name-bg-active);
	font-weight: normal;
	color: #fff;
}

/*-----------------------------------------
|               DIST-DELIVERY              |
 -----------------------------------------*/

.dist-delivery {
	box-sizing: border-box;
	padding: 2em .5em;
	text-align: center;
}

.dist-delivery .question-card {
	margin: 0 auto;	
}

.dist-delivery .delivery-infos-container {
	text-align: center;
	max-width: 1200px;
	margin: auto;
}

.delivery-title-container .picto-camion {
	width: 260px;
	min-width: 240px;
	height: 160px;
	flex-grow: 1;
	
	background-image: var(--delivery-picto-camion);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	
	box-sizing: border-box;
}

.delivery-infos-container h2 {
	text-transform: uppercase;
	font-size: 48px;
	font-family: 'Open Sans', Sans-Serif, sansserif, sans;
	font-weight: bold;
	font-weight: 800;
	color: var(--delivery-title-color);
	width: 100%;
	box-sizing: border-box;
}

.delivery-infos-container h2 em {
	color: var(--delivery-title-orange-color);
}

.dist-delivery .delivery-infos {
	font-size: 24px;
	font-weight: bold;
	color: var(--delivery-title-color);
	margin-bottom: 1em;
}

/* .dist-delivery .delivery-infos h3 { */
/* 	color: var(--delivery-distributor-cards-title-color); */
/* 	margin-bottom: .5em; */
/* } */

.dist-delivery .delivery-infos p {
	margin: 0;
}

.dist-delivery .delivery-infos a {
	color: var(--blue-medium);
}

.dist-delivery .delivery-infos a:hover,
.dist-delivery .delivery-infos a:focus {
	color: var(--blue-base);
}

/* .dist-delivery .delivery-infos #clic-here { */
/* 	text-decoration: none; */
/* 	color: var(--delivery-info-link-color); */
/* 	font-weight: bold; */
/* 	font-weight: 800; */
/* } */

.dist-delivery .delivery-infos #clic-here:hover {
	text-decoration: underline;
	filter: brightness(65%);
}


.dist-delivery #distributors-cards-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-start;
    
    text-align: left;
    
    width: 100%;
}

.dist-delivery .distributor-card {
    box-sizing: border-box;
    padding: 1em 1.5em;
    min-width: 320px;
    max-width: 420px;
    width: 25%;
    height: 460px; 
	
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: stretch;
	position: relative;
}

.dist-delivery .distributor-card::after {
	position: absolute;
	top: 2.5%;
	bottom: 2.5%;
	right: -2px;
	width: 4px;
	background-color: var(--delivery-distributor-cards-border-color);
	border-radius: 5px;
	content: "";
}

.dist-delivery #distributors-cards-container .distributor-card:last-child::after {
	display: none;
}

.distributor-card .dist-logo {
	width: 100%;
	height: 160px;
	
	padding: .2em;
	display: flex;
	justify-content: center;
	align-items: center;
	
	background-color: var(--delivery-distributor-cards-logo-bg);

	border-radius: 5px;
	box-sizing: border-box;
}

.distributor-card .dist-logo .logo-img {
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
} 

.distributor-card #coming-soon {
	width: 100%;
	text-align: center;
	margin: .5em auto 0 auto;
	padding: .2em .5em;
	background-color: var(--delivery-distributor-cards-coming-soon-bg);
	color: var(--delivery-distributor-cards-coming-soon-color);
	box-sizing: border-box;
}

.distributor-card .button.standout-button {
	padding: .2em .5em;
	text-transform: none;
	font-family: inherit;
}

.distributor-card .dist-info {
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: stretch;
	
	flex-grow: 2;
}

.distributor-card .dist-repairer {
	background-color: var(--orange-base);
	color: white;
	font-style: italic;
	align-self: flex-end;
	border-radius: 5px;
	
	margin: 10px 0;
	padding: 5px 25px;
	
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.distributor-card .repair-icon {
	display: inline-block;
	width: 30px;
	height: 30px;
	background-image: url('../img/icon-repair.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.distributor-card .dist-street {
	margin: 0;	
}

.distributor-card .dist-city {
	margin: 0;
	margin-bottom: .5em;
}

.distributor-card .dist-phone {
	display: inline-block;
	margin: 0;
}

.distributor-card .dist-link {
	display: block;
	margin: 1em 0 .5em 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.distributor-card .distributor-choice {
	width: 100%;
	text-align: center;
	color: var(--delivery-distributor-choice-link-color);
	text-decoration: none;
	padding: .2em .5em;
	box-sizing: border-box;
}

.dist-delivery .dist-title {
	font-size: 2.5em;
	font-weight: bold;
	color: var(--blue-dark2);
}

.dist-delivery .distributor-links {
	display: flex;
	gap: 1rem 3rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 1em;
}
	
.dist-delivery .dist-search {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: .5em;
	
	color: var(--white);
	text-decoration: none;
	font-size: 20px;
	font-weight: bold;
	
	background-color: var(--blue-gray-light);
	border-radius: 5px;
	padding: 5px 25px;
}

.dist-delivery .dist-search::after {
	content: '';
	display: inline-block;
	--size: .8em;
	width: var(--size);
	height: var(--size);
	transform: translateY(.05em);
	background: url('../img/arrow-white.svg') no-repeat center;
	background-size: contain;
}

.dist-delivery .dist-search:hover {
	filter: brightness(120%);
}


/*-----------------------------------------
|            SEARCH-OUR-CATALOG            |
 -----------------------------------------*/

main .search-our-catalog {
	display: flex;
	justify-content: center;
	align-items: center;
	
	width: 100%;
	height: 400px;
	
	background: var(--search-our-catalog-bg);
	background-image: var(--search-our-catalog-bg-img);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	
	box-sizing: border-box;
}

.search-our-catalog #magnifying-glass {
	width: 128px;
	height: 128px;
	margin-left: .5em;
	
	background: var(--magnifying-glass-bg);
	background-image: var(--search-our-catalog-magnifying-glass-transparent-white);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

.search-our-catalog #catalog-link {
	min-width: 40%;
	max-width: 60%;
	white-space: pre-wrap;
	font-size: 48px;
	font-family: 'Open Sans', Sans-Serif, sansserif, sans;
	font-weight: bold;
	font-weight: 800;
	text-align: left;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--search-our-catalog-color);
	margin: 1em 1.5em;
}

.search-our-catalog #catalog-link:hover {
	text-decoration: underline;
	filter: brightness(140%);
}

.search-our-catalog #catalog-link > span {
	display: block;
	width: 100%;
	white-space: nowrap;
}

.search-our-catalog .search-arrow {
	width: 80px;
    height: 100px;
	margin-right: .5em;    

	background: var(--arrow-right-bg);
	background-image: var(--search-our-catalog-right-arrow);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

/*-----------------------------------------
|                  VIDEO                   |
 -----------------------------------------*/

.video-zone {
	display: flex;
	justify-content: center;
	align-items: center;

	width: 100%;
	padding: 1rem 0;

	background: var(--blue-gray-medium);
}

.gallery-video {
	max-width: min(90%, 1024px);
	max-height: min(80vh, 576px);
}


/*-----------------------------------------
|              MEDIA QUERIES               |
 -----------------------------------------*/
@media only screen and (max-device-width: 1250px), screen and (max-width: 1250px) {
	.all-categories-container > *:nth-child(4) {
		display: none;
	}

}
 
@media only screen and (max-device-width: 1024px), screen and (max-width: 1024px) {
	
	.search-our-catalog #catalog-link {
		font-size: 42px;
	}
	
	#distributors-cards-container > *:nth-child(3) {
		display: none;
	}
	
	.dist-delivery .distributor-card::after {
		display: none;
	}
	
	.dist-delivery .distributor-card:first-child::after {
		display: inline;
	}
}

@media only screen and (max-device-width: 960px), screen and (max-width: 960px) {
	.dist-delivery .delivery-title-container {
		flex-flow: column nowrap;
		justify-content: center;
		align-items: center;
	}
	
	.delivery-title-container .picto-camion {
		margin-right: 10%;
	}
	
	.delivery-title-container h1#delivery-title {
		margin: .3em 0;
		padding: 0 1em;
		text-align: center;
    	font-size: 36px;
	}
}

@media only screen and (max-device-width: 930px), screen and (max-width: 930px) {
	.category-box {
		height: 225px;
	}

	.category-box h3 {
		height: 60px;
	}

	.category-box .category-image {
		height: 50%;
		background-position: center bottom 25%;
	}
}

@media only screen and (max-device-width: 860px), screen and (max-width: 860px) {

	.search-our-catalog #catalog-link {
		font-size: 34px;
	}
	
	.dist-delivery #distributors-cards-container {
	    flex-flow: column nowrap;
	    justify-content: center;
	    align-items: center;
	}
	
	.dist-delivery .distributor-card::after {
		display: none;
	}
	.dist-delivery .distributor-card:first-child::after {
	    display: block;
	    top: auto;
	    left: 2.5%;
	    right: 2.5%;
	    bottom: -2px;
	    width: auto;
	    height: 4px;
	    position: absolute;
	}

	.dist-delivery .distributor-card .dist-street,
	.dist-delivery .distributor-card .distributor-choice,
	.dist-delivery .distributor-card #coming-soon {
		display: none;
	}
	
	.dist-delivery .distributor-card {
	    width: 80%;
	    min-width: 275px;
	    height: auto;
	    align-items: center;
	    text-align: center;
	    padding: .2em;
	    margin: .2em 0;
	}
	.dist-delivery .distributor-card .dist-name {
		align-self: stretch;
		font-size: 22px;
		margin: .5em 0 .2em 0;
	}
	.dist-delivery .distributor-card .dist-city {
		margin-bottom: 0;
	}
}

@media only screen and (max-device-width: 768px), screen and (max-width: 768px) {
	
	main .search-our-catalog {
		height: 300px;
		padding-top: 1em;
		background-position: left 25% center;
		flex-flow: column nowrap;
	}
	
	.search-our-catalog #catalog-link {
		max-width: 100%;
	}
	
	.search-our-catalog #catalog-link > span {
		text-align: center;
	}
	
	.search-our-catalog .search-arrow {
		display: none;
	}
	
}

@media only screen and (max-device-width: 650px), screen and (max-width: 650px) {
	.our-catalogue-container {
		display: flex;
	}
	.all-categories-container {
		display: none;
	}
	main .categories {
		min-height: 0;
		padding-top: .5em;
		padding-bottom: .5em;
	}
	
	.search-our-catalog #catalog-link {
		font-size: 28px;
	}
}

@media only screen and (max-device-width: 520px), screen and (max-width: 520px) {
	main .content-topper h1 {
		font-size: 32px;
	}

	main .content-topper h2 {
		font-size: 24px;
	}
	
	.search-our-catalog #catalog-link {
		font-size: 24px;
	}
	
	.delivery-infos-container h1 {
		font-size: 32px;
	}
	
	.dist-delivery .delivery-infos {
		font-size: 18px;	
	}
}

@media only screen and (max-device-width: 460px), screen and (max-width: 460px) {
	.search-our-catalog #catalog-link {
		font-size: 20px;
	}
	
	.delivery-title-container .picto-camion {
		width: 100%;
		margin-right: 0;
	}
	
	.delivery-title-container h1#delivery-title {
	    padding: 0 .3em;
	}
}

@media only screen and (max-device-width: 320px), screen and (max-width: 320px) {
	.delivery-title-container h1#delivery-title {
	    padding: 0;
	}
	
	.search-our-catalog #catalog-link {
		font-size: 18px;
	}
}
