:root {
	--navy: #12213a;
	--navy-deep: #0c1626;
	--navy-raised: #182b4c;
	--cream: #f6f3ec;
	--cream-tint: #efeae0;
	--gold: #c9a227;
	--gold-bright: #e0c25e;
	--gold-ink: #8a6e15; 
	--orange: #e8720f;
	--orange-hot: #f5831f;
	--ink: #16233b;
	--ink-soft: #55617a;
	--mist: #b9c4d8;

	--line-gold: rgba(201, 162, 39, 0.3);
	--line-gold-ink: rgba(138, 110, 21, 0.35);
	--line-cream: rgba(246, 243, 236, 0.12);

	--font-display: "Fraunces", Georgia, serif;
	--font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--nav-h: 76px;
	--ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cream);
	background: var(--navy-deep);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

section {
	scroll-margin-top: var(--nav-h);
}

.wrap {
	width: min(1140px, 92%);
	margin-inline: auto;
}

.u-gold {
	color: var(--gold);
}

.star {
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	background: currentColor;
	clip-path: polygon(
		50% 0%,
		61% 39%,
		100% 50%,
		61% 61%,
		50% 100%,
		39% 61%,
		0% 50%,
		39% 39%
	);
	transform: translateY(-0.05em);
}

.thread {
	position: relative;
	height: 92px;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.thread::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 22px;
	width: 1px;
	background: linear-gradient(
		to bottom,
		transparent,
		var(--thread-color, var(--line-gold)) 30%
	);
}

.thread::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 11px;
	height: 11px;
	transform: translateX(-50%);
	background: var(--thread-star, var(--gold));
	clip-path: polygon(
		50% 0%,
		61% 39%,
		100% 50%,
		61% 61%,
		50% 100%,
		39% 61%,
		0% 50%,
		39% 39%
	);
}

.band--cream .thread {
	--thread-color: var(--line-gold-ink);
	--thread-star: var(--gold-ink);
}

.kicker {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-bottom: 1.4rem;
}

.band--cream .kicker {
	color: var(--gold-ink);
}

.title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2rem, 4.2vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.title em {
	font-style: italic;
	font-weight: 600;
	color: var(--gold);
}

.band--cream .title {
	color: var(--navy);
}

.band--cream .title em {
	color: var(--gold-ink);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1rem 1.9rem;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 3px;
	transition:
		transform 0.25s var(--ease),
		background 0.25s,
		border-color 0.25s,
		box-shadow 0.25s,
		color 0.25s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--gold {
	background: var(--gold);
	color: var(--navy-deep);
}

.btn--gold:hover {
	background: var(--gold-bright);
	box-shadow: 0 14px 34px -14px rgba(201, 162, 39, 0.6);
}

.btn--orange {
	background: var(--orange);
	color: #100b04;
}

.btn--orange:hover {
	background: var(--orange-hot);
	box-shadow: 0 14px 34px -14px rgba(232, 114, 15, 0.65);
}

.btn--ghost {
	border-color: var(--line-gold);
	color: var(--cream);
}

.btn--ghost:hover {
	border-color: var(--gold);
	background: rgba(201, 162, 39, 0.08);
}

.btn--line {
	border-color: var(--gold);
	color: var(--gold);
}

.btn--line:hover {
	background: var(--gold);
	color: var(--navy-deep);
}

.btn--navy {
	background: var(--navy);
	color: var(--cream);
}

.btn--navy:hover {
	background: var(--navy-raised);
	box-shadow: 0 14px 34px -14px rgba(12, 22, 38, 0.55);
}

.btn--sm {
	padding: 0.55rem 1.2rem;
	font-size: 0.8rem;
}

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--nav-h);
	background: rgba(12, 22, 38, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition:
		background 0.35s,
		border-color 0.35s;
}

.nav.scrolled {
	background: rgba(12, 22, 38, 0.88);
	border-bottom-color: rgba(201, 162, 39, 0.18);
}

.nav__in {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
}

.brand__mono {
	height: 42px;
	width: auto;
	flex: none;
}

.brand__text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--cream);
}

.brand__sub {
	display: block;
	margin-top: 0.35em;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 0.53rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--gold);
}

.nav__links {
	display: flex;
	align-items: center;
	gap: clamp(1.2rem, 2.4vw, 2.2rem);
}

.nav__links > a:not(.nav__cta) {
	font-family: var(--font-label);
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(246, 243, 236, 0.82);
	padding: 0.3rem 0;
	border-bottom: 1px solid transparent;
	transition:
		color 0.25s,
		border-color 0.25s;
}

