:root {
	--c_primaryColor: #00a34a !important;
}

/* #header_main {
	display: none;
} */

#wrapper {
	height: 100dvh !important;
}

#estimateur {
	height: 100dvh; /* Dynamic viewport height pour mobile */
	width: 100vw; /* Largeur maximum de l'écran */
	position: absolute;
	top: 0;
	left: 0;
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* [p-smartwizard] {
	background: red;
} */

#estimateur label {
	font-size: 16px;
	margin: 10px 0px;
}

/* ------------------------------------------------------------------------------------- input */
#estimateur input[readonly] {
	background-color: #f3f3f3 !important;
	color: #686868;
	border: 1px solid #ccc;
	cursor: not-allowed;
}

#estimateur input[type='text']:focus:not(.selectize-input input),
#estimateur .form-control:focus,
#estimateur .box-contact-v2 .box .form-control:focus {
	border: 1px solid var(--c_primaryColor) !important;
	box-shadow: none !important;
}

/* ------------------------------------------------------------------------------------- Boutons */
.sw .toolbar > .sw-btn {
	font-size: 16px;
}

/* ------------------------------------------------------------------------------------- Bouton [Précédent] */
#estimateur button[p-smartwizard_e_prevstep] {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 16px;
	line-height: 26px;
	font-weight: 700;
	text-align: center;
	padding: 10px 20px;
	border-radius: 4px;
	background-color: #ffffff;
	color: #161e2d;
	border: 1px solid #161e2d;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	text-decoration: none;
}

#estimateur button[p-smartwizard_e_prevstep]:hover {
	background-color: var(--c_primaryColor);
	border-color: var(--c_primaryColor);
	color: white;
}

/* ------------------------------------------------------------------------------------- Bouton [Suivant] */
#estimateur button[p-smartwizard_e_nextstep] {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 16px;
	line-height: 26px;
	font-weight: 700;
	text-align: center;
	padding: 10px 20px;
	border-radius: 4px;
	background-color: #ffffff;
	color: #fff;
	border: 1px solid #161e2d;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	text-decoration: none;
}

#estimateur button[p-smartwizard_e_nextstep] {
	background-color: var(--c_primaryColor);
	border-color: var(--c_primaryColor);
}

#estimateur .mapMM {
	height: 300px;
}

/* Pseudo-élément pour le logo de fond */
#estimateur::before {
	min-height: 100vh; /* Utilise vh au lieu de dvh pour plus de compatibilité */
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90vw; /* Ajustez la taille selon vos besoins */
	height: auto; /* Conserve les proportions de l'image */
	background-image: url('/views/theme/master/img/estimateur/logo-background.webp');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain; /* Pour que l'image soit entièrement visible */
	opacity: 0.03; /* Logo presque invisible */
	z-index: -1; /* Placé derrière le contenu */
}

#estimateur .widget-box-2 {
	background-color: transparent !important;
	border: 0px !important;
}

#estimateur .widget-box-2 h6 {
	font-size: 22px;
}

#estimateur input {
	margin-top: 0px !important;
}

#estimateur .listItems {
	display: grid;
	gap: 20px; /* Espacement entre les éléments */
	/* Par défaut, 2 colonnes de 150px sur mobile */
	grid-template-columns: repeat(2, 130px);
	justify-content: center; /* Centre la grille dans le conteneur */
}
/* Sur écrans moyens et grands, 4 colonnes de 150px */
@media (min-width: 768px) {
	#estimateur .listItems {
		grid-template-columns: repeat(4, 130px);
	}

	#estimateur .listItems-2 {
		grid-template-columns: repeat(2, 130px);
	}

	#estimateur .listItems-3 {
		grid-template-columns: repeat(3, 130px);
	}

	.sw-toolbar-elm .btn {
		display: none !important;
	}
}

#estimateur h6 {
	font-weight: 400; /* Bold text */
	letter-spacing: 1.5px; /* Spacing between letters */
	margin-bottom: 20px; /* Space below the heading */
	border-bottom: 0.5px solid var(--c_primaryColor); /* Bottom border */
	padding-bottom: 10px; /* Padding below the text */
}

#estimateur .listItems .item {
	background: #fff; /* Fond blanc */
	border: 1px solid #ddd; /* Bordure légère */
	width: 130px;
	height: 130px; /* Carré de 150px x 150px */
	display: flex;
	flex-direction: column; /* Aligne l'icône au-dessus du texte */
	justify-content: center; /* Centre verticalement */
	align-items: center; /* Centre horizontalement */
	text-align: center;
	border-radius: 10px;
	cursor: pointer;
	border: 3px solid transparent;
}

#estimateur .listItems .item span {
	max-width: 90%;
}

#estimateur .listItems .item.active {
	background: var(--c_primaryColor);
	color: white;
}

#estimateur .listItems .item:hover {
	border: 3px solid var(--c_primaryColor);
}

#estimateur .listItems .item i {
	font-size: 40px;
	margin-bottom: 20px;
}

#estimateur .listItems .item svg {
	width: 35px;
	height: 35px;
	margin-bottom: 20px;
}

#estimateur .listItems .item.active svg {
	fill: white;
}

/* ------------------------------------------------------------------------------------- Effet de pulsation sur l'input */
.pulseEl {
	border: 2px solid #ddd;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	animation: pulse 2s infinite;
}

