/* ===== Accueil styles (extraits des fichiers PHP du dossier accueil/) ===== */

/* Animations pour les effets visuels */
@keyframes cardShine {
	0% { left: -100%; }
	100% { left: 100%; }
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* Mise en page fluide 100% (sans px, em, vh) */
.cf-section .cf-header { padding: 1% 1.5% !important; }

.cf-container { display: block !important; }
.cf-container .cf-track { display:flex; gap: 2%; overflow-x:auto; scroll-snap-type:x mandatory; padding: 2% 0; -webkit-overflow-scrolling:touch; }

/* Cartes: largeurs proportionnelles + ratio visuel constant */
.cf-container .cf-card { flex: 0 0 48%; min-width: 48%; aspect-ratio: 4 / 3; position: relative; border-radius: 3%; overflow:hidden; scroll-snap-align:center; background:#fff; transform-style:preserve-3d; transition: transform .25s ease; }

/* Masquer la barre de défilement du coverflow (garder le scroll) */
.cf-container .cf-track {
	scrollbar-width: none;          /* Firefox */
	-ms-overflow-style: none;       /* IE/Edge legacy */
}
.cf-container .cf-track::-webkit-scrollbar {  /* Chrome/Safari/Edge */
	width: 0;
	height: 0;
}
.cf-container .cf-track::-webkit-scrollbar-thumb {
	background: transparent;
}

/* Effet de survol sur la carte UNIQUEMENT (aucun effet sur les éléments internes) */
.cf-card > img { transform: none !important; transition: none !important; will-change: auto; }
.cf-card > div:nth-of-type(1) { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)) !important; transition: none !important; }
@media (hover:hover) and (pointer:fine) {
	.cf-card:hover > img { transform: none !important; }
	.cf-card:hover > div:nth-of-type(1) { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)) !important; }
}

/* Navigation: tailles et positions en pourcentage */
.cf-nav { position:absolute; top:50%; transform:translateY(-50%); width:5%; height:12%; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.cf-nav.prev { left:1.5%; }
.cf-nav.next { right:1.5%; }

 

 
/* Background Image avec effet parallaxe */
.bg-image {
	position: absolute;
 
	width: 100%;
	height: 100%;
	background-image: url('../img-louis/maison.webp');
	background-size: cover;
	background-position: center;
	 
	animation: parallaxFloat 20s ease-in-out infinite;
	z-index: 1;
}

@keyframes parallaxFloat {
	/* Définition des keyframes pour l'animation parallaxFloat */

	0%,
	/* À 0% de l'animation */
	100% {
		/* À 100% de l'animation */
		transform: scale(1) translate(0, 0);
		/* Pas de transformation, l'élément reste à sa taille normale et à sa position d'origine */
	}

	50% {
		/* À mi-chemin de l'animation (50%) */
		transform: scale(1.1);
		/* L'élément est agrandi à 105% de sa taille originale et déplacé légèrement vers la gauche et vers le haut */
	}
}

/* Overlay avec effet de verre */
.glass-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,
			rgba(0, 0, 0, 0.4) 0%,
			rgba(255, 255, 255, 0.1) 25%,
			rgba(0, 0, 0, 0.6) 50%,
			rgba(255, 255, 255, 0.05) 75%,
			rgba(0, 0, 0, 0.8) 100%);
 
	z-index: 2;
}

/* Particules flottantes */
.particles {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
	0% {
		transform: translateY(100vh) rotate(0deg);
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(-100px) rotate(360deg);
		opacity: 0;
	}
}

/* Contenu principal */
.content-wrapper {
	position: relative;
	z-index: 10;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5%;
}

.banner-content {
	text-align: center;
	max-width: 900px;
	animation: contentFadeIn 2s ease-out;
}

@keyframes contentFadeIn {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Glass Card Effect */
.glass-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	padding: 4rem 3rem;
	box-shadow:
		0 25px 50px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	animation: glassShimmer 6s ease-in-out infinite;
	position: relative;
	overflow: hidden;
}

