/**
 * Styles pour le header et footer avec effet liquid glass
 * Design moderne noir/blanc avec touches de bleu
 */

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
	position: relative;
	z-index: 1000;
}

.site-header .navbar {
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	transition: all 0.3s ease;
}

.navbar-container {
	display: flex;
	align-items: center;
	position: relative;
}

@media (min-width: 992px) {
	.navbar-container {
		justify-content: space-between;
	}

	.navbar-collapse {
		position: absolute;
		left: 50%;
		transform: translateX(-60%);
		width: auto;
	}

	.header-cta {
		margin-left: 1rem;
	}
}

/* Ajustements pour grands écrans (1400px+) */
@media (min-width: 1400px) {
	.navbar-nav {
		gap: 0.25rem;
	}

	.navbar-nav .nav-link {
		font-size: 0.85rem;
		padding: 0.5rem 0.65rem !important;
	}
}

/* Ajustements pour écrans intermédiaires (laptops 13-14 pouces) */
@media (min-width: 992px) and (max-width: 1399px) {
	.navbar-collapse {
		position: relative;
		left: auto;
		transform: none;
		flex: 1;
		justify-content: center;
		margin: 0 0.75rem;
	}

	.navbar-nav {
		gap: 0;
	}

	.navbar-nav .nav-link {
		font-size: 0.72rem;
		padding: 0.45rem 0.3rem !important;
		letter-spacing: -0.01em;
	}

	.header-actions {
		gap: 0.4rem;
		flex-shrink: 0;
	}

	.header-cta {
		margin-left: 0.4rem;
	}

	.header-cta .btn-cta {
		padding: 0.5rem 0.85rem;
		font-size: 0.72rem;
	}

	.logo-container .custom-logo-link img {
		max-height: 42px;
	}
}

/* Ajustements pour écrans moyens (laptops 12-13 pouces) */
@media (min-width: 992px) and (max-width: 1199px) {
	.navbar-nav .nav-link {
		font-size: 0.68rem;
		padding: 0.4rem 0.25rem !important;
	}

	.header-cta .btn-cta {
		padding: 0.45rem 0.7rem;
		font-size: 0.68rem;
	}

	.logo-container .custom-logo-link img {
		max-height: 38px;
	}
}