/* Désactiver l'effet de pulsation lorsque l'input est en focus */
.pulseEl:focus {
	animation: none;
}

/* Désactiver l'effet de pulsation lorsque l'input a une valeur */
.pulseEl:not(:placeholder-shown) {
	animation: none;
}

/* Animation de pulsation */
@keyframes pulse {
	0% {
		-webkit-box-shadow: 0 0 0 0 rgba(0, 163, 74, 0.4);
		-moz-box-shadow: 0 0 0 0 rgba(0, 163, 74, 0.4);
		box-shadow: 0 0 0 0 rgba(0, 163, 74, 0.4);
	}
	70% {
		-webkit-box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
		-moz-box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
		box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
	}
	100% {
		-webkit-box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
		-moz-box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
		box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
	}
}

/* ------------------------------------------------------------------------------------- smartWizard */
#estimateur .sw .toolbar {
	position: fixed;
	width: 100%;
	bottom: calc(env(safe-area-inset-bottom) + 8px);
	left: 0;
}

#estimateur .sw > .progress {
	position: fixed;
	width: 100%;
	bottom: calc(env(safe-area-inset-bottom) + 1px);
	left: 0;
	z-index: 1000; /* Ensure it stays above other elements */
}

#estimateur .sw > .stepIndicator {
	width: auto;
	min-width: 80px;
	max-width: 90vw;
	position: fixed;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	height: 28px;
	color: #222;
	background: rgba(255, 255, 255, 0.85);
	padding: 0 18px;
	border-radius: 20px;
	font-size: 15px;
	font-weight: 500;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
	border: 1px solid #eaeaea;
	display: flex;
	align-items: center;
	justify-content: center;
}

#estimateur .sw > ul.nav li a {
	display: none;
}

#estimateur .sw-theme-square > .nav::before {
	border: 0px !important;
}

/* ------------------------------------------------------------------------------------- OTP */
#estimateur input.otp_system:focus {
	border-color: var(--c_primaryColor); /* couleur de bordure au focus */
}

/* ------------------------------------------------------------------------------------- smartWizard */
.sw-theme-square.sw-theme-square > .nav .nav-link.done::before {
	background-color: var(--c_primaryColor) !important;
	opacity: 0.5;
}

.sw-theme-square > .nav .nav-link.done {
	color: var(--c_primaryColor) !important;
}

.sw .toolbar > .sw-btn {
	width: 95px;
	background-color: var(--c_primaryColor) !important;
	border: 1px solid var(--c_primaryColor) !important;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
	-webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
	-moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
	-o-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.sw .toolbar > .sw-btn.sw-btn-prev {
	background-color: rgba(255, 255, 255, 0.5) !important;
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
	color: black;
}

.sw > .progress > .progress-bar {
	background-color: var(--c_primaryColor) !important;
}

.sw-theme-square.sw-theme-square > .nav .nav-link.active::before {
	background-color: var(--c_primaryColor) !important;
}

.sw-theme-square.sw-theme-square > .nav .nav-link.active {
	color: var(--c_primaryColor) !important;
}

.sw-theme-square > .nav::before {
	border: 1px dashed var(--sw-border-color) !important;
}

@media (max-width: 768px) {
	#estimateur .mapMM {
		height: 150px;
	}

	#estimateur label {
		font-size: 12px;
	}

	#estimateur .widget-box-2 h6 {
		font-size: 18px;
	}

	#estimateur input::placeholder {
		font-size: 13px; /* Taille de police plus petite pour le placeholder */
	}

	#estimateur select {
		font-size: 13px; /* Réduit la taille de la police pour le select */
	}

	#estimateur select option {
		font-size: 13px; /* Réduit la taille de la police pour les options */
	}
}

@media (max-width: 766px) {
	.smartwizardPrevNexLine {
		display: none;
	}
}

/* ------------------------------------------------------------------------------------- Masquer les petites flèches haut/bas sur les champs input de type number */
/* Pour Chrome, Safari, Edge, Opera */
#estimateur input::-webkit-inner-spin-button,
#estimateur input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Pour Firefox */
#estimateur input[type='number'] {
	-moz-appearance: textfield;
}

/* ------------------------------------------------------------------------------------- select */
#estimateur select.form-control {
	width: 100%;
	padding: 12px 18px;
	font-size: 15px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	line-height: 28px;
	background-color: var(--White);
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	color: var(--Secondary);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-shadow: none;
	outline: 0;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23666%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207l5%205%205-5z%22/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: right 1.2rem center;
	background-size: 1rem;
	cursor: pointer;
}

#estimateur select.form-control:focus {
	border: 1px solid var(--c_primaryColor) !important;
	box-shadow: none !important;
}

#estimateur select.form-control::-ms-expand {
	display: none;
}

#estimateur input.otp_system {
	padding: 5px;
}

/* ------------------------------------------------------------------------------------- Couleurs */
.buttonEstimateur {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 16px;
	line-height: 26px;
	font-weight: 700;
	text-align: center;
	padding: 10px 20px;
	border-radius: 4px;
	background-color: #ffffff;
	color: #161e2d;
	border: 1px solid #161e2d;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	text-decoration: none;
}

.buttonEstimateur:hover {
	background-color: var(--c_primaryColor);
	border-color: var(--c_primaryColor);
	color: white;
}

.pdf-text-trigger {
	color: #161e2d !important;
}
