/**
 * Main Stylesheet
 *
 * @package Immobilier_Moillen
 */

/* ============================================
   Font Face Declaration
   ============================================ */
@font-face {
	font-family: 'DINMittelschrift';
	src: url('../fonts/DINMittelschrift.woff2') format('woff2'),
		 url('../fonts/DINMittelschrift.woff') format('woff'),
		 url('../fonts/DINMittelschrift.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #1a1a1a;
	--secondary-color: #666666;
	--text-color: #333333;
	--light-gray: #f5f5f5;
	--border-color: #e0e0e0;
	--white: #ffffff;
	--red-accent: #dc2626;
	--dark-bg: #1a1a1a;
	--spacing-unit: 1rem;
	--container-width: 1200px;
	--font-primary: 'DINMittelschrift', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
}

h1,h2,h3,h4,h5,h6,.menu-item{
	font-family: "DINMittelschrift", sans-serif;
}

.menu-item {
    font-size: 1.1rem;
    text-transform: uppercase;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
}

/* Custom List Markers */
ul:not(.nav-menu):not(.menu) {
	list-style: none;
	padding-left: calc(var(--spacing-unit) * 1);
}

ul:not(.nav-menu):not(.menu) li {
	position: relative;
	padding-left: calc(var(--spacing-unit) * 1);
}

ul:not(.nav-menu):not(.menu):not(.footer-menu) li::before {
	content: '';
	position: absolute;
	width: 4px;
	left: 0;
	top: 8px;
	height: 2px;
	background: #ed1842;
}

/* ============================================
   Layout
   ============================================ */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 calc(var(--spacing-unit) * 1.5);
	width: 100%;
}

/* Ensure all content sections use container */
.site-main > .container,
.site-main .container {
	width: 100%;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

section.mb-5 {
    margin-bottom: 50px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
	background-color: transparent;
	border-bottom: none;
	padding: calc(var(--spacing-unit) * 1.5) 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	width: 100%;
	transition: background-color 0.3s ease;
}

.site-header.scrolled {
	background-color: rgba(26, 26, 26, 0.95);
	backdrop-filter: blur(10px);
}

.site-header .container {
	position: relative;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 1);
}

.custom-logo-link {
	display: block;
	max-height: 60px;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: var(--white);
}

.site-description {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: calc(var(--spacing-unit) * 0.5);
	width: 40px;
	height: 40px;
	position: relative;
	z-index: 1001;
	align-items: center;
	justify-content: center;
}

.menu-toggle-icon {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--white);
	position: relative;
	transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background-color: var(--white);
	left: 0;
	transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle-icon::before {
	top: -8px;
}

.menu-toggle-icon::after {
	top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: calc(var(--spacing-unit) * 2);
	margin: 0;
	padding: 0;
	align-items: center;
}

.nav-menu a {
	color: var(--white);
	font-weight: 500;
	padding: calc(var(--spacing-unit) * 0.7) 0;
	position: relative;
	display: flex;
	align-items: center;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: var(--white);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--white);
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background-color: var(--red-accent);
}

/* ============================================
   Sub Menu Styles
   ============================================ */
.nav-menu .menu-item-has-children {
	position: relative;
}

.nav-menu .menu-item-has-children > a {
	padding-right: calc(var(--spacing-unit) * 1.5);
}

.nav-menu .menu-item-has-children > a::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--white);
	margin-left: calc(var(--spacing-unit) * 0.5);
	transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-children:hover > a::after {
	transform: translateY(-50%) rotate(180deg);
}

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: rgba(26, 26, 26, 0.98);
	backdrop-filter: blur(10px);
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: calc(var(--spacing-unit) * 0.5) 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 1000;
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	padding: 0px;
}

.nav-menu .sub-menu li {
	margin: 0;
	padding: 0;
	position: relative;
	padding-left: 0px !important;
}

.nav-menu .sub-menu li::before {
	display: none;
}

.nav-menu .sub-menu a {
	display: block;
	padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
	color: var(--white);
	font-size: 0.95rem;
	white-space: nowrap;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: background-color 0.3s ease, color 0.3s ease;
	display: flex;
	align-items: center;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.nav-menu .sub-menu li:last-child a {
	border-bottom: none;
}

.nav-menu .sub-menu .current-menu-item > a,
.nav-menu .sub-menu .current_page_item > a {
	background-color: rgba(220, 38, 38, 0.2);
	color: var(--white);
}

.nav-menu .sub-menu .current-menu-item > a::after,
.nav-menu .sub-menu .current_page_item > a::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: var(--red-accent);
}

/* Nested sub-menus */
.nav-menu .sub-menu .menu-item-has-children > a::after {
	content: '';
	position: absolute;
	right: calc(var(--spacing-unit) * 1);
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid var(--white);
	border-right: none;
}

.nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-left: calc(var(--spacing-unit) * 0.5);
}

/* ============================================
   Language Switcher (Polylang)
   ============================================ */
.language-switcher {
	display: flex;
	align-items: center;
	margin-left: calc(var(--spacing-unit) * 2);
	list-style: none;
}

.language-switcher ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: calc(var(--spacing-unit) * 0.5);
	align-items: center;
}

.language-switcher li {
	margin: 0;
	padding: 0;
	position: relative;
}

.language-switcher li::before {
	display: none;
}

.language-switcher a {
	display: flex;
    align-items: center;
    gap: 0px;
    color: var(--white);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.language-switcher a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.language-switcher .lang-item-current a {
	background-color: rgba(255, 255, 255, 0.15);
	color: var(--white);
	font-weight: 600;
}

.language-switcher img {
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
	position: relative;
	height: 100vh;
	min-height: 600px;
	max-height: 700px;
	overflow: hidden;
}

.slider-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.slider-wrapper {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease;
	will-change: transform;
}

.slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.slide-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: relative;
	z-index: 1;
}


.slider-controls {
	position: absolute;
	bottom: calc(var(--spacing-unit) * 4);
	left: calc(var(--spacing-unit) * 3);
	display: flex;
	gap: calc(var(--spacing-unit) * 1);
	z-index: 3;
}

.slider-prev,
.slider-next {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.8);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
	background: var(--white);
	color: var(--primary-color);
	border-color: var(--white);
}

.slider-dots {
	position: absolute;
	right: calc(var(--spacing-unit) * 4);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-unit) * 0.5);
	z-index: 3;
}

.slider-dot {
	width: 25px;
	height: 8px;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.slider-dot:hover {
	background: rgba(255, 255, 255, 0.8);
	border-color: var(--white);
}

.slider-dot.active {
	background: var(--red-accent);
	border-color: var(--red-accent);
	width: 30px;
}

/* ============================================
   Ventes Section
   ============================================ */
.ventes-section {
	padding: calc(var(--spacing-unit) * 2) 0;
	color: var(--white);
	position: relative;
}

/* Ventes Filters */
.ventes-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: calc(var(--spacing-unit) * 1) 0;
	border-bottom: 2px solid var(--border-color);
	margin-bottom: calc(var(--spacing-unit) * 1);
	flex-wrap: wrap;
	gap: calc(var(--spacing-unit) * 2);
}

.ventes-category-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: calc(var(--spacing-unit) * 0.5);
}

.filter-btn {
	background: transparent;
	border: none;
	color: var(--primary-color);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
	transition: color 0.3s ease;
	font-family: var(--font-primary);
}

.filter-btn:hover {
	color: var(--red-accent);
}

.filter-btn.active {
	color: var(--red-accent);
}

.filter-separator {
	color: var(--secondary-color);
	font-weight: 700;
	margin: 0 calc(var(--spacing-unit) * 0.5);
}

.ventes-view-toggle {
	display: flex;
	gap: calc(var(--spacing-unit) * 1);
}

.view-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 0.5);
	color: var(--secondary-color);
	transition: color 0.3s ease;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-primary);
}

.view-btn svg {
	width: 20px;
	height: 20px;
}

.view-btn:hover {
	color: var(--primary-color);
}

.view-btn.active {
	color: var(--red-accent);
}

.view-btn.active svg {
	fill: var(--red-accent);
}

.vente-item-wrapper {
	transition: opacity 0.3s ease;
}

.ventes-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background-color: var(--red-accent);
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: calc(var(--spacing-unit) * 3);
	padding-bottom: calc(var(--spacing-unit) * 2);
	border-bottom: 2px solid var(--red-accent);
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--white);
}

.view-all {
	color: var(--white);
	font-weight: 500;
	text-decoration: underline;
}

.view-all:hover {
	color: var(--red-accent);
}

.ventes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: calc(var(--spacing-unit));
	padding-top: calc(var(--spacing-unit) * 2);
}

.ventes-grid.ventes-list-view {
	grid-template-columns: 1fr;
	gap: calc(var(--spacing-unit) * 2);
}

.ventes-grid.ventes-list-view .vente-item-wrapper {
	background-color: var(--white);
}

.ventes-grid.ventes-list-view .vente-item {
	display: flex;
	flex-direction: row;
	max-width: 100%;
	background-color: var(--white);
	border-radius: 0;
	overflow: visible;
	min-height: auto;
	align-items: stretch;
}

.ventes-grid.ventes-list-view .vente-item:hover {
	transform: none;
}

.ventes-grid.ventes-list-view .vente-thumbnail {
	width: 400px;
	flex-shrink: 0;
	margin-bottom: 0;
	margin-right: calc(var(--spacing-unit) * 3);
	height: 250px;
	position: relative;
}

