* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden;
	transition: background-color 0.5s ease, color 0.5s ease;
	background-color: #f5f5f5;
}

.story-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

/* On NE met plus opacity:0 sur .story-section */
.story-section {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 4rem;
	gap: 6rem;
	max-width: 1600px;
	margin: 0 auto;
}

.text-block {
	flex: 0.8;
	max-width: 600px;
	padding: 3.5rem;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 25px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	margin: 1rem;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transform-origin: center center;
	letter-spacing: 0.3px;
	/* sera animé par GSAP */
}

.image-block {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	/* sera animé par GSAP */
}

.image-placeholder {
	width: 100%;
	max-width: 500px;
	height: auto;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

.image-placeholder:hover {
	transform: scale(1.02);
}

.progress-bar {
	position: fixed;
	top: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	height: 4px;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
}

.progress-bar-fill {
	position: absolute;
	top: 50%;
	left: 20px;
	width: calc(100% - 40px);
	max-width: calc(100% - 40px);
	height: 4px;
	background: linear-gradient(90deg, #f39c12, #f1c40f);
	transform: translateY(-50%);
	z-index: 1;
	border-radius: 10px;
	transition: width 0.3s ease;
}

/* Ligne de fond de la barre */
.progress-bar::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 20px;
	width: calc(100% - 40px);
	height: 4px;
	background: rgba(0, 0, 0, 0.1);
	transform: translateY(-50%);
	border-radius: 10px;
	z-index: 0;
}

.progress-step {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	color: #333;
	position: relative;
	z-index: 2;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border: 2px solid #fff;
	margin-top: -18px;
	cursor: pointer;
}

.progress-step:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.progress-step.active {
	background: #f39c12;
	color: #fff;
	transform: scale(1.1);
	border-color: #fff;
}

h2 {
	font-size: 2.8rem;
	color: #2c3e50;
	margin-bottom: 2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

p {
	font-size: 1.2rem;
	line-height: 1.9;
	margin-bottom: 2.5rem;
	color: #4a5568;
	font-weight: 400;
}

.next-section-btn {
	display: inline-block;
	padding: 1rem 2rem;
	background: #333;
	color: white;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-size: 1.1rem;
	margin-top: 2rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.next-section-btn:hover {
	background: #555;
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Thèmes */
.light-theme {
	background-color: #f4f4f9;
	color: #333;
}

.dark-theme {
	background-color: #2c3e50;
	color: #f4f4f9;
}

/* Thème intermédiaire */
.mid-theme {
	background-color: #3e4a61;
	color: #e0e0e0;
}

/* Thème coucher de soleil */
.sunset-theme {
	background-color: #f39c12;
	color: #fff;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 2000;
	opacity: 0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.modal-image {
	max-width: 90%;
	max-height: 90vh;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	transform: scale(0.8);
	opacity: 0;
	cursor: pointer;
}

.modal-close {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-size: 28px;
	color: white;
	opacity: 0;
	transform: rotate(-180deg);
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.modal-close span {
	display: block;
	transform: translateY(-2px);
}

.modal-close:hover {
	transform: rotate(0deg) scale(1.1);
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Styles responsives */
@media screen and (max-width: 1200px) {
	.story-section {
		padding: 2rem;
		gap: 3rem;
	}
	.text-block {
		padding: 2rem;
	}
	h2 {
		font-size: 2.2rem;
	}
	p {
		font-size: 1.1rem;
	}
}

@media screen and (max-width: 900px) {
	.story-section {
		flex-direction: column;
		padding: 1rem;
		gap: 2rem;
		min-height: auto;
		margin: 4rem 0;
	}
	.text-block {
		flex: 1;
		width: 100%;
		max-width: 100%;
		order: 2;
	}
	.image-block {
		flex: 1;
		width: 100%;
		order: 1;
	}
	.image-placeholder {
		max-width: 100%;
		height: auto;
	}
	.progress-bar {
		width: 250px;
		top: 20px;
	}
	.progress-step {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}
}

@media screen and (max-width: 600px) {
	.story-container {
		padding: 1rem;
	}
	.text-block {
		padding: 1.5rem;
	}
	h2 {
		font-size: 1.8rem;
		margin-bottom: 1.5rem;
	}
	p {
		font-size: 1rem;
		line-height: 1.7;
		margin-bottom: 2rem;
	}
	.next-section-btn {
		padding: 0.8rem 1.6rem;
		font-size: 1rem;
	}
	.progress-bar {
		width: 200px;
	}
	.progress-step {
		width: 30px;
		height: 30px;
		font-size: 14px;
		margin-top: -13px;
	}
	.modal-close {
		top: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

@media screen and (max-width: 400px) {
	.progress-bar {
		width: 180px;
	}
	.progress-step {
		width: 25px;
		height: 25px;
		font-size: 12px;
		margin-top: -10px;
	}
	h2 {
		font-size: 1.6rem;
	}
	.text-block {
		padding: 1.2rem;
	}
}
