/* ----------------------------------------------------------------
	Traboucayre - Custom CSS Overrides
-----------------------------------------------------------------*/

/* Empêcher le scroll horizontal sur mobile */
html, body {
	overflow-x: hidden;
}

/* Pas de sticky : tout scroll avec la page */
.header-wrap-clone {
	display: none !important;
}

#header,
#header #header-wrap {
	position: relative !important;
}

.content-wrap.py-0 {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Police custom Papyrus */
@font-face {
	font-family: 'papyrus';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/papyrus.woff2') format('woff2');
}

/* Typographie corps : Cormorant Garamond (sauf header/nav) */
body {
	font-family: 'PT Sans', sans-serif !important;
}

p, .fbox-content p, .service-tile-text p, .heading-block span {
	font-family: 'Cormorant Garamond', serif !important;
	font-size: 17px;
}

/* ----------------------------------------------------------------
	Pages service - Hero + Galerie
-----------------------------------------------------------------*/
.service-hero-img,
[class*="service-hero"] picture,
[class*="service-hero"] picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-item {
	height: 250px;
	overflow: hidden;
	border-radius: 6px;
	cursor: pointer;
}

.gallery-item-img,
.gallery-item picture,
.gallery-item picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

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

/* Related services links */
.related-service-link {
	display: block;
	background: #fff;
	border-radius: 8px;
	text-decoration: none !important;
	transition: box-shadow 0.3s, transform 0.3s;
	font-family: 'PT Sans', sans-serif !important;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.related-service-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.related-service-link .d-flex {
	padding: 0 !important;
	gap: 0 !important;
}

.related-service-thumb {
	width: 80px;
	height: 80px;
	overflow: hidden;
	flex-shrink: 0;
}

.related-service-thumb picture,
.related-service-thumb picture img,
.related-service-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.related-service-link:hover .related-service-thumb picture img {
	transform: scale(1.1);
}

.related-service-link strong {
	display: block;
	color: #222;
	font-size: 14px;
	margin-bottom: 2px;
}

.related-service-link span {
	display: block;
	color: #999;
	font-size: 12px;
}

.related-service-link div:last-child {
	padding: 12px 16px;
}

/* Fil d'Ariane compact */
#page-title.page-title-mini {
	padding: 8px 0 !important;
}

#page-title .breadcrumb {
	font-size: 12px !important;
	font-family: 'PT Sans', sans-serif !important;
}

/* ----------------------------------------------------------------
	Lightbox custom
-----------------------------------------------------------------*/
.lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.lb-img-wrap {
	max-width: 90vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-img-wrap img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
}

.lb-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	z-index: 10001;
	line-height: 1;
	transition: opacity 0.2s;
}

.lb-close:hover { opacity: 0.7; }

.lb-prev, .lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	z-index: 10001;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	transition: background 0.2s;
	user-select: none;
}

.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-caption {
	color: rgba(255,255,255,0.7);
	font-size: 14px;
	font-family: 'PT Sans', sans-serif;
	text-align: center;
	margin-top: 15px;
	max-width: 600px;
}

.lb-counter {
	margin-left: 12px;
	color: rgba(255,255,255,0.4);
	font-size: 13px;
}

/* Footer infos pratiques en police simple */
footer p, footer a, footer li, footer span, footer div {
	font-family: 'PT Sans', sans-serif !important;
}

/* Typographie Papyrus pour les titres */
h1, h2, h3, .heading-block h2 {
	font-family: 'papyrus', 'PT Serif', fantasy !important;
}

/* Utilitaires images */
.object-fit-cover {
	object-fit: cover !important;
}

.w-100 {
	width: 100% !important;
}

.h-100 {
	height: 100% !important;
}

/* Header fond clair */
#header,
#header #header-wrap,
#header.sticky-on #header-wrap {
	background-color: #f5f5f5 !important;
	border-bottom: 1px solid #e0e0e0;
}

/* Nav links en sombre sur fond clair */
#header .menu-link {
	color: #333 !important;
}

#header .menu-link:hover {
	color: #2c3e50 !important;
}

/* Logo visible */
#header #logo img {
	max-height: 50px;
	width: auto;
}

/* Section savoir-faire fond sombre */
.col-padding[style*="1a1a1a"] h3 {
	color: #fff !important;
}

.col-padding[style*="1a1a1a"] p {
	color: #aaa !important;
}

/* Bouton devis header */
a[style*="background: #333"][style*="color: #fff"] {
	transition: all 0.3s ease !important;
}

a[style*="background: #333"][style*="color: #fff"]:hover {
	background: #2c3e50 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Boutons devis - hover */
a.button[style*="background: #222"],
a.button[style*="background: transparent"] {
	transition: all 0.3s ease !important;
}

a.button[style*="background: #222"]:hover {
	background: #2c3e50 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

a.button[style*="background: transparent"]:hover {
	background: rgba(255,255,255,0.15) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}

/* Couleur accent Traboucayre */
.button.button-color,
.button.button-color:hover {
	background-color: #2c3e50 !important;
	color: #fff !important;
	border-color: #2c3e50 !important;
}

/* Sous-menu dropdown */
.sub-menu-container {
	background-color: #fff !important;
}

.sub-menu-container .menu-link {
	color: #333 !important;
}

.sub-menu-container .menu-link:hover {
	color: #2c3e50 !important;
}

/* ----------------------------------------------------------------
	Tuiles services - Grille réalisations accueil
-----------------------------------------------------------------*/
.service-tile {
	display: block;
	text-decoration: none !important;
	transition: transform 0.3s;
}

.service-tile:hover {
	transform: translateY(-4px);
}

.service-tile-img {
	height: 180px;
	overflow: hidden;
	border-radius: 8px;
}

.service-tile-img picture,
.service-tile-img picture img,
.service-tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-tile-text {
	padding: 18px 4px 10px;
	text-align: center;
}

.service-tile-text h3 {
	font-size: 20px;
	margin: 0 0 4px;
	color: #222 !important;
	letter-spacing: 0.5px;
}

.service-tile-text p {
	font-size: 13px;
	margin: 0;
	color: #999;
}
