/* @GLOBAL */

/* @NAVIGATION */
.navbar {
    background-color: rgba(251, 248, 241, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(143, 58, 30, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-item {
    color: #2C3E50;
    font-weight: 300;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: #8F3A1E;
    background-color: transparent;
}

.navbar-brand .navbar-item {
    padding: 0.5rem 1rem;
}

.navbar-menu {
    box-shadow: none;
}

.navbar-burger {
    color: #2C3E50;
}

.navbar-burger:hover {
    background-color: transparent;
}

/* @GLOBAL */

@font-face {
    font-family: 'LibreFranklin';
    src: url('/assets/styles/fonts/Static/LibreFranklin-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LibreFranklin';
    src: url('/assets/styles/fonts/Static/LibreFranklin-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LibreFranklin';
    src: url('/assets/styles/fonts/Static/LibreFranklin-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LibreFranklin';
    src: url('/assets/styles/fonts/Static/LibreFranklin-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

* {
    text-decoration: none;
}

html,
body {
    font-family: 'LibreFranklin', sans-serif;
    overflow-x: hidden;
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 3.25rem;
}

/*
body {
    background: url(/assets/storage/page/X11.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
*/

.celipte {
    color: #ff4d4d;
	font-weight: bold;
}

img, a {
    -webkit-user-drag: none; /* Spécifique à WebKit (Chrome, Safari) */
    -khtml-user-drag: none; /* Pour Konqueror */
    -moz-user-drag: none; /* Pour Firefox */
    -o-user-drag: none; /* Pour Opera */
    user-drag: none; /* Standard (futur) */
}

/* @PAGES */


.bg-main { background-color: #FBF8F1 !important; }
.bg-highlight-1 { background-color: #8F3A1E !important; }
.bg-highlight-2 { background-color: #48542C !important; }
.text-main { color: #2C3E50; }
.text-highlight-1 { color: #8F3A1E !important; }
.text-highlight-2 { color: #48542C !important; }
.text-light { color: #FBF8F1; }

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.stagger {
    transition-delay: 0s;
}

.stagger:nth-child(2) { transition-delay: 0.1s; }
.stagger:nth-child(3) { transition-delay: 0.2s; }
.stagger:nth-child(4) { transition-delay: 0.3s; }
.stagger:nth-child(5) { transition-delay: 0.4s; }

/* @SIGNATURE ANIMATION */
:root {
	/* Couleur et épaisseur du trait (peut être une variable CSS de ton design system) */
	--sig-color: #8F3A1E;
	--sig-stroke-width: 3; /* ajuste selon le rendu souhaité */
	--sig-fill-color: #8F3A1E; 
	--sig-draw-duration: 2.2s; /* durée par défaut si JS indisponible */
	--sig-fill-delay: 0s;     /* sera mis à jour par JS pour caler le fondu */
}

.sig-wrap {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	cursor: pointer; /* cliquer rejoue l'animation */
	user-select: none;
}

.sig-wrap svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Le path tracé (contour animé) */
#sig-stroke {
	fill: none;
	stroke: var(--sig-color);
	stroke-width: var(--sig-stroke-width);
	stroke-linecap: round;
	stroke-linejoin: round;
	/* valeurs initiales mises par JS pour une animation parfaite :
	   stroke-dasharray + stroke-dashoffset = longueur totale */
	animation: draw var(--sig-draw-duration) ease-in-out forwards;
}

/* Le path rempli (apparition en fondu après le tracé) */
#sig-fill {
	fill: var(--sig-fill-color);
	opacity: 0;
	animation: fillIn 400ms ease-out forwards;
	animation-delay: var(--sig-fill-delay);
}

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	#sig-stroke, #sig-fill {
		animation: none !important;
		opacity: 1 !important;
		stroke-dasharray: none !important;
		stroke-dashoffset: 0 !important;
	}
}

@keyframes draw {
	from { stroke-dashoffset: var(--sig-dashoffset, 0); }
	to   { stroke-dashoffset: 0; }
}

@keyframes fillIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* @IMAGES */
/* Fix pour le positionnement des images avec animations */
.image {
	position: relative;
	overflow: hidden;
	display: block;
}

.image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
}

/* Corriger les proportions des images */
.image.is-square {
	aspect-ratio: 1 / 1;
}

.image.is-4by3 {
	aspect-ratio: 4 / 3;
}

.image.is-16by9 {
	aspect-ratio: 16 / 9;
}

.image.is-128x128 {
	width: 128px;
	height: 128px;
}

/* Empêcher que les animations d'apparition affectent le positionnement des images */
.slide-left, .slide-right, .scale-in, .fade-in {
	transform-origin: center;
}

/* S'assurer que les transformations des animations ne cassent pas les images */
.slide-left.is-visible, .slide-right.is-visible, .scale-in.is-visible {
	transform: none !important;
}

/* Fix spécifique pour les images avec animations */
.image.slide-left, .image.slide-right, .image.scale-in, .image.fade-in {
	will-change: transform, opacity;
}

.image.slide-left.is-visible, .image.slide-right.is-visible, .image.scale-in.is-visible, .image.fade-in.is-visible {
	will-change: auto;
}

/* Empêcher que les images disparaissent lors du scroll */
.image img {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

/* S'assurer que les images restent visibles après animation */
.image.is-visible img {
	opacity: 1 !important;
	visibility: visible !important;
}

/* @PARALLAX */
/* Styles pour l'image parallax */
.parallax-image {
	display: block;
	transition: transform 0.1s ease-out;
	will-change: transform;
	width: 100%;
	max-width: 600px;
	height: auto;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
	.parallax-image {
		max-width: 100%;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.parallax-image {
		max-width: 100%;
		width: 100%;
	}
}

/* @CHALLENGES SECTION */
.challenges-visual {
	position: relative;
	overflow: hidden;
}

.challenges-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.challenge-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	border-radius: 5px;
	transition: background 0.3s ease;
}

.challenge-item:hover {
	background: rgba(255, 255, 255, 0.9);
}

.challenge-number {
	font-size: 2.5rem;
	font-weight: 300;
	color: #8F3A1E;
	opacity: 0.3;
	line-height: 1;
	min-width: 70px;
}

.challenge-content {
	flex: 1;
	padding-top: 0.5rem;
}

.challenge-content p {
	margin: 0;
	line-height: 1.7;
	text-align: left;
}

/* Responsive pour les challenges */
@media (max-width: 768px) {
	.challenges-list {
		gap: 1rem;
	}
	
	.challenge-item {
		padding: 1.5rem;
		gap: 1rem;
	}
	
	.challenge-number {
		font-size: 2rem;
		min-width: 50px;
	}
	
	.challenge-content p {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.challenge-item {
		padding: 1.25rem;
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}
	
	.challenge-number {
		font-size: 1.75rem;
		min-width: auto;
	}
	
	.challenge-content p {
		font-size: 0.95rem;
	}
}

/* @MODERN EXPERTISE SECTION */
#expertise-section {
	position: relative;
	overflow: hidden;
}

/* Navigation Pills */
.expertise-nav {
	margin-bottom: 4rem;
}

.expertise-pills {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.expertise-pill {
	background: transparent;
	border: 2px solid #8F3A1E;
	color: #8F3A1E;
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	font-weight: 300;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	letter-spacing: 0.5px;
}

.expertise-pill::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(143, 58, 30, 0.1), transparent);
	transition: left 0.6s ease;
}

.expertise-pill:hover::before {
	left: 100%;
}

.expertise-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(143, 58, 30, 0.15);
}

.expertise-pill.active {
	background: #8F3A1E;
	color: #FBF8F1;
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(143, 58, 30, 0.3);
}

/* Cards Container */
.expertise-container {
	position: relative;
	min-height: 600px;
	perspective: 1000px;
}

.expertise-card {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 5px;
	border: 1px solid rgba(143, 58, 30, 0.1);
	overflow: hidden;
	min-height: 500px;
	display: flex;
	flex-direction: column;
}

.expertise-card.active {
	opacity: 1;
	transform: scale(1);
	position: relative;
}

/* Abstract Background Shapes */
.card-abstract-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.abstract-shape {
	position: absolute;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(143, 58, 30, 0.05), rgba(72, 84, 44, 0.05));
}

.abstract-shape.shape-3 {
	width: 120px;
	height: 120px;
	bottom: 30px;
	right: 20px;
	background: none;
	border-radius: 50%;
	overflow: hidden;
}

.abstract-shape.shape-3 img,
.abstract-shape.shape-3 svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	filter: grayscale(100%);
}


/* Card Image */
.card-image-modern {
	position: relative;
	z-index: 2;
	height: 250px;
	overflow: hidden;
	border-radius: 5px 5px 0 0;
}

.card-image-modern img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}


/* Card Content */
.card-content-modern {
	position: relative;
	z-index: 2;
	padding: 2.5rem 2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-title {
	font-size: 1.75rem;
	font-weight: 400;
	color: #2C3E50;
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.card-description {
	font-size: 1.1rem;
	color: #2C3E50;
	font-weight: 300;
	line-height: 1.6;
	margin-bottom: 2rem;
	opacity: 0.8;
}

.card-list {
	list-style: none;
	padding: 0;
	margin: 0;
	flex: 1;
}

.card-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	color: #2C3E50;
	line-height: 1.5;
	opacity: 0.9;
}

.card-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 6px;
	height: 6px;
	background: linear-gradient(135deg, #8F3A1E, #48542C);
	border-radius: 50%;
	transform: scale(0);
	animation: bulletAppear 0.3s ease forwards;
}

.card-list li:nth-child(1)::before { animation-delay: 0.1s; }
.card-list li:nth-child(2)::before { animation-delay: 0.2s; }
.card-list li:nth-child(3)::before { animation-delay: 0.3s; }
.card-list li:nth-child(4)::before { animation-delay: 0.4s; }

.box.has-background-white-bis.text-main {
    border-radius: 5px;
}

@keyframes bulletAppear {
	to { transform: scale(1); }
}

.footer-watermark {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 1rem;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	color: #FBF8F1;
	font-size: 0.85rem;
	opacity: 0.7;
	line-height: 1.6;
	z-index: 1;
	pointer-events: none;
	white-space: nowrap;
}

.footer-watermark a {
	color: #FBF8F1;
	text-decoration: none;
	pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.expertise-container {
		min-height: 650px;
	}
	
	.card-image-modern {
		height: 220px;
	}
	
	.card-content-modern {
		padding: 2rem 1.75rem;
	}
}

@media (max-width: 768px) {
	.expertise-pills {
		gap: 0.5rem;
	}
	
	.expertise-pill {
		padding: 0.6rem 1.2rem;
		font-size: 0.8rem;
	}
	
	.expertise-container {
		min-height: 700px;
	}
	
	.expertise-card {
		min-height: 650px;
	}
	
	.card-image-modern {
		height: 200px;
	}
	
	.card-content-modern {
		padding: 1.75rem 1.5rem;
	}
	
	.card-title {
		font-size: 1.5rem;
		margin-bottom: 1.25rem;
	}
	
	.card-description {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}
	
	.card-list li {
		font-size: 0.9rem;
		margin-bottom: 0.875rem;
	}
}

@media (max-width: 480px) {
	.expertise-pills {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}
	
	.expertise-pill {
		width: 100%;
		max-width: 280px;
		padding: 0.75rem 1rem;
	}
	
	.expertise-container {
		min-height: 750px;
	}
	
	.expertise-card {
		min-height: 700px;
	}
	
	.card-image-modern {
		height: 180px;
	}
	
	.card-content-modern {
		padding: 1.5rem 1.25rem;
	}
	
	.card-title {
		font-size: 1.3rem;
		margin-bottom: 1rem;
	}
	
	.card-description {
		font-size: 0.95rem;
		margin-bottom: 1.25rem;
	}
	
	.card-list li {
		font-size: 0.85rem;
		margin-bottom: 0.75rem;
		padding-left: 1.25rem;
	}
	
	.abstract-shape.shape-3 {
		width: 100px;
		height: 100px;
		bottom: 20px;
		right: 15px;
	}
	
	/* Signature SVG responsive */
	.sig-wrap svg {
		max-width: 200px;
	}
}