/*
Theme Name: My System Lease
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Thème pour My System Lease
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mysystemlease

*/

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

h1.wp-block-site-title a {
	color: white;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.9;
}

/*
 * Alignment styles.
 * These rules are temporary, and should not be relied on or
 * modified too heavily by themes or plugins that build on
 * Twenty Twenty-Two. These are meant to be a precursor to
 * a global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
 */

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body
	> .is-root-container
	> .wp-block-template-part
	> .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

/* Blocks inside columns don't have negative margins. */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
/* We also want to avoid stacking negative margins. */
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
	margin-left: auto !important;
	margin-right: auto !important;
	width: inherit;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

:root {
	--main-color: #d01818;
	--accent-color: #253241;
}

.d-none {
	display: none !important;
}

body {
	background: var(--accent-color);
	color: white;
}

.only-on-desktop {
	display: none !important;
}

@media screen and (min-width: 815px) {
	body {
		max-height: 100vh;
		overflow: hidden;
	}

	.only-on-desktop {
		display: flex !important;
		justify-content: center;
		align-items: flex-end;
		background: white;
		position: fixed;
		inset: 0;
		overflow: hidden;
		z-index: 9999999999;
	}

	.qr-code__img img {
		max-width: 100vw;
		display: block;
	}
}

@media screen and (max-width: 815px) {
	#map {
		height: 400px;
	}
	body {
		height: calc(100vh - 65px);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	footer a {
		color: white;
		text-decoration: none;
	}
	.phone-number {
		margin-block: 1rem;
		display: block;
		border: 2px solid var(--main-color);
		width: fit-content;
		color: var(--main-color);
		padding: 1.05rem 1rem;
		text-decoration: none;
	}

	.welcome-title h1 {
		text-align: center;
		font-weight: bold;
		text-transform: uppercase;
	}
	.form-control {
		display: flex;
		flex-direction: column;
		gap: 5px;
		margin-bottom: 1rem;
	}

	.form-control > label {
		font-weight: bold;
		color: var(--main-color);
		font-size: 14px;
	}

	p.bande-custom {
		padding: 12px 20px;
		margin: 0;
		background: var(--accent-color);
		text-align: center;
	}
	p.bande-custom a {
		color: white;
		text-decoration: none;
	}
	.wpcf7-list-item {
		display: inline-block;
		margin: 10px 0 10px 0;
	}

	span.wpcf7-not-valid-tip {
		display: none;
	}
	span.wpcf7-form-control.wpcf7-radio input[type="radio"] {
		display: none !important;
	}
	span.wpcf7-form-control.wpcf7-radio
		input[type="radio"]:checked
		+ span.wpcf7-list-item-label {
		background: var(--main-color);
		color: white;
	}

	span.wpcf7-form-control.wpcf7-radio
		input[type="radio"]
		+ span.wpcf7-list-item-label {
		padding: 0.5rem 1rem;
		cursor: pointer;
		transition: 0.25s ease-in-out;
		color: var(--main-color);
	}

	.form-control input[type="text"],
	.form-control input[type="email"],
	.form-control textarea {
		padding: 8px;
		display: block;
		width: calc(100% - 18px);
		border: 1px solid rgb(118, 118, 118);
	}

	.form-control input[type="text"]:focus,
	.form-control input[type="email"]:focus,
	.form-control textarea:focus {
		outline-color: var(--main-color);
	}

	.form-control input[type="submit"] {
		width: fit-content !important;
		padding: 1rem 2rem !important;
		color: white !important;
		background: var(--main-color) !important;
		border: 2px solid var(--main-color) !important;
		transition: 0.5s ease-in !important;
	}

	.form-control input[type="submit"]:hover {
		background: transparent;
		color: var(--main-color);
	}

	[data-name="date-depart"] input, [data-name="date-retour"] input {
		margin-bottom: 0;
	}

	input.wpcf7-form-control.wpcf7-submit.custom-submit {
		width: 100% !important;
		font-size: 18px;
		border: none !important;
		border-bottom: 4px solid white !important;
		text-transform: uppercase;
	}
	
	li input.wpcf7-form-control.wpcf7-submit.custom-submit {
		border-bottom-color: var(--accent-color) !important;
	}

	.ubermenu-skin-minimal.ubermenu-responsive-toggle {
		display: none;
	}
	.header-img {
		padding: 0rem;
		background: url(https://www.mysystemlease.fr/guadeloupe/wp-content/uploads/2022/10/logo-my-system-lease.png);
		height: 125px;
		background-position: center center;
		background-size: cover;
	}
	.header-img img {
		display: block;
		width: 100%;
	}

	header nav > ul > li:not(.ubermenu-active):not(:last-child) {
		position: relative !important;
		border-bottom: 1px solid transparent !important;
	}

	header nav > ul > li:not(.ubermenu-active):not(:last-child):before {
		content: "";
		position: absolute;
		height: 1px;
		bottom: 0;
		left: 60px;
		width: calc(100% - 60px);
		background: #ffffff25;
	}

	header nav a {
		font-size: 19px !important;
	}

	header nav ul ul a {
		font-size: 16px !important;
	}

	header nav a i.ubermenu-sub-indicator {
		color: var(--accent);
	}

	.ubermenu .ubermenu-target {
		padding: 12px 20px !important;
	}

	.ubermenu-image {
		float: left;
		height: 23px !important;
		width: auto !important;
		margin-bottom: 0 !important;
		margin-right: 15px !important;
		margin-top: 2px !important;
		transition: none !important;
	}

	header nav img {
		max-width: 100%;
	}

	header nav ul ul .ubermenu-image {
		margin-top: 0px !important;
	}

	.short-description {
		font-weight: 700;
		margin-bottom: 2rem;
		margin-top: 0;
	}

	.ubermenu-content-block.ubermenu-custom-content > p:first-child {
		margin-top: 0;
	}

	.ubermenu-skin-minimal ul.ubermenu-nav > li.ubermenu-item {
		background: var(--main-color);
	}

	.ubermenu-skin-minimal
		ul.ubermenu-nav
		> li.ubermenu-item
		> a.ubermenu-target,
	.ubermenu-skin-minimal
		ul.ubermenu-nav
		> li.ubermenu-item-level-0.ubermenu-active
		> a.ubermenu-target {
		color: white;
	}

	.ubermenu-skin-minimal
		ul.ubermenu-submenu
		.ubermenu-item-header
		> .ubermenu-target {
		color: var(--main-color);
	}

	i.ubermenu-sub-indicator.fas.fa-angle-down {
		transform: rotateZ(-90deg);
	}

	.my-footer p {
		text-align: center;
		font-size: 12px;
	}
	.my-footer p:first-of-type {
		margin-bottom: 0;
	}
	.my-footer p:last-child {
		margin-top: 0.5em;
	}
	.ubermenu-custom-content p,
	ul:not(.flex-direction-nav) li {
		font-size: 14px;
	}
	.ubermenu-custom-content ul:not(.flex-direction-nav) li {
		padding-left: 5px;
	}
	.ubermenu-custom-content ul:not(.flex-direction-nav) li::marker {
		content: "\f00c";
		font-family: "Font Awesome 5 Free";
		font-weight: 900;
		color: var(--main-color);
	}
	.languages {
		display: flex;
		justify-content: center;
		gap: 20px;
	}
	.other-agencies {
		display: grid;
		grid-template-columns: 1fr 1fr;
		text-align: center;
	}
	.other-agencies > div {
		padding: 1em 2em;
		background: var(--main-color);
	}
	.other-agencies a {
		color: white;
		text-decoration: none;
	}
	.cards {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}
	.card {
		box-shadow: 0px 0px 10px 0px rgb(20 40 100 / 20%);
	}
	.card-img {
		padding: 20px;
	}
	.card-img img {
		display: block;
	}
	.card-body {
		padding-inline: 20px;
	}
	.card-location {
		color: var(--main-color);
		font-weight: bold;
		font-size: 18px;
	}
	.card-body a {
		text-decoration: none;
		font-weight: 500;
		color: #e56437;
	}
	.card-footer a {
		display: inline-block;
		padding-block: 1em;
		width: 100%;
		background: #3c88c2;
		text-align: center;
		color: white;
		text-decoration: none;
	}
	.codedropz-upload-inner > * {
		display: none;
	}
	.codedropz-btn-wrap {
		display: block;
	}
	span.wpcf7-form-control-wrap select {
		width: 100%;
		padding: 8px;
		border: 1px solid rgb(118, 118, 118);
	}

	a.glink {
		margin-right: 25px;
	}

	.form-control p {
		margin: 0;
	}
}


.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.flatpickr-day:hover, .flatpickr-day:focus {
    border-color: var(--dark-color);
    background: transparent;
    color: var(--accent-color);
}

.flatpickr-day.today:hover, .flatpickr-day.today:focus {
    border-color: var(--accent-color);
    background: var(--accent-color);
}