.ventes-grid.ventes-list-view .vente-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ventes-grid.ventes-list-view .vente-title-overlay {
	display: none;
}

.ventes-grid.ventes-list-view .vente-hover-overlay {
	display: none;
}

.ventes-grid.ventes-list-view .vente-badge {
	display: none;
}

.ventes-grid.ventes-list-view .vente-list-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0 calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2) 0;
	flex: 1;
}

.ventes-grid:not(.ventes-list-view) .vente-list-content {
	display: none;
}

.vente-list-title-wrapper {
	margin-bottom: calc(var(--spacing-unit) * 1.5);
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-unit) * 0.5);
}

.vente-list-category {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
}

.vente-list-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	line-height: 1.2;
	font-family: var(--font-primary);
	display: block;
}

.vente-list-option {
	font-size: 0.875rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.1em;
    display: block;
    background: var(--red-accent);
    padding: 8px 15px;
    width: fit-content;
}

.vente-list-badge {
	margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.vente-list-sold-badge {
	display: inline-block;
	padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
	background-color: var(--red-accent);
	color: var(--white);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
}

.vente-list-location {
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 0.5);
	margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.location-icon {
	width: 16px;
	height: 16px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.vente-list-address {
	color: var(--red-accent);
	font-size: 1rem;
	font-weight: 500;
}

.vente-list-plus-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--red-accent);
	color: var(--white);
	text-decoration: none;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.vente-list-plus-button:hover {
	background-color: var(--primary-color);
	transform: scale(1.1);
}

.vente-list-plus-button{
	padding-bottom: 3px;
}

.plus-icon {
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
}

.ventes-section .container {
	color: var(--white);
}

.vente-item {
	background-color: transparent;
	border: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: visible;
	min-height: 300px;
}

.vente-item:hover {
	transform: translateY(-5px);
}

.titre-small{
	font-size: 2rem;
	line-height: normal;
}

.titre-rouge {
    color: #e51000;
	font-size: 1.75rem;
}

.vente-thumbnail {
	position: relative;
	overflow: hidden;
	margin-bottom: calc(var(--spacing-unit) * 1.5);
	height: 100%;
}

.vente-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.vente-item:hover .vente-thumbnail img {
	transform: scale(1.05);
}

/* Title overlay on image */
.vente-title-overlay {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-unit) * 0.5);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: calc(var(--spacing-unit) * 2) 15px;
	z-index: 2;
	pointer-events: none;
	height: 100%;
    justify-content: center;
}

.vente-category {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	opacity: 0.9;
}

.vente-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vente-option {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--white);
	background-color: #ed1842;
	padding: calc(var(--spacing-unit) * 0.25) calc(var(--spacing-unit) * 0.75);
	letter-spacing: 0.1em;
	display: inline-block;
	align-self: flex-start;
}

/* Hover overlay with button */
.vente-hover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 3;
	pointer-events: none;
}

.vente-item:hover .vente-hover-overlay {
	opacity: 1;
	pointer-events: auto;
}

.vente-view-button {
	display: inline-block;
	padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 3);
	background-color: var(--white);
	color: var(--primary-color);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid var(--white);
}

.vente-view-button:hover {
	background-color: transparent;
	color: var(--white);
	border-color: var(--white);
}

.vente-meta {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--spacing-unit) * 1);
	margin-bottom: calc(var(--spacing-unit) * 1);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.property-price {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--white);
}

.property-surface,
.property-rooms,
.property-location {
	color: rgba(255, 255, 255, 0.7);
}

.property-surface,
.property-rooms,
.property-location {
	display: inline-block;
}

.vente-excerpt {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: calc(var(--spacing-unit) * 1.5);
	line-height: 1.6;
}

.vente-button {
	display: inline-block;
	padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
	background-color: transparent;
	color: var(--white);
	border: 2px solid var(--white);
	transition: all 0.3s ease;
	font-weight: 500;
}

.vente-button:hover {
	background-color: var(--red-accent);
	color: var(--white);
	border-color: var(--red-accent);
}

/* Vente Badge */
.vente-badge {
	position: absolute;
	bottom: calc(var(--spacing-unit) * 1);
	left: calc(var(--spacing-unit) * 1);
	padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
	background-color: var(--red-accent);
	color: var(--white);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	z-index: 2;
}

.vente-badge.sold {
	background-color: var(--red-accent);
}

label.col-6 {
    width: 48%;
    display: flex;
    margin-bottom: 15px;
}

label.col-12 {
    width: 100%;
    display: flex;
    margin-bottom: 15px;
}

input.wpcf7-form-control.wpcf7-text.vente-title-input {
    display: none;
}

