/*
Theme Name: hammami-theme
Theme URI: https://guilhemdelachapelle.com/hammami-theme/
Description: Hello Elementor child theme for hammami-theme
Author: Guilhem Delachapelle
Author URI: https://guilhemdelachapelle.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hammami-theme
*/

:root {
	/* Colors */
	--color-f2ede7: #F2EDE7;
	--color-f9f7f4: #F9F7F4;
	--color-1f1e1d: #1F1E1D;
	--color-accent: #a38b7a;

	/* Elementor color overrides */
	--e-global-color-primary: #a38b7a;
	--e-global-color-secondary: #a38b7a;
	--e-global-color-text: #1F1E1D;
	--e-global-color-accent: #a38b7a;

	/* Typography */
	--font-main: "Times New Roman", Times, serif;
}

/* Override Elementor red links */
a,
.entry-content a,
.elementor-widget-text-editor a,
.elementor a {
	color: var(--color-accent);
}

a:hover,
.entry-content a:hover,
.elementor-widget-text-editor a:hover,
.elementor a:hover {
	color: var(--color-accent);
	opacity: 0.75;
}

a:focus,
.entry-content a:focus,
.elementor-widget-text-editor a:focus,
.elementor a:focus {
	color: var(--color-accent);
	opacity: 0.75;
}

@media (max-width: 991px) {
	body {
		overflow-x: hidden;
	}
}

/* Apply font to all text elements */
*,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
blockquote,
input,
button,
textarea,
select {
	font-family: var(--font-main) !important;
}

/* Empêche tout débordement horizontal global */
html {
	overflow-x: hidden;
	max-width: 100%;
}

/* Home Page Styles */
body.home {
	overflow: hidden;
	height: 100vh;
}

body.home #page {
	overflow: hidden;
	height: 100vh;
	min-height: unset;
}

.home-page {
	overflow: hidden;
	max-width: 100vw !important;
	max-height: 100vh!important;
	padding-inline-end: 0px!important;
	padding-inline-start: 0px!important;
}

.home-hero {
	position: relative;
	width: 100vw;
	height: 100vh;
}

/* Gradient d'assombrissement sur la home */
.home-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right,
			rgba(0, 0, 0, 0.55) 0%,
			rgba(0, 0, 0, 0.2) 50%,
			rgba(0, 0, 0, 0) 100%);
	z-index: 5;
	pointer-events: none;
}

/* Home sidebar — même structure que .sidebar-header, en absolu blanc */
.home-sidebar {
	position: absolute;
	top: 0;
	left: 0;
	width: 25%;
	height: 100%;
	z-index: 11;
	display: flex;
	padding: 50px;
	box-sizing: border-box;
}

.home-sidebar .site-logo img {
	filter: brightness(0) invert(1);
}

.home-sidebar .main-navigation ul li a,
.home-sidebar .legal-navigation ul li a,
.home-sidebar .copyright p {
	color: #fff;
}

.home-sidebar .sub-menu-toggle .chevron {
	border-right-color: #fff;
	border-bottom-color: #fff;
}

/* Swiper Slider */
.main-slider {
	width: 100%;
	height: 100%;
}

.swiper-slide {
	width: 100%;
	height: 100%;
}

.slide-bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Fade Transition fix */
.swiper-fade .swiper-slide {
	pointer-events: none;
	transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
	pointer-events: auto;
}

/* Override Elementor container padding causing mobile overflow */
.e-con,
.elementor-section,
.elementor-section>.elementor-container {
	--padding-left: 0px;
	--padding-right: 0px;
	padding-inline-start: var(--padding-left) !important;
	padding-inline-end: var(--padding-right) !important;
}

/* Override Hello Elementor max-width constraints */
.site-header,
.site-header:not(.dynamic-header),
.site-main,
body:not([class*=elementor-page-]) .site-main {
	max-width: none !important;
	width: auto !important;
	margin-inline-start: 0 !important;
	margin-inline-end: 0 !important;
}

/* Grid Layout for Internal Pages */
#page {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	min-height: 100vh;
}

