/**
 * Theme Name: WEB Stratégies
 * Author: WEB Stratégies
 * Description: Thème
 * Version: 1.15
 * Text Domain: ws 
 */

:root {
	--ws-floating-bar-height: 0px;
}

body {
	--siimply-primary-color: #012e40;
	--siimply-secondary-color: #0a242e;
	--siimply-text-color: #334c56;
	--siimply-accent-color: #00c599;
	--siimply-accent2-color: #009674;
}

/* ----- */

.elementor-location-floating_buttons {
	.e-con-boxed {
		max-width: 100% !important;
		padding: 0 !important;
	}

	& ~ header {
		.elementor-sticky:not(.elementor-sticky--active) {
			top: var(--ws-floating-bar-height, 0px) !important;

			@media (max-width: 763px) {
				margin-top: 0;
			}
		}
	}
}

/* ----- */

::selection {
	background: var(--siimply-accent-color);
	color: #fff;
}
::-moz-selection {
	background: var(--siimply-accent-color);
	color: #fff;
}

/* ----- */

.ws-content {
	padding-left: 20px;
	padding-right: 20px;
}

.elementor-element.e-con-boxed:not(:has(.ws-content)):not(.e-con-boxed .e-con-boxed),
.ws-content {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;

	@media (max-width: 1200px) {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ----- */

#tarifs {
	scroll-margin-top: 150px;

	@media (max-width: 767px) {
		scroll-margin-top: 60px;
	}
}

/* ----- */

body.siimply .siimply-typo-h1 {
	font-family: "Nordique";
	font-size: 72px;
	font-style: normal;
	font-weight: 700;
	line-height: 105%;

	@media (max-width: 768px) {
		font-size: 48px;
	}
}

body.siimply .siimply-typo-h2 {
	font-family: "Nordique";
	font-size: 48px;
	font-style: normal;
	font-weight: 700;
	line-height: 105%;

	@media (max-width: 768px) {
		font-size: 24px;
	}
}

body.siimply .siimply-typo-h3 {
	font-family: "Nordique";
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 120%;

	@media (max-width: 768px) {
		font-size: 16px;
	}
}

body.siimply .siimply-typo-tag {
	font-family: "Inter";
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 160%;
	text-transform: uppercase;
}

body.siimply .siimply-typo-text {
	font-family: "Inter";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 160%;

	@media (max-width: 768px) {
		font-size: 14px;
	}
}

body.siimply .siimply-typo-text-s {
	font-family: "Inter";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 160%;
}

/* ----- */

.siimply-button {
	border-radius: 100px;
	padding: 12px 16px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.25s ease-in-out;
	overflow: hidden;
	position: relative;

	span {
		font-family: "Inter";
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
		line-height: normal;
		position: relative;
		z-index: 10;
	}

	svg {
		width: 12px;
		position: relative;
		z-index: 10;
		path {
			transition: all 0.6s ease;
		}
	}

	&.siimply-button--classic {
		background: var(--siimply-accent-color);

		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(90deg, var(--siimply-accent-color) 20%, rgba(240, 249, 247, 0.3) 100%);
			transform: translateX(100%);
			transition: transform 0.6s ease;
			z-index: 5;
			pointer-events: none;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}

		&:hover::after {
			transform: translateX(0);
		}

		span {
			color: #fff;
		}
	}

	&.siimply-button--dark {
		background: var(--siimply-primary-color);

		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(90deg, var(--siimply-primary-color) 20%, rgba(0, 197, 153, 0.3) 100%);
			transform: translateX(100%);
			transition: transform 0.6s ease;
			z-index: 5;
			pointer-events: none;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}

		&:hover::after {
			transform: translateX(0);
		}

		span {
			color: #fff;
		}

		&:hover svg path {
			stroke: var(--siimply-accent-color);
		}
	}
}

.siimply__stars-tag {
	--empty-color: color-mix(in srgb, var(--siimply-primary-color) 30%, transparent);
	--full-color: white;

	display: flex;
	padding: 4px 8px;
	border-radius: 50px;
	background-color: var(--siimply-accent-color);
	gap: 4px;

	.siimply__star {
		display: block;
		width: 15px;
		height: 15px;
		clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	}

	.siimply__star--half {
		position: relative;
		background-color: var(--empty-color);

		&::after {
			content: "";
			position: absolute;
			top: 0;
			left: 0;
			width: var(--half);
			height: 100%;
			background-color: var(--full-color);
		}
	}

	.siimply__star--empty {
		background-color: var(--empty-color);
	}

	.siimply__star--full {
		background-color: var(--full-color);
	}
}

body .elementor-element.elementor-button-info .elementor-button {
	background-color: var(--siimply-primary-color);

	&:hover {
		background: var(--siimply-secondary-color);
	}
}

/* --- */

.siimply-flag {
	vertical-align: initial;
}
