/* ============================================
   COMMON STYLES - Shared across all pages
   ============================================ */

/* Stairs Image */
.stairs-image {
	height: 50% !important;
}

/* ============================================
   Modern Language Selector
   ============================================ */
.modern-lang-selector {
	position: relative;
	z-index: 10;
}

.lang-switch-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
	position: relative;
	z-index: 2;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lang-btn span {
	position: relative;
	z-index: 1;
	transition: color 0.3s ease;
}

.lang-btn:hover {
	color: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
}

.lang-btn.active {
	color: #000;
	font-weight: 700;
}

.lang-indicator {
	position: absolute;
	top: 4px;
	left: 4px;
	width: calc(50% - 4px);
	height: calc(100% - 8px);
	background: linear-gradient(135deg, #ffd403 0%, #ffed4e 100%);
	border-radius: 8px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(255, 212, 3, 0.4);
	z-index: 1;
}

.lang-switch-container[data-lang="fr"] .lang-indicator {
	transform: translateX(calc(100% + 4px));
}

.lang-switch-container[data-lang="en"] .lang-indicator {
	transform: translateX(0);
}

/* Active state styling */
.lang-switch-container .lang-btn-en.active ~ .lang-indicator,
.lang-switch-container[data-lang="en"] .lang-btn-en {
	color: #000;
}

.lang-switch-container .lang-btn-fr.active ~ .lang-indicator,
.lang-switch-container[data-lang="fr"] .lang-btn-fr {
	color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.lang-switch-container {
		padding: 3px;
	}
	
	.lang-btn {
		padding: 6px 12px;
		font-size: 12px;
		min-width: 42px;
	}
	
	.lang-indicator {
		top: 3px;
		left: 3px;
		height: calc(100% - 6px);
	}
}

/* ============================================
   Footer Bottom Styles
   ============================================ */
.footer-bottom {
	min-height: 49px;
	display: flex;
	align-items: center;
}

.footer-bottom-content {
	min-height: 49px;
	padding: 12px 0;
}

.footer-bottom-text {
	font-size: clamp(12px, 2.5vw, 24px) !important;
}

.footer-bottom-link a {
	font-size: clamp(12px, 2.5vw, 24px) !important;
}

@media (max-width: 768px) {
	.footer-bottom {
		min-height: auto !important;
		padding: 16px 0 !important;
	}
	
	.footer-bottom-content {
		flex-direction: column !important;
		gap: 12px !important;
		align-items: center !important;
		text-align: center !important;
		min-height: auto !important;
	}
	
	.footer-bottom-text {
		text-align: center !important;
		width: 100%;
		font-size: clamp(16px, 3.5vw, 24px) !important;
	}
	
	.footer-bottom-link {
		text-align: center !important;
		width: 100%;
	}
	
	.footer-bottom-link a {
		font-size: clamp(16px, 3.5vw, 24px) !important;
	}
}

@media (max-width: 480px) {
	.footer-bottom {
		padding: 14px 0 !important;
	}
	
	.footer-bottom-content {
		gap: 10px !important;
	}
	
	.footer-bottom-text {
		font-size: clamp(14px, 4vw, 22px) !important;
	}
	
	.footer-bottom-link a {
		font-size: clamp(14px, 4vw, 22px) !important;
	}
}

/* ============================================
   Social Icons
   ============================================ */
.social-icon:hover {
	background-color: rgba(255, 212, 1, 0.9) !important;
}

/* ============================================
   Contact Form Common Styles
   ============================================ */
.contact-form input,
.contact-form textarea {
	padding-left: 20px !important;
}

.contact-form input {
	width: 100% !important;
	min-width: 100% !important;
}

/* Augmenter la largeur des conteneurs d'inputs, mais pas celui du textarea */
.contact-form .flex.gap-4 > .flex-1:not(:has(textarea)) {
	flex: 1.2 1 0% !important;
}

/* Alternative pour les navigateurs qui ne supportent pas :has() */
.contact-form .flex.gap-4.mb-4 > .flex-1 {
	flex: 1.2 1 0% !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #000 !important;
	font-size: calc(1rem + 3px) !important;
}

@media (max-width: 1140px) {
	.contact-section {
		flex-direction: column !important;
		align-items: center !important;
	}
	
	.contact-section .contact-form {
		margin-left: 0 !important;
	}
	
	.contact-section .ud-contact-title {
		text-align: center;
		margin-bottom: 20px;
	}
	
	.gap-jack {
		gap: 30px;
	}
}

@media (min-width: 1140px) {
	.gap-jack {
		gap: 150px;
	}
}

/* ============================================
   Navigation Hover - Desktop (> 1024px)
   ============================================ */
@media screen and (min-width: 1025px) {
	/* Assurer que le hover fonctionne correctement sur desktop pour l'ancienne structure */
	.ud-header .submenu-item.group:hover .submenu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
	
	/* La nouvelle structure nav-services-item est gérée dans ads.css */
}

/* ============================================
   Navigation Hover Disable on Mobile/Tablet
   ============================================ */
@media screen and (max-width: 1024px) {
	/* Désactiver hover sur tous les liens de navigation */
	.ud-header nav a:hover,
	.ud-header nav a:focus {
		color: inherit !important;
		background-color: transparent !important;
	}
	
	.ud-header nav li.group:hover a {
		color: inherit !important;
	}
	
	/* Désactiver l'affichage des sous-menus au hover (ancienne structure uniquement) */
	.ud-header .submenu-item.group:hover .submenu {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
	
	/* Permettre l'affichage au clic sur mobile/tablette (ancienne structure) */
	.ud-header .submenu-item.group.active .submenu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Désactiver hover sur les sous-menus */
	.ud-header .submenu a:hover {
		color: inherit !important;
		background-color: transparent !important;
	}
	
	/* Garder le hover sur contact_nav */
	#contact_nav:hover {
		background-color: #010101 !important;
		color: #ffffff !important;
	}
	
	/* La nouvelle structure nav-services-item est gérée dans ads.css */
}