.contact-form-wrapper .wpcf7-form p {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ============================================
   Vente List Page
   ============================================ */
.page-vente-list {
	padding: 0;
}

.vente-list-hero-section {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

.vente-list-hero-image {
	position: relative;
	width: 100%;
	height: 100%;
}

.vente-list-hero-image .hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vente-list-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.vente-list-content {
	padding: calc(var(--spacing-unit) * 5) 0;
	background-color: var(--white);
}

.vente-list-text {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-color);
}

.no-ventes {
	text-align: center;
	padding: calc(var(--spacing-unit) * 5) 0;
	font-size: 1.2rem;
	color: var(--secondary-color);
}

/* ============================================
   Single Vente
   ============================================ */
.single-vente-main {
	padding: 0;
}

.single-vente {
	margin: 0;
}

/* Hero Image Section */
.vente-hero-image {
	position: relative;
	width: 100%;
	height: 700px;
	overflow: hidden;
}

.vente-hero-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.vente-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: relative;
	z-index: 0;
}

.vente-hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
	padding: calc(var(--spacing-unit) * 4) 0;
	color: var(--white);
	z-index: 2;
}

.vente-type {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: calc(var(--spacing-unit) * 0.5);
	opacity: 0.9;
}

.vente-hero-title {
	font-size: 3rem;
	font-weight: 700;
	margin: 0;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Details Section */
.vente-details-section {
	padding: calc(var(--spacing-unit) * 5) 0;
	background-color: var(--white);
}

.vente-details-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--spacing-unit) * 4);
	align-items: start;
}

.vente-section-title {
	font-size: 2.75rem;
	font-weight: 700;
	color: var(--primary-color);
	line-height: normal;
}

.vente-description {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-color);
}

.vente-description p {
	margin-bottom: calc(var(--spacing-unit) * 1);
}

.vente-description strong {
	color: var(--red-accent);
	font-weight: 600;
}

/* Characteristics */
.vente-characteristics {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: calc(var(--spacing-unit) * 1.5);
	margin-top: calc(var(--spacing-unit) * 2);
}

.characteristic-item {
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * .5);
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.characteristic-icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.characteristic-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-color);
	text-transform: uppercase;
}

/* Tabs Section */
.vente-tabs-section {
	padding: calc(var(--spacing-unit) * 5) 0;
	background-color: var(--light-gray);
}

.vente-tabs-wrapper {
	display: grid;
	grid-template-columns: 2fr;
	gap: calc(var(--spacing-unit) * 4);
	align-items: start;
}

.vente-tabs-content-wrapper {
	display: flex;
	flex-direction: column;
}

.vente-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--border-color);
	margin-bottom: calc(var(--spacing-unit) * 3);
}

.gallery-sidebar-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: calc(var(--spacing-unit) * 2);
	text-transform: uppercase;
}

.vente-gallery-sidebar {
	position: sticky;
	top: calc(var(--spacing-unit) * 2);
}

.vente-tab {
	background: transparent;
	border: none;
	padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1);
	font-size: 1rem;
	font-weight: 600;
	color: var(--secondary-color);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vente-tab:hover {
	color: var(--primary-color);
}

.vente-tab.active {
	color: var(--primary-color);
	border-bottom-color: var(--red-accent);
}

.vente-tab-content {
	display: none;
}

.vente-tab-content.active {
	display: block !important;
}

.vente-description-content-pdf {
    margin-bottom: 30px;
}

.pdf-link {
    padding: 16px;
    border: 1px solid;
	display: flex;
    align-items: center;
	width: fit-content;
}

.pdf-link img{
    width: 35px;
    margin-right: 6px;
}

.vente-description-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-color);
	width: 48%;
	float: left;
	margin-right: 2%;
}

.vente-points-forts{
	width: 50%;
	float: right;
}

.vente-options {
	margin-bottom: calc(var(--spacing-unit) * 1.2);
}

.vente-region {
    color: #ed1842;
    text-transform: uppercase;
}

/* Gallery */
.vente-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: calc(var(--spacing-unit) * 1.5);
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4 / 3;
}

.gallery-item a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s ease;
	display: block;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item::after {
	content: '+';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	z-index: 2;
}

.gallery-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.gallery-item:hover::before {
	opacity: 1;
}

.gallery-item:hover::after {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.gallery-item.gallery-video {
	position: relative;
}

.gallery-item.gallery-video .video-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: var(--light-gray);
	color: var(--text-color);
	font-size: 1.5rem;
}

/* Contact Form Section */
.vente-contact-section {
	padding: calc(var(--spacing-unit) * 5) 0;
	background-color: var(--light-gray);
}

.contact-section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	text-align: center;
	margin-bottom: calc(var(--spacing-unit) * 1);
}