/* Sidebar Styles */
.sidebar-header {
	width: 25%;
	flex-shrink: 0;
	height: 100vh;
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	padding: 50px;
	box-sizing: border-box;
}

/* Layout Fixes (Overriding Parent Theme Constraints) */
.main-with-sidebar,
.main-with-sidebar .site-main {
	max-width: none !important;
	width: auto !important;
}

.main-with-sidebar {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
}

.sidebar-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	width: 100%;
}

/* Sidebar Top Navigation */
.sidebar-top {
	display: flex;
	flex-direction: column;
}

.site-logo img {
	max-width: 250px;
	height: auto;
	margin-bottom: 40px;
}

.main-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.main-navigation ul li {
	margin-bottom: 5px;
	position: relative;
}

.main-navigation ul li a {
	color: var(--color-1f1e1d);
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: capitalize;
	display: inline-block;
}

/* Sub-menus hidden by default */
.main-navigation ul.sub-menu {
	display: none;
	padding-left: 20px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.main-navigation ul.sub-menu li a {
	font-size: 0.95rem;
	font-weight: normal;
	opacity: 0.8;
}

/* Toggle Chevron */
.sub-menu-toggle {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 10px;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
}

.sub-menu-toggle .chevron {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--color-1f1e1d);
	border-bottom: 2px solid var(--color-1f1e1d);
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.3s ease;
}

.is-open>.sub-menu-toggle .chevron {
	transform: translate(-50%, -30%) rotate(-135deg);
}

/* Page Grid (Two-Column Layout) */
.page-grid {
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

.page-image-col {
	flex: 0 0 45%;
	max-width: 450px;
}

.page-image-col img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 3 / 4;
	/* Portrait aspect ratio */
}

.page-content-col {
	flex: 1;
}

.page-content-col .entry-title {
	margin-top: 0;
	margin-bottom: 30px;
	font-size: 3rem;
}

.page-content-col .entry-content p {
	font-size: 1.1rem;
	margin-bottom: 20px;
	line-height: 1.65;
}