.glass-card::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg,
			rgba(255, 255, 255, 0.1) 0%,
			rgba(255, 255, 255, 0.3) 50%,
			rgba(255, 255, 255, 0.1) 100%);
	border-radius: 26px;
	z-index: -1;
	animation: borderGlow 4s ease-in-out infinite;
}

@keyframes glassShimmer {

	0%,
	100% {
		box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	}

	50% {
		box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	}
}

@keyframes borderGlow {

	0%,
	100% {
		opacity: 0.3;
	}

	50% {
		opacity: 0.6;
	}
}
/* Responsive Design */
@media (max-width: 768px) {
	.glass-card {
		padding: 2.5rem 2rem;
		margin: 1rem;
		/* La transition reste la même */
	}

	.hero-title {
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 480px) {
	.glass-card {
		padding: 2rem 1.5rem;
		/* La transition reste la même */
	}
}

/* Préférence utilisateur pour réduire les animations */
@media (prefers-reduced-motion: reduce) {
	.glass-card {
		animation: none;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.glass-card::before {
		animation: none;
	}
}

/* Typographie luxueuse */
.hero-title {
	font-size: clamp(2.5rem, 8vw, 6rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 2rem;
	background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
	-webkit-background-clip: text;
	
	background-clip: text;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	letter-spacing: -0.02em;
	animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

	0%,
	100% {
		filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
	}

	50% {
		filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
	}
}

.hero-description {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 300;
	max-width: 600px;
	margin: 0 auto;
	
	animation: descriptionSlide 2s ease-out 0.5s both;
}

@keyframes descriptionSlide {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Éléments décoratifs */
.decorative-lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 4;
	pointer-events: none;
}

.line {
	position: absolute;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	height: 1px;
	width: 100%;
	animation: lineMove 8s linear infinite;
}

.line:nth-child(1) {
	top: 20%;
	animation-delay: 0s;
}

.line:nth-child(2) {
	top: 60%;
	animation-delay: 2s;
}

.line:nth-child(3) {
	top: 80%;
	animation-delay: 4s;
}

@keyframes lineMove {
	0% {
		transform: translateX(-100%);
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		transform: translateX(100%);
		opacity: 0;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.glass-card {
		padding: 2.5rem 2rem;
		margin: 1rem;
	}

	.hero-title {
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 480px) {
	.glass-card {
		padding: 2rem 1.5rem;
	}
}

/* Hover Effects */
.glass-card:hover {
	transform: translateY(-5px);
	transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover::before {
	animation-duration: 2s;
}

/* ===== Styles pour Services Overview Section ===== */

/* Variables CSS pour les couleurs */
#services-overview {
    --primary-dark: #1a1a1a;
    --primary-light: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: rgb(17, 17, 17);
}

/* Section principale */
#services-overview {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-light) 50%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

/* Éléments de background flottants */
#services-overview .bg-float-top {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--gray-200) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

#services-overview .bg-float-bottom {
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--gray-300) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

/* Animation gradient pour le titre */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Header de section */
.services-overview-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-overview-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    margin: 0 0 32px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--gray-500) 25%, var(--primary-dark) 50%, var(--gray-700) 75%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
    line-height: 1;
    letter-spacing: -0.02em;
}

.services-overview-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--gray-600);
    margin: 8px auto 0 auto;
    max-width: 760px;
    line-height: 1.5;
    font-weight: var(--font-weight-normal);
}

/* Indicateurs de performance */
.services-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-800);
    margin-bottom: 2px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid de sections */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
    gap: 28px;
}

/* Section de service */
.service-section {
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 420px;
}

/* Background de section */
.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay pour lisibilité */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
}

/* Contenu au premier plan */
.section-foreground {
    position: relative;
    z-index: 2;
    padding: 48px;
    display: grid;
    align-items: end;
    min-height: 420px;
}

/* Panneau flouté */
.blur-panel {
    max-width: 780px;
    background: rgba(255,255,255,0.28);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 0 auto;
}

/* Contenu du panneau */
.blur-panel-content {
    margin-bottom: 18px;
    text-align: center;
}