.nav__links > a:not(.nav__cta):hover,
.nav__links > a.active {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0.6rem;
}

.burger span {
	width: 24px;
	height: 2px;
	background: var(--cream);
	transition:
		transform 0.3s var(--ease),
		opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 3rem) 0 5.5rem;
	background:
		radial-gradient(
			1100px 600px at 78% 18%,
			rgba(24, 43, 76, 0.85),
			transparent 65%
		),
		linear-gradient(
			168deg,
			var(--navy-deep) 0%,
			var(--navy) 58%,
			var(--navy-deep) 100%
		);
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.hero__mark {
	position: absolute;
	right: -3%;
	top: 50%;
	transform: translateY(-52%);
	width: clamp(300px, 36vw, 520px);
	height: auto;
	opacity: 0.07;
}

.hero__in {
	position: relative;
	z-index: 2;
}

.hero .kicker {
	margin-bottom: 2rem;
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2.4rem, 5.6vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--cream);
}

.hero__title span {
	display: block;
}

.hero__title em {
	font-style: italic;
	font-weight: 600;
	color: var(--gold);
}

.hero__lede {
	max-width: 34rem;
	margin-top: 2rem;
	font-size: 1.08rem;
	color: var(--mist);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.6rem;
}

.hero__thread {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1px;
	height: 70px;
	background: linear-gradient(to bottom, transparent, var(--gold));
}

.rise {
	opacity: 0;
	transform: translateY(26px);
	animation: rise 0.85s var(--ease) forwards;
}

.hero .kicker.rise {
	animation-delay: 0.1s;
}

.hero__title .rise:nth-child(1) {
	animation-delay: 0.22s;
}

.hero__title .rise:nth-child(2) {
	animation-delay: 0.34s;
}

.hero__title .rise:nth-child(3) {
	animation-delay: 0.46s;
}

.hero__lede.rise {
	animation-delay: 0.58s;
}

.hero__cta.rise {
	animation-delay: 0.72s;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

.band {
	padding: 0 0 clamp(4.5rem, 8.5vw, 7.5rem);
}

.band--cream {
	background: var(--cream);
	color: var(--ink);
}

.band--tint {
	background: var(--cream-tint);
}

.band--navy {
	background: var(--navy);
	color: var(--cream);
}

.band--deep {
	background: var(--navy-deep);
	color: var(--cream);
	border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.maison {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
}

.maison__quote {
	font-family: var(--font-display);
	font-weight: 600;
	font-style: italic;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.35;
	color: var(--navy);
	border-left: 2px solid var(--gold);
	padding-left: 1.6rem;
}

.maison__quote em {
	color: var(--gold-ink);
}

.maison__body p {
	color: var(--ink-soft);
}

.maison__body p + p {
	margin-top: 1.2rem;
}

.maison__body strong {
	color: var(--navy);
}

.prog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.prog {
	display: flex;
	flex-direction: column;
	padding: 2rem 2rem 2.3rem;
	border-radius: 14px;
	background: #fffdf7;
	border: 1px solid var(--line-gold-ink);
	border-top: 3px solid var(--orange);
	transition:
		transform 0.3s var(--ease),
		box-shadow 0.3s;
}

.prog:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 44px -24px rgba(18, 33, 58, 0.38);
}

.prog__cat {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-ink);
	margin-bottom: 1rem;
}

.prog__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	line-height: 1.15;
	color: var(--navy);
	margin-bottom: 0.6rem;
}

.prog__desc {
	color: var(--ink-soft);
	max-width: 30rem;
	margin-bottom: 1.6rem;
}

.prog__cta {
	margin-top: auto;
	align-self: flex-start;
}

.prog--bootcamp {
	background: linear-gradient(160deg, #16294a 0%, var(--navy) 100%);
	border-color: rgba(201, 162, 39, 0.25);
	border-top: 3px solid var(--orange);
}

.prog--bootcamp .prog__cat {
	color: var(--gold);
}

.prog--bootcamp .prog__name {
	color: var(--cream);
}

.prog--bootcamp .prog__desc {
	color: var(--mist);
}

.prog--bootcamp:hover {
	box-shadow: 0 22px 48px -22px rgba(12, 22, 38, 0.55);
}

/* Carte sur-mesure : invitation à composer, en pointillé */
.prog--custom {
	background: rgba(201, 162, 39, 0.06);
	border: 1.5px dashed var(--line-gold-ink);
}
.prog--custom:hover {
	box-shadow: 0 20px 44px -26px rgba(201, 162, 39, 0.4);
}

.prog-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.6rem;
}