/* Response adjustments for the grid */
@media (max-width: 1199px) {
	.page-grid {
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.page-grid {
		flex-direction: column-reverse;
	}

	.page-image-col {
		flex: none;
		width: 100%;
		max-width: none;
		margin-bottom: 30px;
	}
}

/* Sidebar Bottom Legal Menu */
.sidebar-bottom {
	display: flex;
	flex-direction: column;
}

.legal-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.legal-navigation ul li {
	margin-bottom: 5px;
}

.legal-navigation ul li a {
	color: var(--color-1f1e1d);
	text-decoration: none;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.6;
}

.copyright p {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.6;
	margin: 0;
}

/* Internal Content Styles */
.internal-content h1 {
	font-size: 4.5em;
	margin-bottom: 40px;
	font-weight: normal;
}

.internal-content {
	padding: 50px 50px;
}

.entry-content {
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 800px;
}

/* ================================================
   Menu mobile
   ================================================ */

.mobile-header,
.mobile-menu-overlay {
	display: none;
}

@media (max-width: 991px) {

	.internal-content h1 {
		font-size: 5em;
	}

	.internal-content {
		padding: 50px 24px;
	}

	.mobile-menu-overlay {
		display: flex;
	}
}

@media (max-width: 650px) {
	.internal-content h1 {
		font-size: 3em;
	}
}

@media (max-width: 400px) {
	.internal-content h1 {
		font-size: 2em;
	}
}

@media (max-width: 991px) {

	/* Barre fixe en haut */
	.mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		padding: 20px 24px;
		background-color: #fff;
		transition: background-color 0.3s ease;
	}

	.home .mobile-header {
		background-color: transparent;
	}

	/* Quand le menu est ouvert, la barre passe toujours en blanc */
	body.menu-open .mobile-header {
		background-color: #fff;
	}

	/* Logo */
	.mobile-logo {
		display: block;
	}

	.mobile-logo a,
	.mobile-logo .custom-logo-link {
		display: block;
		text-decoration: none;
	}

	.mobile-logo img,
	.mobile-logo .custom-logo {
		max-height: 36px;
		width: auto;
		display: block;
	}

	/* Si le logo est sombre, on l'inverse sur la home */
	.home .mobile-logo img {
		filter: brightness(0) invert(1);
	}

	/* Quand le menu est ouvert sur la home, logo redevient sombre */
	body.menu-open .mobile-logo img {
		filter: none;
	}

	.mobile-logo-text {
		font-size: 0.7rem;
		text-transform: uppercase;
		letter-spacing: 0.12em;
		color: var(--color-1f1e1d);
		font-weight: 500;
		line-height: 1.3;
	}

	.home .mobile-logo-text {
		color: #fff;
	}

	body.menu-open .mobile-logo-text {
		color: var(--color-1f1e1d);
	}

	/* Hamburger */
	.hamburger:focus,
	.hamburger:focus-visible,
	.hamburger:active,
	.hamburger.hover {
		background-color: transparent !important;
		outline: none !important;
		box-shadow: none !important;
	}

	.hamburger {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 24px;
		height: 15px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		flex-shrink: 0;
		z-index: 1001;
	}

	.hamburger span {
		display: block;
		width: 100%;
		height: 1px;
		background-color: var(--color-1f1e1d);
		transition: transform 0.3s ease, opacity 0.3s ease;
		transform-origin: center;
	}

	.home .hamburger span {
		background-color: #fff;
	}

	/* Quand le menu est ouvert, hamburger toujours sombre */
	body.menu-open .hamburger span {
		background-color: var(--color-1f1e1d);
	}

	.hamburger.is-active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.hamburger.is-active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.is-active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Overlay pleine page */
	.mobile-menu-overlay {
		position: fixed;
		inset: 0;
		z-index: 999;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 100px 40px 50px;
		box-sizing: border-box;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.3s ease, transform 0.3s ease;
		overflow-y: auto;
	}

	.mobile-menu-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	body.menu-open {
		overflow: hidden;
	}

	/* Supprime tout background Elementor dans l'overlay */
	.mobile-menu-overlay a,
	.mobile-menu-overlay a:hover,
	.mobile-menu-overlay a:focus,
	.mobile-menu-overlay a:active,
	.mobile-menu-overlay button,
	.mobile-menu-overlay button:hover,
	.mobile-menu-overlay button:focus,
	.mobile-menu-overlay button:active {
		background-color: transparent !important;
		box-shadow: none !important;
		outline: none !important;
	}

	/* Nav principale dans l'overlay */
	.mobile-menu-nav #mobile-primary-menu {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mobile-menu-nav #mobile-primary-menu>li {
		border-bottom: 1px solid rgba(31, 30, 29, 0.08);
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.mobile-menu-nav #mobile-primary-menu>li>a {
		flex: 1;
		padding: 20px 0;
		font-size: 1.5rem;
		color: var(--color-1f1e1d) !important;
		text-decoration: none;
		text-transform: capitalize;
	}

	.mobile-menu-nav #mobile-primary-menu>li>a:hover,
	.mobile-menu-nav #mobile-primary-menu>li>a:focus,
	.mobile-menu-nav #mobile-primary-menu>li>a:active {
		color: var(--color-1f1e1d) !important;
		background-color: transparent !important;
		opacity: 0.6;
	}

	.mobile-menu-nav #mobile-primary-menu>li>.sub-menu-toggle {
		padding: 20px 4px;
	}

	/* Le sous-menu occupe toute la largeur */
	.mobile-menu-nav #mobile-primary-menu>li>.sub-menu {
		flex-basis: 100%;
	}

	/* Sous-menus cachés par défaut dans l'overlay */
	.mobile-menu-nav .sub-menu {
		display: none;
		list-style: none;
		padding: 0 0 14px 0;
		margin: 0;
	}

	.mobile-menu-nav .menu-item-has-children.is-open>.sub-menu {
		display: block;
	}

	.mobile-menu-nav .sub-menu li a {
		display: block;
		padding: 10px 0 10px 16px;
		font-size: 1rem;
		color: var(--color-1f1e1d) !important;
		text-decoration: none;
		opacity: 0.6;
	}

	.mobile-menu-nav .sub-menu li a:hover,
	.mobile-menu-nav .sub-menu li a:focus,
	.mobile-menu-nav .sub-menu li a:active {
		color: var(--color-1f1e1d) !important;
		opacity: 0.4;
	}

	/* Chevron dans l'overlay */
	.mobile-menu-nav .sub-menu-toggle .chevron {
		border-right-color: var(--color-1f1e1d);
		border-bottom-color: var(--color-1f1e1d);
	}

	/* Bas de l'overlay */
	.mobile-menu-bottom {
		border-top: 1px solid rgba(31, 30, 29, 0.12);
		padding-top: 24px;
		margin-top: 30px;
	}

	.mobile-menu-legal #mobile-legal-menu {
		list-style: none;
		margin: 0 0 10px;
		padding: 0;
		display: flex;
		gap: 20px;
		flex-wrap: wrap;
	}

	.mobile-menu-legal #mobile-legal-menu li a {
		font-size: 0.65rem;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: var(--color-1f1e1d) !important;
		text-decoration: none;
		opacity: 0.45;
	}

	.mobile-menu-legal #mobile-legal-menu li a:hover,
	.mobile-menu-legal #mobile-legal-menu li a:active {
		color: var(--color-1f1e1d) !important;
	}

	.mobile-menu-copyright {
		font-size: 0.65rem;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		opacity: 0.35;
		margin: 0;
		color: var(--color-1f1e1d);
	}

	/* Masquer les sidebars desktop */
	.sidebar-header,
	.home-sidebar {
		display: none !important;
	}

	/* Décaler le contenu sous la barre mobile */

	.home-page {
		padding-top: 0;
	}

	.home-hero {
		height: 100svh;
	}

	/* Sur mobile, gradient du haut vers le bas */
	.home-hero::after {
		background: linear-gradient(to bottom,
				rgba(0, 0, 0, 0.55) 0%,
				rgba(0, 0, 0, 0.15) 50%,
				rgba(0, 0, 0, 0) 100%);
	}
}

