/* ETAP 0: GLOBAL STYLES */

/* 1. Variables */
:root {
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Plus Jakarta Sans', sans-serif;

	--color-bg: #f9f9f9;
	--color-text: #141414;
	--color-accent: #4b57ff;
	--color-muted: #a1a1aa;
	--color-border: #e4e4e7;

	--header-height: 80px;
}

/* 2. Base & Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

button {
	font-family: inherit;
	border: none;
	background: none;
	cursor: pointer;
}

/* 3. Utility Classes */
.container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 22px;
	color: var(--color-text);
}

/* ETAP 1: HEADER */
.header {
	height: var(--header-height);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header__container {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.header__nav-link {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text);
	transition: color 0.2s ease;
}

.header__nav-link:hover {
	color: var(--color-accent);
}

.header__burger {
	display: none;
	color: var(--color-text);
}

.header__burger .lucide-x {
	display: none;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
	.header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background-color: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		padding: 20px;
	}

	.header__nav.is-active {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.header__nav-link {
		font-size: 18px;
	}

	.header__burger {
		display: block;
	}

	.header__burger.is-active .lucide-menu {
		display: none;
	}

	.header__burger.is-active .lucide-x {
		display: block;
	}
}

/* ETAP 2: FOOTER */
.footer {
	padding-top: 80px;
	padding-bottom: 80px;
	border-top: 1px solid var(--color-border);
	background-color: #ffffff;
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 60px;
}

.footer__column--main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-muted);
	margin-top: 24px;
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	font-size: 15px;
	color: var(--color-muted);
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer__link:hover {
	color: var(--color-accent);
}

.footer__list--contacts .footer__link {
	align-items: flex-start;
}

.footer__list--contacts .lucide {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

/* Responsive Footer */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	.footer__column--main {
		grid-column: 1 / -1;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__list {
		align-items: center;
	}
	.footer__list--contacts .footer__link {
		align-items: center;
		text-align: left; /* Keep contact info aligned left within its flex container */
	}
}

/* ETAP 3: HERO SECTION */

.hero {
	padding-top: 100px;
	padding-bottom: 100px;
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.hero__title {
	font-family: var(--font-secondary);
	font-size: 40px;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 24px;
}

.hero__title--animated {
	color: var(--color-accent);
	position: relative;
	white-space: nowrap;
}

/* Blinking cursor for typewriter effect */
.hero__title--animated::after {
	content: '|';
	position: absolute;
	right: -10px;
	top: 0;
	color: var(--color-accent);
	animation: blink 1s infinite;
}

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

.hero__subtitle {
	font-size: 18px;
	color: var(--color-muted);
	max-width: 500px;
	margin-bottom: 40px;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background-color: var(--color-accent);
	color: #ffffff;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	padding: 16px 28px;
	border-radius: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px -5px rgba(75, 87, 255, 0.3);
}

.hero__visual {
	position: relative;
}

.hero__visual img {
	border-radius: 12px;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Responsive Hero Section */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__content {
		order: 2;
	}

	.hero__visual {
		order: 1;
		max-width: 500px;
		margin: 0 auto;
	}

	.hero__title {
		font-size: 44px;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 576px) {
	.hero {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.hero__title {
		font-size: 20px;
	}
	.hero__title--animated {
		white-space: normal;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

/* REUSABLE SECTION STYLES */
.section {
	padding-top: 100px;
	padding-bottom: 100px;
}

.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: 42px;
	line-height: 1.2;
	margin-bottom: 16px;
}

.section-header__subtitle {
	font-size: 18px;
	color: var(--color-muted);
}

@media (max-width: 768px) {
	.section {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.section-header__title {
		font-size: 32px;
	}
	.section-header__subtitle {
		font-size: 16px;
	}
}

/* ETAP 3: COURSES SECTION */
.courses__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.courses__card {
	background-color: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 30px -10px rgba(20, 20, 20, 0.1);
}

.courses__card-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg);
	border-radius: 8px;
	margin-bottom: 24px;
}

.courses__card-icon .lucide {
	width: 28px;
	height: 28px;
	color: var(--color-accent);
}

.courses__card-title {
	font-family: var(--font-secondary);
	font-size: 22px;
	margin-bottom: 12px;
}

.courses__card-description {
	color: var(--color-muted);
	font-size: 15px;
	margin-bottom: 24px;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.courses__card-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--color-accent);
	opacity: 0; /* Hidden by default */
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.courses__card:hover .courses__card-link {
	opacity: 1;
	transform: translateY(0);
}

/* SECTION MODIFIER */
.section--gray {
	background-color: var(--color-bg);
}

/* ETAP 3: PROCESS SECTION */
.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding-left: 40px; /* Space for the timeline line and icons */
}

/* The vertical line */
.process__timeline::before {
	content: '';
	position: absolute;
	left: 19px; /* Centered with the icon */
	top: 10px;
	bottom: 10px;
	width: 2px;
	background-color: var(--color-border);
}

.process__item {
	position: relative;
	margin-bottom: 50px;
}

.process__item:last-child {
	margin-bottom: 0;
}

.process__item-icon {
	position: absolute;
	left: -40px; /* (Icon width / 2) + (Line width / 2) + padding */
	top: 0;
	width: 40px;
	height: 40px;
	background-color: #ffffff;
	border: 2px solid var(--color-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.process__item-icon .lucide {
	width: 20px;
	height: 20px;
	color: var(--color-accent);
}

.process__item-content {
	padding-left: 40px;
}

.process__item-step {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-muted);
	margin-bottom: 8px;
}

.process__item-title {
	font-family: var(--font-secondary);
	font-size: 22px;
	margin-bottom: 10px;
}

.process__item-description {
	color: var(--color-muted);
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 576px) {
	.process__item-icon {
		left: -30px;
	}

	.process__timeline {
		padding-left: 30px;
	}

	.process__item-content {
		padding-left: 20px;
	}
}

/* ETAP 3: ABOUT SECTION */
.about__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 80px;
}

.about__title {
	text-align: left;
	margin-bottom: 24px;
}

.about__description {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-muted);
	margin-bottom: 40px;
}

.about__features {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.about__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.about__feature-item .lucide {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--color-accent);
	margin-top: 5px;
}

.about__feature-item span {
	display: flex;
	flex-direction: column;
}

.about__feature-item strong {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 4px;
}

.about__feature-item small {
	font-size: 15px;
	color: var(--color-muted);
	line-height: 1.6;
}

.about__visual-wrapper {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	padding-top: 110%; /* Creates a responsive aspect ratio (e.g., 10:11) */
}

.about__visual-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Add a decorative element behind the image */
.about__visual-wrapper::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	right: 20px;
	bottom: 20px;
	border: 2px solid var(--color-border);
	border-radius: 12px;
	z-index: -1;
	transition: all 0.3s ease;
}

.about__visual:hover .about__visual-wrapper::before {
	transform: translate(10px, 10px);
}

/* Responsive About Section */
@media (max-width: 992px) {
	.about__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.about__title {
		text-align: center;
	}

	.about__visual {
		max-width: 500px;
		margin: 0 auto;
		width: 100%;
	}

	.about__visual-wrapper {
		padding-top: 100%; /* Make it square on smaller screens */
	}
}

/* ETAP 3: FAQ SECTION */
.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background-color: #ffffff;
	overflow: hidden;
}