.site-header .navbar.scrolled {
	background: rgba(0, 0, 0, 0.85);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Header qui se cache au scroll vers le bas */
.site-header .navbar.header-hidden {
	transform: translateY(-100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Logo */
.logo-container {
	display: flex;
	align-items: center;
	margin-right: auto;
}

.logo-container .custom-logo-link,
.site-logo {
	display: flex;
	align-items: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.logo-container .custom-logo-link img {
	max-height: 50px;
	width: auto;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-container .site-logo:hover {
	color: #4A9EFF;
	transform: translateY(-2px);
}

/* Navigation */
.navbar-nav {
	gap: 0.15rem;
	align-items: center;
	flex-wrap: nowrap;
}

.navbar-nav .nav-item {
	list-style: none;
	white-space: nowrap;
}

.navbar-nav .nav-link {
	color: rgba(255, 255, 255, 0.9) !important;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.5rem 0.6rem !important;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: block;
	white-space: nowrap;
}

.navbar-nav .nav-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
	left: 100%;
}

.navbar-nav .nav-link:hover {
	color: #4A9EFF !important;
	background: rgba(74, 158, 255, 0.1);
	transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
	color: #4A9EFF !important;
	background: rgba(74, 158, 255, 0.15);
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.navbar-nav .dropdown-menu {
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 0.5rem 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	min-width: 220px;
	animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.navbar-nav .dropdown-item {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	font-size: 0.85rem;
	padding: 0.65rem 1.25rem;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
	background: rgba(74, 158, 255, 0.15);
	color: #4A9EFF;
}

.navbar-nav .dropdown-item:active {
	background: rgba(74, 158, 255, 0.25);
	color: #ffffff;
}

/* Entrées menu en attente de pages (href #) */
.navbar-nav a.yb-nav-placeholder {
	pointer-events: none;
	cursor: default;
	opacity: 0.75;
}

.navbar-nav a.yb-nav-placeholder:hover,
.navbar-nav a.yb-nav-placeholder:focus {
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
}

/* « Autres services » : flèche Bootstrap masquée, icône chevron à droite */
.navbar-nav .yb-dropend-toggle::after {
	display: none;
}

.navbar-nav .dropdown-toggle::after {
	border-top-color: currentColor;
	vertical-align: 0.15em;
	margin-left: 0.35em;
	transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
	transform: rotate(180deg);
}

@media (min-width: 992px) {
	.navbar-nav .dropdown:hover > .dropdown-menu {
		display: block;
	}

	.navbar-nav .dropdown-menu {
		margin-top: 0;
		padding-top: 0.75rem;
	}

	/* Zone invisible entre le lien et le dropdown pour ne pas perdre le hover */
	.navbar-nav .dropdown-menu::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		width: 100%;
		height: 12px;
	}

	/* Sous-menu « Autres services » (dropend) */
	.navbar-nav .dropend {
		position: relative;
	}

	.navbar-nav .dropend > .dropdown-menu {
		top: 0;
		left: 100%;
		margin-top: 0;
		margin-left: 0.125rem;
	}

	.navbar-nav .dropend:hover > .dropdown-menu {
		display: block;
	}
}

@media (max-width: 991.98px) {
	.navbar-nav .dropdown-menu {
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border: none;
		border-left: 2px solid rgba(74, 158, 255, 0.3);
		border-radius: 0;
		padding: 0.25rem 0;
		margin: 0.25rem 0 0.25rem 0.25rem;
		box-shadow: none;
		animation: none;
		min-width: auto;
		width: calc(100% - 0.25rem);
		box-sizing: border-box;
	}

	.navbar-nav .dropdown-item {
		padding: 0.45rem 0.5rem;
		font-size: 0.85rem;
		white-space: normal;
	}

	/* Chevron "Autres services" collé au texte sur mobile */
	.navbar-nav .yb-dropend-toggle {
		justify-content: flex-start !important;
	}

	.navbar-nav .yb-dropend-toggle .bi-chevron-right {
		color: #4A9EFF;
		font-size: 0.7rem;
	}

	.navbar-nav .dropend > .dropdown-menu {
		position: static;
		margin: 0.25rem 0 0.25rem 0.5rem;
		padding-top: 0;
		border-left: 2px solid rgba(74, 158, 255, 0.25);
		box-shadow: none;
		width: calc(100% - 0.5rem);
	}

	.navbar-nav .dropdown-toggle::after {
		margin-left: 0.5em;
	}
}

/* Header Actions (langue + CTA) */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

/* Bouton CTA */
.header-cta {
	align-items: center;
}

.btn-cta {
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-cta::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
	width: 300px;
	height: 300px;
}

.btn-cta:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(74, 158, 255, 0.6);
	color: #ffffff;
}

.btn-cta:active {
	transform: translateY(-1px);
}

/* Menu mobile */
.navbar-toggler {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
	box-shadow: 0 0 0 0.25rem rgba(74, 158, 255, 0.25);
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu mobile ouvert */
@media (max-width: 991.98px) {
	.navbar-collapse {
		background: rgba(0, 0, 0, 0.9);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-radius: 12px;
		margin-top: 1rem;
		padding: 1rem;
		border: 1px solid rgba(255, 255, 255, 0.1);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		overflow-x: hidden;
	}

	.navbar-nav {
		text-align: left !important;
		width: 100%;
		margin-bottom: 1rem;
		justify-content: flex-start !important;
		align-items: flex-start !important;
	}

	.navbar-nav .nav-item {
		text-align: left !important;
		width: 100%;
	}

	.navbar-nav .nav-link {
		margin: 0.25rem 0;
		padding-left: 0 !important;
		text-align: left !important;
		justify-content: flex-start !important;
		white-space: normal !important;
		font-size: 1rem !important;
	}

	.header-cta-mobile {
		display: flex;
		justify-content: flex-start;
		width: 100%;
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.header-cta-mobile .btn-cta {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.logo-container {
		margin-right: 0;
		flex-shrink: 0;
	}

	.navbar-toggler {
		margin-left: 0;
		flex-shrink: 0;
	}

	/* Ordre des éléments : Logo - Burger */
	.navbar-container {
		display: flex;
		flex-wrap: wrap;
	}
}

/* Espacement pour le header fixe */
.site-main {
	padding-top: 0;
	min-height: calc(100vh - 80px);
}

/* Background général pour le body - dégradé global */
body {
	background: linear-gradient(180deg, 
		#000000 0%, 
		#050508 5%,
		#0a0a14 12%,
		#0a1220 20%, 
		#0c1a30 30%,
		#0f2540 40%,
		#142d4a 50%, 
		#1a3555 60%,
		#1f3d60 70%, 
		#24456a 78%,
		#294d75 84%,
		#2e5580 90%, 
		#335d8a 96%, 
		#386595 100%
	);
	background-attachment: fixed;
	color: #ffffff;
	min-height: 100vh;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	margin-top: 0;
	position: relative;
}

/* Tagline SEO */
.footer-tagline-bar {
	background: rgba(74, 158, 255, 0.08);
	border-bottom: 1px solid rgba(74, 158, 255, 0.15);
	padding: 0.75rem 0;
}

.footer-seo-tagline {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
	letter-spacing: 0.02em;
}

/* Footer Content */
.footer-content {
	padding: 2.5rem 0;
}

.footer-widget {
	margin-bottom: 0;
}

/* Logo */
.footer-logo,
.site-footer .custom-logo-link {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 1rem;
}

.site-footer .custom-logo-link img {
	max-height: 40px;
	width: auto;
	filter: drop-shadow(0 2px 4px rgba(74, 158, 255, 0.2));
}

/* Headline & Subtitle */
.footer-headline {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.1rem;
	color: #ffffff;
	line-height: 1.5;
	margin-bottom: 0.5rem;
}

.footer-headline strong {
	color: #4A9EFF;
}

.footer-subtitle {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* Footer Title */
.footer-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	position: relative;
	padding-bottom: 0.5rem;
}

.footer-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: #4A9EFF;
	border-radius: 2px;
}

/* Location & Email */
.footer-location {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.footer-location i {
	color: #4A9EFF;
	margin-right: 0.5rem;
}

.footer-contact-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-email,
.footer-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #4A9EFF;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.footer-email i,
.footer-linkedin i {
	font-size: 1rem;
}

.footer-email:hover,
.footer-linkedin:hover {
	color: #ffffff;
}

/* Footer Menu */
.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	margin-bottom: 0.5rem;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
	display: inline-block;
}

.footer-menu a:hover {
	color: #4A9EFF;
}

/* Footer Bottom */
.footer-bottom {
	padding: 1.25rem 0;
	background: rgba(0, 0, 0, 0.4);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.6;
	text-align: center;
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
	.footer-content {
		padding: 2rem 0;
	}

	.footer-widget {
		margin-bottom: 2rem;
	}

	.footer-widget:last-child {
		margin-bottom: 0;
	}

	.footer-title::after {
		left: 0;
	}
}

@media (max-width: 767.98px) {
	.footer-tagline-bar {
		padding: 0.6rem 0;
	}

	.footer-seo-tagline {
		font-size: 0.75rem;
	}

	.footer-content {
		padding: 1.5rem 0;
		text-align: center;
	}

	.footer-title::after {
		left: 50%;
		transform: translateX(-50%);
	}

	.footer-location {
		text-align: center;
	}

	.footer-contact-links {
		align-items: center;
	}

	.footer-menu {
		text-align: center;
	}

	.copyright {
		font-size: 0.75rem;
	}
}