.band--cream .btn--line {
	border-color: var(--gold-ink);
	color: var(--gold-ink);
}

.band--cream .btn--line:hover {
	background: var(--gold-ink);
	color: var(--cream);
}

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	position: relative;
}

.steps::before {
	content: "";
	position: absolute;
	top: 2.4rem;
	left: 4%;
	right: 4%;
	height: 1px;
	background: var(--line-gold);
}

.step {
	position: relative;
	padding-top: 5rem;
}

.step__num {
	position: absolute;
	top: 0;
	left: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 600;
	font-size: 3.4rem;
	line-height: 1.4;
	color: var(--gold);
	background: var(--navy);
	padding-right: 1.2rem;
}

.step__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.45rem;
	margin-bottom: 0.7rem;
}

.step__desc {
	color: var(--mist);
	font-size: 0.98rem;
}

.contact {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
}

.contact__card {
	font-style: normal;
	margin-top: 0.5rem;
	padding: 1.8rem;
	background: #fffdf7;
	border: 1px solid var(--line-gold-ink);
	border-radius: 4px;
	color: var(--ink-soft);
}

.contact__card p + p {
	margin-top: 1.1rem;
}

.contact__card strong {
	color: var(--navy);
	letter-spacing: 0.06em;
}

.contact__card a {
	color: var(--gold-ink);
	font-weight: 600;
	text-decoration-color: var(--line-gold-ink);
}

.contact__logo {
	width: min(220px, 75%);
	height: auto;
	margin-bottom: 1.4rem;
}

.form {
	display: grid;
	gap: 1.2rem;
}

.form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
}

.field label {
	display: block;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 0.76rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold-ink);
	margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.98rem;
	color: var(--ink);
	background: #fffdf7;
	border: 1px solid rgba(22, 35, 59, 0.18);
	border-radius: 3px;
	padding: 0.85rem 1rem;
	transition:
		border-color 0.25s,
		box-shadow 0.25s;
}

.field textarea {
	resize: vertical;
	min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.form .btn {
	justify-self: start;
}

.form__status {
	font-size: 0.9rem;
	color: var(--gold-ink);
	min-height: 1.4em;
}

.footer {
	background: #0a1220;
	border-top: 1px solid rgba(201, 162, 39, 0.15);
	padding: 3.5rem 0 2.5rem;
	color: var(--mist);
}

.footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 2.2rem;
	border-bottom: 1px solid var(--line-cream);
}

.brand--footer .brand__mono {
	height: 52px;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem;
	font-family: var(--font-label);
	font-weight: 500;
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.footer__nav a {
	color: var(--mist);
	text-decoration: none;
	transition: color 0.25s;
}

.footer__nav a:hover {
	color: var(--gold);
}

.footer__nav span {
	color: rgba(201, 162, 39, 0.4);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	font-size: 0.8rem;
	color: rgba(185, 196, 216, 0.65);
}

.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.75s var(--ease),
		transform 0.75s var(--ease);
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (max-width: 980px) {
	.maison,
	.contact {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.steps::before {
		display: none;
	}

	.step {
		padding-top: 4.4rem;
	}
}

@media (max-width: 860px) {
	.burger {
		display: flex;
	}

	.nav__links {
		position: fixed;
		top: var(--nav-h);
		left: 0;
		right: 0;
		z-index: 99;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		background: #0d1a30;
		border-bottom: 1px solid rgba(201, 162, 39, 0.2);
		box-shadow: 0 30px 50px -20px rgba(4, 8, 16, 0.7);
		padding: 0.6rem 5% 1.6rem;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition:
			transform 0.35s var(--ease),
			opacity 0.35s,
			visibility 0.35s;
	}

	.nav__links.open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav__links > a:not(.nav__cta) {
		width: 100%;
		padding: 1rem 0;
		font-size: 1.05rem;
		border-bottom: 1px solid rgba(246, 243, 236, 0.08);
	}

	.nav__cta {
		margin-top: 1.2rem;
	}
}

@media (max-width: 640px) {
	.hero {
		padding-bottom: 4rem;
	}

	.hero__mark {
		right: -30%;
		opacity: 0.05;
	}

	.form__row {
		grid-template-columns: 1fr;
	}

	.prog-grid {
		grid-template-columns: 1fr;
	}

	.footer__top {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer__bottom {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.rise {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.js .reveal {
		transition: none;
		opacity: 1;
		transform: none;
	}

	.btn {
		transition: none;
	}
}