/* Mobile Adjustments */
@media (max-width: 991px) {
	#page {
		flex-direction: column;
	}

	.main-with-sidebar {
		width: 100%;
		padding: 100px 0px 0px 0px;
	}

	.sidebar-inner {
		justify-content: flex-start;
	}

	.sidebar-bottom {
		margin-top: 30px;
	}
}

/* Category Hero Styles */
.cat-hero {
	padding: 50px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cat-hero-inner {
	max-width: 800px;
	width: 100%;
}

.cat-hero-top {
	display: grid;
	grid-template-columns: 1fr;
	place-items: center;
	margin-bottom: 50px;
}

.cat-hero-image {
	grid-area: 1 / 1;
	width: 100%;
	max-width: 450px;
}

.cat-hero-image img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.cat-hero-title {
	grid-area: 1 / 1;
	position: relative;
	z-index: 5;
	font-size: clamp(1.8rem, 5vw, 5rem);
	font-weight: normal;
	color: var(--color-1f1e1d);
	width: 100%;
	text-align: center;
	margin: 0;
	padding: 0 20px;
	align-self: center;
}

.cat-hero-title.no-image {
	grid-area: unset;
	margin-bottom: 30px;
	font-size: clamp(2rem, 5vw, 4rem);
}

.cat-hero-description {
	margin-bottom: 40px;
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.7;
	color: var(--color-1f1e1d);
}

.cat-hero-action {
	margin-top: 20px;
}

.cat-description-2 {
	margin-top: 2em;
}

/* Button Styles */
.btn-outline {
	display: inline-block;
	padding: 15px 40px;
	border: 1px solid #d4c4b5;
	/* Soft brown border from screenshot */
	color: #a38b7a;
	/* Muted brown text */
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 2px;
	transition: all 0.3s ease;
	background: transparent;
}

.btn-outline:hover {
	background-color: #a38b7a;
	color: #fff;
}

/* ---- Responsive category ---- */
@media (max-width: 991px) {
	.cat-hero {
		padding: 30px 0;
	}

	/* Image héro pleine largeur sur mobile */
	.cat-hero-image {
		max-width: 100%;
	}

	.cat-hero-inner {
		padding: 0 24px;
	}

	.service-accordion-container {
		padding: 60px 0;
		margin-top: 40px;
	}

	/* Image de fond des accordéons pleine largeur */
	.service-background-image {
		width: 80% !important;
		max-width: 80% !important;
		left: 0;
		transform: none;
	}

	.service-accordion {
		padding: 0 24px;
	}

	.accordion-header {
		padding: 24px 0;
	}

	.cat-services {
		padding: 20px 0;
	}

	.service-section {
		margin-top: 3em;
		margin-bottom: 3em;
	}

	.service-header {
		margin-bottom: 30px;
	}
}


/* Category Services Styles */
.cat-services {
	padding: 50px 0;
}

.service-section {
	margin-top: 5em;
	margin-bottom: 5em;
}

.service-header {
	text-align: center;
	margin-bottom: 60px;
}

.service-title-main {
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	margin-bottom: 40px;
	font-family: inherit;
}

.service-intro {
	max-width: 900px;
	margin: 0 auto;
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--color-1f1e1d);
}

