:root {
	--accent-color: #00f3ff;
	--alert-color: #ffae00;
	--font-tech: "Courier New", monospace;
}

/* Hero Styles */

#accueil #hero h1 {
	font-size: 5rem;
}

#accueil #hero h2 {
	font-size: 3rem;
}

/* Immersive Intro Styles */

#accueil #immersive-intro {
	position: relative;
	width: 100%;
	height: 100%;
	color: var(--terminal-color);
	font-family: var(--font-stack);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	box-sizing: border-box;
	overflow: hidden;
}

#accueil #immersive-intro::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15) 0px,
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	pointer-events: none;
	z-index: 2;
}

#accueil .terminal-container {
	font-size: clamp(1rem, 2.5vw, 1.5rem);
	line-height: 1.6;
	max-width: 900px;
	width: 100%;
	white-space: pre-wrap;
	z-index: 3;
	text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

#accueil .cursor {
	display: inline-block;
	background-color: var(--terminal-color);
	width: 10px;
	height: 1.2em;
	margin-left: 5px;
	vertical-align: text-bottom;
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

#accueil .ai-avatar {
	width: 60px;
	height: 60px;
	border: 2px solid var(--terminal-color);
	border-radius: 50%;
	margin-bottom: 2rem;
	box-shadow: 0 0 15px var(--terminal-color),
		inset 0 0 15px var(--terminal-color);
	position: relative;
}

#accueil .ai-avatar.speaking::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	background-color: var(--terminal-color);
	border-radius: 50%;
	animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
	from {
		opacity: 0.3;
		scale: 0.8;
	}
	to {
		opacity: 1;
		scale: 1.2;
	}
}

.waiting-dots::after {
	content: "";
	animation: typingDots 1.5s steps(1, end) infinite;
}

@keyframes typingDots {
	0%,
	100% {
		content: "";
	}
	25% {
		content: ".";
	}
	50% {
		content: "..";
	}
	75% {
		content: "...";
	}
}

/* --- Section Introduction --- */

.container {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
}

.intro-header {
	margin-bottom: 2rem;
	text-align: left;
}

.intro-header h2 {
	font-family: var(--font-tech);
	color: var(--cyan);
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.prefix {
	opacity: 0.6;
}

.separator {
	width: 100px;
	height: 3px;
	background: var(--cyan);
	margin-top: 1rem;
	box-shadow: 0 0 10px var(--cyan);
}

.flex-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
	align-items: center;
}

.text-content {
	flex: 1 1 500px;
}

.lead-text {
	font-size: 1.2rem;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.instruction-box {
	border-left: 2px solid var(--orange);
	background: linear-gradient(
		90deg,
		rgba(255, 174, 0, 0.05) 0%,
		transparent 100%
	);
	padding: 1.5rem;
}

.instruction-box h3 {
	margin-top: 0;
	font-family: var(--font-tech);
	color: var(--orange);
	display: flex;
	align-items: center;
	gap: 10px;
}

.instruction-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.instruction-box li {
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.instruction-box li:last-child {
	margin-bottom: 0;
}
.orange-text {
	color: var(--orange);
	font-weight: bold;
}

.visual-content {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.robot-card {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	padding: 1rem;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.robot-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	background-color: #000;
	background-size: cover;
	background-position: center;
}

.symbol {
	font-family: var(--font-tech);
	font-size: 2.5rem;
	font-weight: bold;
	color: var(--orange);
}

.caption {
	font-family: var(--font-tech);
	font-size: 0.9rem;
	color: #fff;
}

.caption small {
	color: #888;
	font-family: sans-serif;
	display: block;
	margin-top: 4px;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 5px;
}
.green {
	background-color: var(--cyan);
	box-shadow: 0 0 5px var(--cyan);
}
.orange {
	background-color: var(--orange);
	box-shadow: 0 0 5px var(--orange);
}

@media (max-width: 1024px) {
	#accueil #hero h1 {
		font-size: 3.2rem;
	}
	#accueil #hero h2 {
		font-size: 2rem;
	}
	.flex-wrapper {
		gap: 2rem;
	}
	.robot-card {
		max-width: 320px;
	}
}

@media (max-width: 768px) {
	#accueil #immersive-intro {
		padding: 1rem;
	}
	#dylan-intro {
		padding: 3rem 1.5rem;
	}
	.flex-wrapper {
		flex-direction: column-reverse;
		gap: 2rem;
	}
	.instruction-box {
		padding: 1rem;
	}
	.robot-card {
		max-width: 100%;
	}
	#accueil .terminal-container {
		font-size: 1rem;
		max-width: 98vw;
	}
}

@media (max-width: 500px) {
	#accueil #hero h1 {
		font-size: 2rem;
	}
	#accueil #hero h2 {
		font-size: 1.2rem;
	}
	#accueil #immersive-intro {
		padding: 0.5rem;
	}
	.intro-header h2 {
		font-size: 1.5rem;
	}
	.robot-circle {
		width: 48px;
		height: 48px;
	}
	.robot-card {
		padding: 0.5rem;
		gap: 0.7rem;
	}
	#accueil .terminal-container {
		font-size: 0.9rem;
		max-width: 99vw;
	}
}
