/* Styles pour la page Réalisations */

/* Variables CSS */
:root {
	--couleur-vert-mousse: #A8D5BA;
	--couleur-beige-sable: #F1E3D3;
	--couleur-marron-doux: #C89F77;
	--color-glacier: #F7F7F7;
	--color-forest: #014D4E;
	--color-sable: #E2C290;
}

/* Styles de base pour la page */
.realisations-body {
	background-color: var(--couleur-beige-sable);
	font-family: 'Poppins', sans-serif;
	color: var(--couleur-marron-doux);
	line-height: 1.6;
}

/* Bouton retour */
.back-button-container {
	position: fixed;
	top: 30px;
	left: 2rem;
	z-index: 1000;
}

.back-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: linear-gradient(135deg, var(--color-forest) 0%, #026a6b 100%);
	color: white;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 8px 25px rgba(1, 77, 78, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	width: 56px;
	height: 56px;
}

.back-button:hover {
	background: linear-gradient(135deg, var(--couleur-marron-doux) 0%, #b08a5f 100%);
	transform: translateY(-3px) translateX(-2px);
	box-shadow: 0 12px 35px rgba(200, 159, 119, 0.4);
	border-color: rgba(255, 255, 255, 0.2);
}

.back-button svg {
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Header de la page */
.page-header {
	padding: 60px 0 40px 0;
	text-align: center;
	background: linear-gradient(135deg, var(--couleur-beige-sable) 0%, var(--color-glacier) 100%);
}

.page-title {
	font-family: 'Radley', serif;
	font-size: 3.5rem;
	color: var(--color-forest);
	margin-bottom: 1rem;
	font-weight: 600;
}

.page-subtitle {
	font-size: 1.3rem;
	color: var(--couleur-marron-doux);
	max-width: 600px;
	margin: 0 auto;
	opacity: 0.8;
}

/* Section principale des réalisations */
.realisations-main {
	min-height: 100vh;
}

.realisations-grid {
	padding: 80px 0;
}

.realisations-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Cartes de réalisations */
.realisation-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
}

.realisation-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.realisation-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.realisation-image {
	position: relative;
	width: 100%;
	height: 350px;
	overflow: hidden;
}

.realisation-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

/* Placeholder en construction */
.construction-placeholder {
	background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.construction-text {
	text-align: center;
	color: var(--couleur-marron-doux);
	z-index: 1;
}

.construction-text h3 {
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--color-forest);
}

.construction-text p {
	font-size: 1rem;
	opacity: 0.7;
	margin: 0;
}

.realisation-card:hover .realisation-img {
	transform: scale(1.05);
}

/* Overlay des réalisations */
.realisation-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom,
			rgba(0, 0, 0, 0.1) 0%,
			rgba(0, 0, 0, 0.7) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: flex-end;
	padding: 2rem;
}

.realisation-card:hover .realisation-overlay {
	opacity: 1;
}

.realisation-info {
	color: white;
	text-align: left;
}

.realisation-info h3 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: white;
}

.realisation-info p {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	opacity: 0.9;
}

.realisation-type {
	display: inline-block;
	background: var(--couleur-vert-mousse);
	color: var(--color-forest);
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

/* Section CTA */
.realisations-cta {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--color-forest) 0%, var(--couleur-marron-doux) 100%);
	text-align: center;
}

.cta-content h2 {
	font-family: 'Radley', serif;
	font-size: 2.5rem;
	color: white;
	margin-bottom: 1rem;
}

.cta-content p {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.cta-content .cta-button {
	background: var(--couleur-vert-mousse);
	color: var(--color-forest);
	padding: 15px 35px;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
}

.cta-content .cta-button:hover {
	background: #8fc1a3;
	transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
	.page-title {
		font-size: 3rem;
	}

	.realisations-container {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 1.5rem;
		padding: 0 1.5rem;
	}
}

@media screen and (max-width: 768px) {
	.back-button-container {
		top: 100px;
		left: 1rem;
	}

	.back-button {
		padding: 10px 16px;
		font-size: 0.8rem;
	}

	.back-button svg {
		width: 16px;
		height: 16px;
	}

	.page-header {
		padding: 100px 0 60px 0;
	}

	.page-title {
		font-size: 2.5rem;
	}

	.page-subtitle {
		font-size: 1.1rem;
	}

	.realisations-grid {
		padding: 60px 0;
	}

	.realisations-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 0 1rem;
		max-width: 100%;
	}

	.realisation-image {
		height: 250px;
	}

	.realisation-overlay {
		padding: 1.5rem;
	}

	.realisation-info h3 {
		font-size: 1.1rem;
	}

	.cta-content h2 {
		font-size: 2rem;
	}

	.cta-content p {
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.page-title {
		font-size: 2rem;
	}

	.page-subtitle {
		font-size: 1rem;
	}

	.realisation-image {
		height: 180px;
	}

	.realisation-overlay {
		padding: 1rem;
	}

	.realisation-info h3 {
		font-size: 1rem;
	}

	.realisation-info p {
		font-size: 0.8rem;
	}

	.cta-content h2 {
		font-size: 1.8rem;
	}
}

/* Animation d'apparition */
.realisation-card {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.6s ease forwards;
}

.realisation-card:nth-child(1) {
	animation-delay: 0.1s;
}

.realisation-card:nth-child(2) {
	animation-delay: 0.2s;
}

.realisation-card:nth-child(3) {
	animation-delay: 0.3s;
}

.realisation-card:nth-child(4) {
	animation-delay: 0.4s;
}

.realisation-card:nth-child(5) {
	animation-delay: 0.5s;
}

.realisation-card:nth-child(6) {
	animation-delay: 0.6s;
}

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