/* Header et footer statiques CROS Couverture.
   Reprise du design des templates Elementor Pro : Main header (#56) et Pied de page (#257).
   Couleurs du kit Elementor : primaire #444D6D, fonce #010720, texte #242424, accent #84E08A. */

:root {
	--cros-primary: #444D6D;
	--cros-dark: #010720;
	--cros-text: #242424;
	--cros-accent: #84E08A;
	--cros-font-title: "Poppins", sans-serif;
	--cros-font-text: "Rubik", sans-serif;
}

/* ---------- barre du haut ---------- */

.cros-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: var(--cros-primary);
}

.cros-topbar__text {
	flex: 1 1 58%;
	text-align: right;
	padding: 10px;
	color: #fff;
	font-family: var(--cros-font-text);
	font-size: 16px;
}

.cros-topbar__text p {
	margin: 0;
	color: #fff;
}

.cros-topbar__cta {
	flex: 1 1 38%;
	display: flex;
	justify-content: flex-end;
	padding: 10px;
}

.cros-topbar__cta.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	pointer-events: none;
}

.cros-topbar__cta.is-stuck .cros-phone-btn {
	pointer-events: auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.cros-phone-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--cros-dark);
	color: #fff;
	font-family: var(--cros-font-text);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
}

.cros-phone-btn:hover,
.cros-phone-btn:focus {
	color: #fff;
	opacity: 0.9;
}

.cros-phone-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex: 0 0 auto;
}

/* ---------- barre de navigation ---------- */

.cros-navbar {
	background: #fff;
	position: relative;
}

.cros-navbar__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding: 10px;
}

.cros-logo {
	flex: 0 0 33.3333%;
	display: block;
	line-height: 0;
}

.cros-logo img {
	width: 91px;
	height: 50px;
	display: inline-block;
}

.cros-nav {
	flex: 1 1 auto;
}

ul.cros-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.cros-menu li {
	position: relative;
}

.cros-menu > li > a {
	display: block;
	position: relative;
	padding: 13px;
	font-family: var(--cros-font-title);
	font-size: 16px;
	font-weight: 500;
	color: var(--cros-text);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s;
}

.cros-menu > li > a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 8px;
	height: 2px;
	background: var(--cros-primary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s;
}

.cros-menu > li > a:hover,
.cros-menu > li.current-menu-item > a,
.cros-menu > li.current-menu-ancestor > a {
	color: var(--cros-primary);
}

.cros-menu > li > a:hover::after,
.cros-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

.cros-menu > li.menu-item-has-children > a {
	padding-right: 30px;
}

.cros-menu > li.menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: -2px;
	border: 5px solid transparent;
	border-top-color: currentColor;
}

.cros-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cros-menu .sub-menu a {
	display: block;
	padding: 12px 20px;
	font-family: var(--cros-font-text);
	font-weight: 500;
	font-size: 15px;
	color: var(--cros-text);
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
}

.cros-menu .sub-menu a:hover {
	color: var(--cros-primary);
	background: #f6f6f6;
}

.cros-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--cros-text);
	margin-left: auto;
}

.cros-menu-toggle svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	display: block;
}

.cros-menu-toggle .cros-icon-close {
	display: none;
}

.cros-menu-toggle.is-open .cros-icon-open {
	display: none;
}

.cros-menu-toggle.is-open .cros-icon-close {
	display: block;
}

/* ---------- desktop ---------- */

@media (min-width: 1025px) {
	.cros-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 280px;
		background: #fff;
		box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s;
		z-index: 100;
	}

	.cros-menu li:hover > .sub-menu,
	.cros-menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}
}

/* ---------- tablette et mobile : burger ---------- */

@media (max-width: 1024px) {
	.cros-navbar__inner {
		justify-content: space-between;
	}

	.cros-logo {
		flex: 0 0 auto;
	}

	.cros-menu-toggle {
		display: inline-flex;
	}

	.cros-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
		z-index: 200;
	}

	.cros-nav.is-open {
		display: block;
	}

	ul.cros-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.cros-menu > li > a {
		padding: 14px 20px;
	}

	.cros-menu > li > a::after {
		display: none;
	}

	.cros-menu > li.menu-item-has-children > a::before {
		right: 20px;
	}

	.cros-menu .sub-menu {
		display: none;
		background: #f8f8f8;
	}

	.cros-menu li.is-open > .sub-menu {
		display: block;
	}

	.cros-menu .sub-menu a {
		padding: 12px 20px 12px 34px;
	}
}

/* ---------- mobile : barre du haut empilee ---------- */

@media (max-width: 767px) {
	.cros-topbar__text {
		flex: 1 1 100%;
		text-align: center;
	}

	.cros-topbar__cta {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------- footer ---------- */

.cros-footer {
	background: var(--cros-dark);
}

.cros-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 50px 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 20px;
	row-gap: 20px;
}

.cros-footer__col {
	flex: 1 1 45%;
	color: #fff;
	font-family: var(--cros-font-text);
	font-size: 16px;
	line-height: 1.6;
}

.cros-footer__col p {
	margin: 0 0 10px;
	color: #fff;
}

.cros-footer__col p:last-child {
	margin-bottom: 0;
}

.cros-footer__links {
	text-align: right;
}

.cros-footer a {
	color: #fff;
	text-decoration: underline;
}

.cros-footer a:hover {
	color: var(--cros-accent);
}

@media (max-width: 767px) {
	.cros-footer__col {
		flex: 1 1 100%;
	}
}