.contact-section-description {
	text-align: center;
	color: var(--secondary-color);
	margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-form-wrapper {
	max-width: 800px;
	margin: 0 auto;
	background-color: var(--white);
	padding: calc(var(--spacing-unit) * 4);
	border-radius: 8px;
}

.form-title {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: calc(var(--spacing-unit) * 3);
	color: var(--primary-color);
	text-transform: uppercase;
}

.vente-contact-form {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-unit) * 2);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: calc(var(--spacing-unit) * 2);
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: calc(var(--spacing-unit) * 0.5);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
	padding: calc(var(--spacing-unit) * 1);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--red-accent);
}

.form-group textarea {
	resize: vertical;
	min-height: 150px;
}

.form-submit-button {
	padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 3);
	background-color: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	align-self: center;
	min-width: 200px;
}

.form-submit-button:hover {
	background-color: var(--red-accent);
}

/* Contact Form 7 Styles in Vente Section */
.contact-form-wrapper .wpcf7-form {
	display: flex;
	flex-direction: column;
}

.contact-form-wrapper .wpcf7-form p {
	margin: 0;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-form-wrapper .wpcf7-form-control {
	width: 100%;
	padding: calc(var(--spacing-unit) * 1);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease;
	background-color: var(--white);
}

.contact-form-wrapper .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--red-accent);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form-wrapper .wpcf7-textarea {
	resize: vertical;
	min-height: 150px;
}

.contact-form-wrapper .wpcf7-submit {
	padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 3);
	background-color: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	align-self: center;
	min-width: 200px;
	font-family: var(--font-primary);
}

.contact-form-wrapper .wpcf7-submit:hover {
	background-color: var(--red-accent);
}

.contact-form-wrapper .wpcf7-response-output {
	margin-top: calc(var(--spacing-unit) * 1);
	padding: calc(var(--spacing-unit) * 1);
	border-radius: 4px;
	text-align: center;
	font-size: 0.875rem;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.contact-form-wrapper .wpcf7-mail-sent-ng,
.contact-form-wrapper .wpcf7-aborted,
.contact-form-wrapper .wpcf7-spam,
.contact-form-wrapper .wpcf7-validation-errors {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
	color: var(--red-accent);
	font-size: 0.875rem;
	margin-top: calc(var(--spacing-unit) * 0.5);
}

.contact-form-wrapper .wpcf7-list-item {
	margin: 0;
	margin-right: calc(var(--spacing-unit) * 2);
}

.contact-form-wrapper .wpcf7-checkbox .wpcf7-list-item,
.contact-form-wrapper .wpcf7-radio .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	margin-bottom: calc(var(--spacing-unit) * 1);
}

.contact-form-wrapper .wpcf7-checkbox input[type="checkbox"],
.contact-form-wrapper .wpcf7-radio input[type="radio"] {
	margin-right: calc(var(--spacing-unit) * 0.5);
}

/* Support for Contact Form 7 grid layout */
.contact-form-wrapper .wpcf7-form .wpcf7-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: calc(var(--spacing-unit) * 2);
}

@media (max-width: 768px) {
	.contact-form-wrapper .wpcf7-form .wpcf7-form-row {
		grid-template-columns: 1fr;
	}

	.titre-small,.titre-rouge {
		font-size: 1.4rem;
	}
	.slider-dots{
		right: 10px;
	}
}

/* Location Section */
.vente-location-section {
	padding: calc(var(--spacing-unit) * 5) 0;
	background-color: var(--white);
}

.location-section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: calc(var(--spacing-unit) * 3);
}

.location-map-wrapper {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	position: relative;
}

.location-map-wrapper #map {
	width: 100%;
	height: 450px;
	min-height: 450px;
	border: none;
	background-color: var(--light-gray);
}

.location-map-wrapper iframe {
	width: 100%;
	height: 450px;
	border: none;
}

.map-placeholder {
	height: 450px;
	background-color: var(--light-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--secondary-color);
}

/* ============================================
   Villages
   ============================================ */
.villages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: calc(var(--spacing-unit) * 3);
}

.village-item {
	background-color: var(--white);
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.village-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.village-thumbnail {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.village-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.village-item:hover .village-thumbnail img {
	transform: scale(1.05);
}

.village-content {
	padding: calc(var(--spacing-unit) * 2);
}

.village-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: calc(var(--spacing-unit) * 1);
}

.village-title a {
	color: var(--primary-color);
}

.village-excerpt {
	color: var(--secondary-color);
	margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.read-more {
	color: var(--primary-color);
	font-weight: 500;
	text-decoration: underline;
}

/* ============================================
   Content
   ============================================ */
.entry-content {
	max-width: 800px;
	margin: 0 auto;
}

.entry-content p {
	margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: calc(var(--spacing-unit) * 2);
	margin-bottom: calc(var(--spacing-unit) * 1);
	font-weight: 700;
}

.page-header {
	margin-bottom: calc(var(--spacing-unit) * 3);
	padding-bottom: calc(var(--spacing-unit) * 2);
	border-bottom: 1px solid var(--border-color);
}

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
	background-color: var(--dark-bg);
	color: var(--white);
	padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 3);
}