.service-accordion-container {
	position: relative;
	padding: 150px 0;
	margin-top: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.service-background-image {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 50%;
	/* Change this to adjust how much the accordion "exceeds" */
	max-width: 600px;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
	opacity: 0.15;
	/* More subtle, adjusted for "over" look */
}

/* Semi-transparent background overlay effect removed or adjusted */
.service-accordion-container::before {
	display: none;
}

.service-accordion {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1000px;
	/* Wider than the image */
	margin: 0 auto;
}

.accordion-item {
	border-bottom: 1px solid #1f1e1d;
}

.accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 40px 0;
	cursor: pointer;
}

.accordion-title-wrapper {
	display: flex;
	align-items: center;
}

.accordion-title {
	font-size: clamp(1.3rem, 2.5vw, 1.5rem);
	margin: 0;
	font-weight: normal;
}

.accordion-action {
	display: flex;
	align-items: center;
	margin-left: 2em;
}

.plus-icon {
	font-size: 3.5rem;
	font-weight: 100;
	/* Extra thin */
	color: #a38b7a;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1;
}

.accordion-item.is-active .plus-icon {
	transform: rotate(45deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.accordion-content-inner {
	padding: 0 0 30px 0;
	font-size: 1.1rem;
	line-height: 1.65;
}

/* Hide header and footer on home page (sidebar géré dans front-page.php) */
.home .site-header,
.home .site-footer {
	display: none;
}

/* Dark footer (pages internes, hors contact et home) */
.site-footer--dark {
	background-color: var(--color-1f1e1d);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	color: #fff;
	margin-top: 5em;
	padding: 80px 100px;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.site-footer--dark.has-bg-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(31, 30, 29, 0.75);
	z-index: 0;
}

.site-footer--dark .footer-inner {
	display: flex;
	gap: 80px;
	align-items: center;
}

.site-footer--dark.has-bg-image .footer-inner {
	position: relative;
	z-index: 1;
}

.footer-contact-block {
	flex: 0 0 auto;
	min-width: 260px;
}

.footer-form {
	flex: 1;
	min-width: 0;
}

@media (max-width: 1300px) {
	.site-footer--dark .footer-inner {
		flex-direction: column;
		gap: 40px;
		align-items: flex-start;
	}
}

.footer-contact-heading {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: normal;
	color: #fff;
	margin: 0 0 50px 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.footer-columns {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
}

.footer-col {
	flex: 1;
	min-width: 150px;
}

.footer-col-title {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.5;
	margin: 0 0 12px 0;
}

.footer-col-content {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #fff;
	margin: 0;
	opacity: 0.85;
}

@media (max-width: 991px) {

	/* Footer 100vw — échappe au padding du .main-with-sidebar */
	.site-footer--dark {
		width: 100vw !important;
		margin-left: calc(-30px);
		margin-right: calc(-30px);
		padding: 60px 30px;
		min-height: auto;
	}

	.footer-columns {
		flex-direction: column;
		gap: 24px;
	}
}

/* Contact page */
.contact-page {
	background-color: var(--color-1f1e1d);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	color: #fff;
	min-height: 100vh;
	display: flex;
	align-items: stretch;
}

.contact-page-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(31, 30, 29, 0.75);
	z-index: 0;
}

.contact-page-inner {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 80px;
	align-items: center;
	padding: 80px 100px;
	width: 100%;
	box-sizing: border-box;
}


@media (max-width: 1200px) {
	.contact-page-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 40px;
	}
}

@media (max-width: 991px) {
	.contact-page-inner {
		padding: 60px 30px;
	}
}

/* Grille d'articles (category + single) */
.posts-grid-section {
	padding: 80px 100px;
}

.posts-grid-heading {
	text-align: center;
	font-size: 1.8rem;
	font-weight: normal;
	margin-bottom: 50px;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

@media (max-width: 1400px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 1200px) {
	.posts-grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 30px;
	}
}

.post-card {
	text-decoration: none;
	color: var(--color-1f1e1d);
	display: block;
}

.post-card-thumb {
	overflow: hidden;
	margin-bottom: 16px;
}

.post-card-thumb img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
	transform: scale(1.03);
}