.faq__item {
	border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
	border-bottom: none;
}

.faq__question {
	width: 100%;
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
}

.faq__question span {
	padding-right: 20px;
}

.faq__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	position: relative;
	color: var(--color-accent);
}

.faq__icon--minus {
	display: none;
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__answer p {
	padding: 0 24px 24px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-muted);
}

/* Active state for accordion item */
.faq__item.is-active .faq__question {
	color: var(--color-accent);
}

.faq__item.is-active .faq__icon--plus {
	display: none;
}

.faq__item.is-active .faq__icon--minus {
	display: block;
}

/* ETAP 4: CONTACT SECTION */

.contact__wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 40px;
	border: 1px solid var(--color-border);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-muted);
	margin-bottom: 8px;
}

.form-input {
	width: 100%;
	padding: 12px;
	font-family: var(--font-primary);
	font-size: 16px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease;
}

.form-input:focus {
	border-color: var(--color-accent);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
}

.form-label--checkbox {
	margin: 0;
	font-size: 15px;
	color: var(--color-text);
}

.form-label--checkbox a {
	color: var(--color-accent);
	text-decoration: underline;
}

.form-checkbox {
	flex-shrink: 0;
	margin-top: 3px;
}

.contact__submit-button {
	width: 100%;
	margin-top: 10px;
}

/* Success Message Styles */
.contact__success-message {
	text-align: center;
	padding: 40px 20px;
}

.contact__success-icon {
	width: 60px;
	height: 60px;
	color: #2ecc71; /* A nice green for success */
	margin-bottom: 20px;
}

.contact__success-title {
	font-family: var(--font-secondary);
	font-size: 30px;
	margin-bottom: 12px;
}

.contact__success-text {
	font-size: 16px;
	color: var(--color-muted);
}

/* ETAP 5: COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: #ffffff;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	box-shadow: 0 10px 30px rgba(20, 20, 20, 0.1);
	z-index: 200;
	max-width: 500px;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

.cookie-popup__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 15px;
	color: var(--color-muted);
}

.cookie-popup__link {
	text-decoration: underline;
	color: var(--color-text);
}

.cookie-popup__link:hover {
	color: var(--color-accent);
}

.cookie-popup__button {
	flex-shrink: 0;
	padding: 10px 20px;
}

@media (max-width: 576px) {
	.cookie-popup {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.cookie-popup__content {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ETAP 5: STYLES FOR POLICY PAGES */
.pages {
	padding-top: 80px;
	padding-bottom: 80px;
}

.pages .container {
	max-width: 800px; /* Optimal width for reading */
}

.pages h1 {
	font-size: 1.5rem;

	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-muted);
	margin-bottom: 20px;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	font-weight: 500;
}

.pages a:hover {
	text-decoration: none;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

.pages li {
	margin-bottom: 12px;
	line-height: 1.8;
	color: var(--color-muted);
}

.pages strong {
	color: var(--color-text);
	font-weight: 500;
}