.footer-main {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: calc(var(--spacing-unit) * 5);
	margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-column {
	display: flex;
	flex-direction: column;
}

.footer-logo-column {
	display: flex;
	flex-direction: column;
}

.footer-logo {
	margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-logo img {
	max-height: 60px;
	width: auto;
	height: auto;
}

.footer-description {
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.8;
	font-size: 0.95rem;
}

.footer-description p {
	margin: 0 0 calc(var(--spacing-unit) * 0.5);
}

.footer-description ul {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-left: calc(var(--spacing-unit) * 1.5);
}

.footer-description ul li {
	position: relative;
	margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.footer-description ul li::before {
	content: '•';
	position: absolute;
	left: calc(var(--spacing-unit) * -1.5);
	color: var(--red-accent);
	font-weight: bold;
}

/* Footer Widgets Styles */
.footer-column .widget {
	margin-bottom: calc(var(--spacing-unit) * 2);
}

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

.footer-column .widget-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: calc(var(--spacing-unit) * 2);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding-bottom: 12px;
	position: relative;
}

.footer-column .widget-title::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 30px;
	background: #fff;
}

.footer-column .widget p,
.footer-column .widget li,
.footer-column .widget a {
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.8;
	font-size: 0.95rem;
}

.footer-column .widget a:hover {
	color: var(--white);
}

.footer-column .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-left: calc(var(--spacing-unit) * 1.5);
}

.footer-column .widget ul li {
	position: relative;
	margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.footer-column .widget ul li::before {
	content: '•';
	position: absolute;
	left: calc(var(--spacing-unit) * -1.5);
	color: var(--red-accent);
	font-weight: bold;
}

.footer-column .widget img {
	max-width: 100%;
	height: auto;
}

.footer-column .widget .footer-logo img {
	max-height: 60px;
	width: auto;
	height: auto;
}

.footer-column-title {
	position: relative;
	font-size: 1rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: calc(var(--spacing-unit) * 2);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding-bottom: 12px;
}

footer .footer-column-title:before {
    content: '';
    left: 0;
    bottom: 0;
    height: 4px;
    width: 30px;
    position: absolute;
    background: #fff;
}
.footer-info .footer-contact {
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.8;
}

.footer-contact p {
	margin: 0 0 calc(var(--spacing-unit) * 0.5);
}

.footer-company {
	font-weight: 600;
	font-size: 1.05rem;
}

.footer-address {
	color: rgba(255, 255, 255, 0.8);
}

.footer-phone {
	color: rgba(255, 255, 255, 0.8);
}

.footer-phone a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.footer-phone a:hover {
	color: var(--white);
}

.footer-navigation {
	display: flex;
	flex-direction: column;
}

.footer-menu {
	display: flex;
	flex-direction: column;
	list-style: none;
	gap: 5px;
	margin: 0;
	padding: 0px !important;
}

.footer-menu li {
	margin: 0;
	padding-left: 0px !important;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: var(--white);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: calc(var(--spacing-unit) * 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
	gap: calc(var(--spacing-unit) * 2);
}

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

.footer-copyright a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.footer-copyright a:hover {
	color: var(--white);
}

.footer-credit {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
	flex: 1;
	text-align: center;
}

.footer-social {
	display: flex;
	gap: calc(var(--spacing-unit) * 1);
}

.social-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--red-accent);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-icon:hover {
	background-color: var(--white);
	color: var(--red-accent);
	transform: scale(1.1);
}

.social-icon svg {
	width: 20px;
	height: 20px;
}

/* ============================================
   Sidebar
   ============================================ */
.widget-area {
	padding: calc(var(--spacing-unit) * 2);
}

.widget {
	margin-bottom: calc(var(--spacing-unit) * 3);
}

.widget-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: calc(var(--spacing-unit) * 1);
	color: var(--primary-color);
}