.blur-panel-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    margin: 0 0 8px 0;
    color: #0b0b0b;
    line-height: 1.2;
}

.blur-panel-subtitle {
    font-size: var(--font-size-3xl);
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-weight: var(--font-weight-semibold);
}

.blur-panel-description {
    font-size: var(--font-size-xl);
    color: #222;
    margin: 0;
    line-height: 1.55;
}

/* Boutons de services */
.services-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 18px 0;
    justify-content: center;
}

.service-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #0f0f0f, #2b2b2b);
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-button-text {
    font-size: var(--font-size-lg);
    white-space: nowrap;
}

.service-button-arrow {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255,255,255,0.12);
}

/* Effets hover sur les sections */
#services-overview .service-section,
#services-overview .service-section .blur-panel,
#services-overview .service-section .section-bg img,
#services-overview .service-section .bg-overlay {
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease, background .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
    will-change: transform, box-shadow, filter, background, backdrop-filter;
}

#services-overview .service-section:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

#services-overview .service-section:hover .section-bg img {
    transform: scale(1.06);
    filter: blur(2px) saturate(112%);
}

#services-overview .service-section:hover .bg-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 60%, rgba(0, 0, 0, 0.5) 100%) !important;
}

#services-overview .service-section:hover .blur-panel {
    transform: translateY(-2px);
    backdrop-filter: blur(14px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* ===== Variante Compacte (Carousel) ===== */

.service-section-compact {
    min-height: 360px;
    border-radius: 18px;
}

.service-section-compact .section-foreground {
    padding: 16px 16px 0 16px;
}

.service-section-compact .blur-panel {
    max-width: 820px;
    background: rgba(255,255,255,0.26);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.service-section-compact .blur-panel-title {
    font-size: var(--font-size-4xl);
    margin: 0 0 4px 0;
}

.service-section-compact .blur-panel-subtitle {
    font-size: var(--font-size-xl);
    margin: 0 0 4px 0;
}

.service-section-compact .blur-panel-description {
    font-size: var(--font-size-lg);
    margin: 0;
    line-height: 1.5;
}

/* Cartes de service dans le carousel */
.service-card-compact {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image-container {
    height: 180px;
    overflow: hidden;
}

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

.service-card-body {
    padding: 12px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    margin: 0;
    color: #0b0b0b;
}

.service-card-description {
    font-size: var(--font-size-md);
    color: #333;
    margin: 0;
    line-height: 1.45;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: #0f0f0f;
    color: #fff;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
    margin-top: 4px;
}

.service-card-link-arrow {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255,255,255,0.12);
}

/* ===== Navigation Coverflow ===== */

.cf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: #2c3e50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
}

/* Animation au hover */
.cf-nav::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(44, 62, 80, 0.15);
    transition: width 0.35s ease;
    z-index: -1;
}

.cf-nav:hover::before {
    width: 100%;
}

.cf-nav:hover {
    color: #1a252f;
    transform: translateY(-50%) scale(1.05);
}

/* Animation au clic */
.cf-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.cf-nav.prev {
    left: 1.5%;
}

.cf-nav.next {
    right: 1.5%;
}

/* ===== Responsive Mobile ===== */

@media (max-width: 768px) {
    /* Réduction des hauteurs et espacements */
    #services-overview {
        padding-top: 12px !important;
        padding-bottom: 16px !important;
    }

    #services-overview .service-section {
        min-height: 260px !important;
    }

    #services-overview .service-section .section-foreground {
        padding: 16px !important;
    }

    #services-overview .service-section .blur-panel {
        padding: 14px !important;
    }

    #services-overview .service-section .blur-panel-title {
        font-size: var(--font-size-3xl) !important;
    }

    #services-overview .service-section .blur-panel-subtitle,
    #services-overview .service-section .blur-panel-description {
        font-size: var(--font-size-lg) !important;
    }

    #services-overview .service-section .services-buttons {
        gap: 8px !important;
    }

    #services-overview .service-button {
        padding: 10px 14px !important;
    }
}