.post-card-title {
	font-size: 0.95rem;
	line-height: 1.5;
	text-align: center;
	margin: 0;
}

@media (max-width: 991px) {
	.posts-grid-section {
		padding: 50px 24px;
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Single article */
.single-article {
	padding: 60px 100px;
}

.single-article-body {
	max-width: 720px;
	margin: 0 auto;
}

/* Titre */
.single-article-header {
	margin-bottom: 50px;
}

.single-article-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: normal;
	line-height: 1.35;
}

/* Image à la une — déborde comme les images du corps */
.single-article-featured {
	width: calc(100% + 160px);
	margin-left: -80px;
	margin-right: -80px;
	margin-bottom: 50px;
}

.single-article-featured img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 991px) {
	.single-article-featured {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Corps de l'article */
.single-article-content p {
	font-size: 1rem;
	line-height: 1.8;
	margin-bottom: 1.6em;
}

/* Images dans le contenu — débordent de la colonne de texte */
.single-article-content img,
.single-article-content figure {
	width: calc(100% + 160px);
	max-width: none;
	margin-left: -80px;
	margin-right: -80px;
	height: auto;
	display: block;
	margin-top: 50px;
	margin-bottom: 50px;
}

.single-article-content figure img {
	width: 100%;
	margin: 0;
}

.single-article-content figcaption {
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.55;
	margin-top: 10px;
}

/* Citations */
.single-article-content blockquote {
	margin: 60px 0;
	padding: 0;
	border: none;
	text-align: center;
}

.single-article-content blockquote p {
	font-size: 1.5rem;
	line-height: 1.5;
	font-style: italic;
	margin-bottom: 0;
}

.single-article-content blockquote cite {
	display: block;
	margin-top: 16px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.55;
	font-style: normal;
}

@media (max-width: 991px) {
	.single-article {
		padding: 30px 24px;
	}

	.single-article-body {
		max-width: 100%;
	}

	.single-article-content img,
	.single-article-content figure {
		width: 100vw;
		margin-left: calc(-24px);
		margin-right: calc(-24px);
	}

	.single-article-content blockquote p {
		font-size: 1.2rem;
	}
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

/* ── Fade-in global à la page ── */
body {
	opacity: 0;
	transition: opacity 0.45s ease;
}
body.page-loaded {
	opacity: 1;
}

/* ── Scroll : état initial caché ── */
.anim-fade-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Hover boutons ── */
.btn-outline {
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-outline:hover {
	transform: translateY(-2px);
}

/* ── Home sidebar : glisse depuis la gauche ── */
@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.anim-slide-left {
	opacity: 0;
	animation: slideInLeft 0.6s ease forwards;
}

/* ── Home : Ken Burns sur les slides ── */
@keyframes kenBurns {
	from { transform: scale(1); }
	to   { transform: scale(1.07); }
}

.swiper-slide.swiper-slide-active .slide-bg {
	animation: kenBurns 8s ease forwards;
}