/* ============================================
   Utilities
   ============================================ */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: var(--white);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: var(--text-color);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
		color: var(--white);
	}

	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		padding: calc(var(--spacing-unit) * 2);
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
		background-color: rgba(26, 26, 26, 0.98);
		backdrop-filter: blur(10px);
		z-index: 1000;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu a {
		color: var(--white);
		padding: calc(var(--spacing-unit) * 1) 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.nav-menu a:last-child {
		border-bottom: none;
	}

	/* Sub-menu styles for mobile */
	.nav-menu .menu-item-has-children > a::after {
		position: static;
		transform: none;
		margin-left: calc(var(--spacing-unit) * 0.5);
		display: inline-block;
		vertical-align: middle;
		transition: transform 0.3s ease;
	}

	.nav-menu .menu-item-has-children.sub-menu-open > a::after {
		transform: rotate(180deg);
	}

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background-color: transparent;
		box-shadow: none;
		padding: calc(var(--spacing-unit) * 0.5) 0 calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
		margin-top: calc(var(--spacing-unit) * 0.5);
		display: none;
		flex-direction: column;
		gap: 0;
	}

	.nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
		display: flex;
	}

	.nav-menu .sub-menu a {
		padding: calc(var(--spacing-unit) * 0.75) 0;
		font-size: 0.9rem;
		color: rgba(255, 255, 255, 0.8);
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.nav-menu .sub-menu a:hover {
		color: var(--white);
		background-color: transparent;
	}

	.nav-menu .sub-menu .current-menu-item > a::after,
	.nav-menu .sub-menu .current_page_item > a::after {
		display: none;
	}

	.nav-menu .sub-menu .current-menu-item > a,
	.nav-menu .sub-menu .current_page_item > a {
		background-color: transparent;
		color: var(--white);
		font-weight: 600;
	}

	.nav-menu .sub-menu .sub-menu {
		margin-left: calc(var(--spacing-unit) * 1.5);
		padding-left: calc(var(--spacing-unit) * 1);
	}

	.language-switcher {
		margin-left: calc(var(--spacing-unit) * 1);
	}

	.language-switcher a {
		font-size: 0.85rem;
		padding: calc(var(--spacing-unit) * 0.4) calc(var(--spacing-unit) * 0.6);
	}

	.language-switcher img {
		width: 16px;
		height: 11px;
	}

	.hero-slider {
		height: 400px;
	}

	.slide-title {
		font-size: 1.75rem;
	}

	.slide-meta {
		flex-direction: column;
		gap: calc(var(--spacing-unit) * 0.5);
	}

	.ventes-grid,
	.villages-grid {
		grid-template-columns: 1fr;
	}

	.ventes-grid.ventes-list-view .vente-item {
		flex-direction: column;
	}

	.ventes-grid.ventes-list-view .vente-thumbnail {
		width: 100%;
		height: 250px;
		margin-right: 0;
		margin-bottom: calc(var(--spacing-unit) * 2);
	}

	.ventes-grid.ventes-list-view .vente-list-content {
		padding: 0;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: calc(var(--spacing-unit) * 1);
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.footer-menu {
		flex-direction: column;
	}

	.footer-main {
		grid-template-columns: 1fr;
		gap: calc(var(--spacing-unit) * 3);
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.footer-credit {
		order: 3;
	}

	.footer-social {
		order: 2;
	}

	/* Single Vente Responsive */
	.vente-hero-image {
		height: 400px;
	}

	.vente-hero-title {
		font-size: 2rem;
	}

	.vente-list-hero-section {
		height: 400px;
	}

	.vente-details-grid {
		grid-template-columns: 1fr;
		gap: calc(var(--spacing-unit) * 3);
	}

	.vente-tabs-wrapper {
		grid-template-columns: 1fr;
	}

	#description-tab.active {
		grid-template-columns: 1fr;
		gap: calc(var(--spacing-unit) * 2);
	}

	.vente-gallery-sidebar {
		position: static;
		margin-top: calc(var(--spacing-unit) * 3);
	}

	.vente-gallery {
		max-height: none;
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.contact-form-wrapper {
		padding: calc(var(--spacing-unit) * 1);
	}

	.vente-description-content{
		width: 100%;
		margin-right: 0;
	}

	.vente-points-forts{
		width: 100%;
		margin-top: 20px;
	}

	.vente-section-title{
		font-size: 1.7rem;
	}
}

/* ============================================
   404 Error Page Styles - Modern Design
   ============================================ */
.page-404 {
	padding: 0;
	background-color: var(--white);
}

/* Hero Section for 404 - Modern */
.error-404-hero-section {
	position: relative;
	width: 100%;
	height: 70vh;
	min-height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-404-hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.1);
	}
}

.error-404-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.5) 100%);
	z-index: 1;
}

.error-404-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-404-hero-inner {
	text-align: center;
	color: var(--white);
	animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animated 404 Number in Hero */
.error-404-number-hero {
	margin-bottom: calc(var(--spacing-unit) * 2);
}

.error-number-hero {
	font-size: clamp(6rem, 15vw, 18rem);
	font-weight: 700;
	color: var(--white);
	line-height: 1;
	margin: 0;
	font-family: var(--font-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	justify-content: center;
	gap: 0.1em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.error-digit {
	display: inline-block;
	animation: bounceIn 0.8s ease-out;
	animation-fill-mode: both;
}

.error-digit:nth-child(1) {
	animation-delay: 0.1s;
}

.error-digit:nth-child(2) {
	animation-delay: 0.2s;
}

.error-digit:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3) translateY(-50px);
	}
	50% {
		opacity: 1;
		transform: scale(1.1);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

/* Error Message in Hero */
.error-404-message-hero {
	margin: calc(var(--spacing-unit) * 2) 0;
}

.error-title-hero {
	font-size: clamp(1.5rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--white);
	margin-bottom: calc(var(--spacing-unit) * 1);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-primary);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-description-hero {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Main Content Section */
.error-404-content-section {
	padding: calc(var(--spacing-unit) * 8) 0;
	background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
}

.error-404-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

/* Modern Search Section */
.error-404-search-modern {
	position: relative;
	max-width: 600px;
	margin: 0 auto calc(var(--spacing-unit) * 6);
	background: var(--white);
	border-radius: 16px;
	padding: calc(var(--spacing-unit) * 2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 1.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-404-search-modern:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.search-icon-wrapper {
	color: var(--primary-color);
	flex-shrink: 0;
	opacity: 0.6;
}

.error-404-search-modern .search-form {
	flex: 1;
	display: flex;
	gap: calc(var(--spacing-unit) * 1);
}

.error-404-search-modern .search-field {
	flex: 1;
	padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.5);
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: all 0.3s ease;
	background: transparent;
}

.error-404-search-modern .search-field:focus {
	outline: none;
	border-color: var(--red-accent);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-404-search-modern .search-submit {
	padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5);
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--red-accent) 100%);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.error-404-search-modern .search-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* Quick Actions - Modern Cards */
.error-404-actions {
	margin-bottom: calc(var(--spacing-unit) * 6);
}

.error-actions-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: calc(var(--spacing-unit) * 3);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-primary);
}

.error-actions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: calc(var(--spacing-unit) * 3);
}

.error-action-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: calc(var(--spacing-unit) * 3);
	background: var(--white);
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 2px solid transparent;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
}

.error-action-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.error-action-card:hover::before {
	left: 100%;
}

.error-action-card:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--red-accent);
	box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
}

.action-card-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--red-accent) 100%);
	border-radius: 16px;
	margin-bottom: calc(var(--spacing-unit) * 2);
	color: var(--white);
	transition: transform 0.3s ease;
}

.error-action-card:hover .action-card-icon {
	transform: rotate(5deg) scale(1.1);
}

.action-card-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: calc(var(--spacing-unit) * 0.5);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-primary);
}

.action-card-description {
	font-size: 0.875rem;
	color: var(--secondary-color);
	line-height: 1.5;
	margin: 0;
}

/* Modern Back Button */
.error-404-back-modern {
	text-align: center;
	margin-top: calc(var(--spacing-unit) * 4);
}

.error-back-button-modern {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 1);
	padding: 10px 20px;
	background: var(--white);
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-primary);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.error-back-button-modern svg {
	transition: transform 0.3s ease;
}

.error-back-button-modern:hover {
	background: var(--primary-color);
	color: var(--white);
	transform: translateX(-5px);
	box-shadow: 0 6px 20px rgba(26, 26, 26, 0.3);
}

.error-back-button-modern:hover svg {
	transform: translateX(-3px);
}

/* Responsive - 404 Page */
@media (max-width: 1024px) {
	.error-404-hero-section {
		height: 100vh;
		min-height: 100vh;
	}

	.error-actions-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.error-404-hero-section {
		height: 100vh;
		min-height: 100vh;
	}

	.error-404-content-section {
		padding: calc(var(--spacing-unit) * 5) 0;
	}

	.error-404-search-modern {
		flex-direction: column;
		padding: calc(var(--spacing-unit) * 2);
	}

	.error-404-search-modern .search-form {
		width: 100%;
		flex-direction: column;
	}

	.error-404-search-modern .search-submit {
		width: 100%;
	}

	.error-actions-grid {
		grid-template-columns: 1fr;
		gap: calc(var(--spacing-unit) * 2);
	}

	.error-action-card {
		padding: calc(var(--spacing-unit) * 2.5);
	}
}

@media (max-width: 480px) {
	.error-404-hero-section {
		height: 100vh;
		min-height: 100vh;
	}

	.error-number-hero {
		font-size: 8rem;
	}

	.error-title-hero {
		font-size: 1.5rem;
	}

	.error-description-hero {
		font-size: 0.875rem;
	}

	.error-404-search-modern {
		padding: calc(var(--spacing-unit) * 1.5);
	}

	.error-actions-title {
		font-size: 1.25rem;
	}

	.action-card-icon {
		width: 56px;
		height: 56px;
	}

	.error-back-button-modern {
		padding: 5px 10px;
		font-size: 0.875rem;
	}
}

