/* Site vitrine Kalkeo. Couleurs de la marque : encre, klein, pervenche ; vert d'eau pour la sélection,
   comme dans l'éditeur. Le panneau Style de Kalkeo modifie ce fichier. */

:root {
	--_colors---nuit: #0a0d1c;
	--_colors---panneau: #10142a;
	--_colors---filet: #272d52;
	--_colors---filet-fort: #3a4275;
	--_colors---encre: #0b1440;
	--_colors---klein: #2643ff;
	--_colors---klein-survol: #3d57ff;
	--_colors---pervenche: #9db6ff;
	--_colors---pervenche-vive: #5b78ff;
	--_colors---brume: #eef3ff;
	--_colors---blanc: #fff;
	--_colors---vert-deau: #8df0b8;
	--_colors---corail: #ff7566;
	--_colors---texte-clair: #eef3ff;
	--_colors---texte-attenue: #a2abcf;
	--_colors---encre-attenuee: #4a5380;
	--_typography---font-body: 'Instrument Sans', system-ui, sans-serif;
	--_typography---font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	--_typography---hero-size: clamp(2.625rem, 1.1rem + 5.6vw, 5.5rem);
	--_typography---h2-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
	--_typography---h3-size: 1.3125rem;
	--_typography---large-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	--_typography---mono-size: 0.8125rem;
	--_layout---largeur: 76rem;
	--_layout---gouttiere: clamp(1.25rem, 4vw, 3rem);
	--_layout---section: clamp(5rem, 3rem + 7vw, 9rem);
	--_layout---chevauchement: clamp(3rem, 11vw, 10rem);
	--_motion---rapide: 150ms;
	--_motion---sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

/* Couleurs courantes : sombres par défaut, inversées dans les sections .theme-clair. */
body {
	--texte: var(--_colors---texte-clair);
	--attenue: var(--_colors---texte-attenue);
	--accent: var(--_colors---pervenche);
	--filet: var(--_colors---filet);
	background-color: var(--_colors---nuit);
	color: var(--texte);
	font-family: var(--_typography---font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.theme-clair {
	--texte: var(--_colors---encre);
	--attenue: var(--_colors---encre-attenuee);
	--accent: var(--_colors---klein);
	--filet: rgb(11 20 64 / 0.12);
	color: var(--texte);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible + span {
	outline: 2px solid var(--_colors---vert-deau);
	outline-offset: 3px;
}

.theme-clair a:focus-visible,
.theme-clair summary:focus-visible,
.theme-clair input:focus-visible + span {
	outline-color: var(--_colors---klein);
}

.container {
	width: min(100% - 2 * var(--_layout---gouttiere), var(--_layout---largeur));
	margin-inline: auto;
}

/* ---- Texte ------------------------------------------------------------------------ */

.eyebrow {
	margin: 0;
	color: var(--accent);
	font-family: var(--_typography---font-mono);
	font-size: var(--_typography---mono-size);
	line-height: 1.4;
}

.heading-h2 {
	margin: 0;
	font-size: var(--_typography---h2-size);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.04;
	text-wrap: balance;
}

.heading-h3 {
	margin: 0;
	font-size: var(--_typography---h3-size);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.text-large {
	margin: 0;
	color: var(--attenue);
	font-size: var(--_typography---large-size);
	line-height: 1.55;
	text-wrap: pretty;
}

.text-base {
	margin: 0;
	color: var(--attenue);
	text-wrap: pretty;
}

.inline-code {
	padding: 0.1em 0.35em;
	border-radius: 0.3em;
	background-color: rgb(38 67 255 / 0.1);
	color: var(--accent);
	font-family: var(--_typography---font-mono);
	font-size: 0.875em;
}

.section-head {
	display: grid;
	gap: 1.25rem;
	max-width: 46rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---- Boutons ---------------------------------------------------------------------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	height: 3rem;
	padding: 0 1.375rem;
	border-radius: 0.75rem;
	background-color: var(--_colors---klein);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.2),
		0 10px 28px rgb(38 67 255 / 0.4);
	color: var(--_colors---blanc);
	font-weight: 600;
	text-decoration: none;
	transition:
		transform var(--_motion---rapide) var(--_motion---sortie),
		background-color var(--_motion---rapide);
}

.button:hover {
	background-color: var(--_colors---klein-survol);
	transform: translateY(-2px);
}

.button:active {
	transform: scale(0.98);
}

.button.is-small {
	height: 2.375rem;
	padding: 0 0.875rem;
	border-radius: 0.625rem;
	box-shadow: none;
	font-size: 0.9375rem;
}

.button.is-ghost {
	background-color: rgb(157 182 255 / 0.1);
	box-shadow: inset 0 0 0 1px rgb(157 182 255 / 0.24);
	color: var(--_colors---texte-clair);
}

.button.is-ghost:hover {
	background-color: rgb(157 182 255 / 0.18);
}

.button-text {
	line-height: 1;
	white-space: nowrap;
}

.button-icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
}

/* ---- En-tête (bloc partagé) --------------------------------------------------------- */

.site-header {
	position: fixed;
	z-index: 50;
	top: 0.75rem;
	right: 0;
	left: 0;
	padding-inline: var(--_layout---gouttiere);
	pointer-events: none;
}

.skip-link {
	position: absolute;
	top: -4rem;
	left: var(--_layout---gouttiere);
	padding: 0.5rem 0.875rem;
	border-radius: 0.5rem;
	background-color: var(--_colors---vert-deau);
	color: var(--_colors---encre);
	font-weight: 600;
	pointer-events: auto;
}

.skip-link:focus {
	top: 4rem;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--_layout---largeur);
	height: 3.5rem;
	margin-inline: auto;
	padding: 0 0.5625rem 0 1rem;
	border: 1px solid rgb(157 182 255 / 0.16);
	border-radius: 1rem;
	background-color: rgb(10 13 28 / 0.9);
	box-shadow: 0 12px 40px rgb(7 9 20 / 0.35);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	pointer-events: auto;
}

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--_colors---texte-clair);
	text-decoration: none;
}

.brand-wordmark {
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1;
}

.nav-links,
.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav-link {
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	color: var(--_colors---texte-attenue);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition:
		color var(--_motion---rapide),
		background-color var(--_motion---rapide);
}

.nav-link:hover {
	background-color: rgb(157 182 255 / 0.1);
	color: var(--_colors---texte-clair);
}

/* ---- Héros ------------------------------------------------------------------------- */

.section-hero {
	position: relative;
	padding-top: clamp(8rem, 6rem + 8vw, 12rem);
	background:
		radial-gradient(70rem 36rem at 88% -8%, rgb(38 67 255 / 0.36), transparent 70%) no-repeat,
		radial-gradient(44rem 28rem at -6% 62%, rgb(91 120 255 / 0.12), transparent 70%) no-repeat;
}

/* Le pointillé du plan de travail, qui s'efface loin du halo. */
.hero-grid {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(157 182 255 / 0.2) 1px, transparent 1px);
	background-size: 24px 24px;
	-webkit-mask-image: radial-gradient(60rem 34rem at 78% 12%, #000, transparent 72%);
	mask-image: radial-gradient(60rem 34rem at 78% 12%, #000, transparent 72%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	display: grid;
	justify-items: start;
	gap: 1.75rem;
}

.hero-content > * {
	animation: monte 900ms var(--_motion---sortie) both;
}

.hero-content > :nth-child(2) {
	animation-delay: 80ms;
}

.hero-content > :nth-child(3) {
	animation-delay: 160ms;
}

.hero-content > :nth-child(4) {
	animation-delay: 240ms;
}

.hero-content > :nth-child(5) {
	animation-delay: 320ms;
}

.hero-title {
	max-width: 14em;
	margin: 0;
	font-size: var(--_typography---hero-size);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 0.98;
}

.hero-title-second {
	display: block;
	color: var(--_colors---pervenche);
	text-wrap: balance;
}

/* Le passage « sélectionné », comme un élément dans l'éditeur : cadre vert d'eau et étiquette. */
.hero-em {
	position: relative;
	font-style: normal;
	white-space: nowrap;
}

.hero-em::before {
	content: '';
	position: absolute;
	inset: 0.04em -0.07em -0.02em;
	border: 2px solid var(--_colors---vert-deau);
	border-radius: 2px;
	animation: apparait 400ms 1000ms both;
}

.selection-tag {
	position: absolute;
	bottom: calc(100% - 0.04em);
	left: -0.07em;
	padding: 0.3rem 0.45rem;
	border-radius: 3px 3px 3px 0;
	background-color: var(--_colors---vert-deau);
	color: var(--_colors---encre);
	font-family: var(--_typography---font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
	animation: apparait 300ms 1250ms both;
}

.selection-tag.is-static {
	bottom: calc(100% + 2px);
	left: -2px;
	animation: none;
}

.hero-lead {
	max-width: 39rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.reassurance-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	color: var(--_colors---texte-attenue);
	font-family: var(--_typography---font-mono);
	font-size: var(--_typography---mono-size);
	list-style: none;
}

.reassurance-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.reassurance-item::before {
	content: '';
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background-color: var(--_colors---vert-deau);
}

/* La capture déborde sur la section suivante : elle relie le héros sombre à l'atelier clair. */
.hero-visual {
	position: relative;
	z-index: 1;
	margin-top: clamp(3rem, 6vw, 5rem);
	margin-bottom: calc(-1 * var(--_layout---chevauchement));
	overflow: hidden;
	border: 1px solid var(--_colors---filet-fort);
	border-radius: 1rem;
	background-color: var(--_colors---panneau);
	box-shadow:
		0 0 0 6px rgb(157 182 255 / 0.07),
		0 40px 120px rgb(38 67 255 / 0.4),
		0 24px 60px rgb(7 9 20 / 0.55);
	animation: monte 1100ms 380ms var(--_motion---sortie) both;
}

.hero-visual-image {
	width: 100%;
	height: auto;
}

@keyframes monte {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
}

@keyframes apparait {
	from {
		opacity: 0;
	}
}

/* ---- Atelier : ce que tu changes, ce que Kalkeo écrit -------------------------------- */

.section-atelier {
	padding: calc(var(--_layout---section) + var(--_layout---chevauchement)) 0 var(--_layout---section);
	background-color: var(--_colors---brume);
}

/* Valeurs de départ ; les cases cochées les remplacent plus bas, sans script. */
.atelier {
	--atelier-fond: #2643ff;
	--atelier-encre: #fff;
	--atelier-rayon: 10px;
	--atelier-fond-texte: '#2643ff';
	--atelier-rayon-texte: '10px';
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 1.25rem;
}

.atelier:has(#fond-pervenche:checked) {
	--atelier-fond: #5b78ff;
	--atelier-fond-texte: '#5b78ff';
}

.atelier:has(#fond-menthe:checked) {
	--atelier-fond: #8df0b8;
	--atelier-encre: #0b1440;
	--atelier-fond-texte: '#8df0b8';
}

.atelier:has(#fond-corail:checked) {
	--atelier-fond: #ff7566;
	--atelier-encre: #0b1440;
	--atelier-fond-texte: '#ff7566';
}

.atelier:has(#rayon-droit:checked) {
	--atelier-rayon: 0;
	--atelier-rayon-texte: '0';
}

.atelier:has(#rayon-pilule:checked) {
	--atelier-rayon: 999px;
	--atelier-rayon-texte: '999px';
}

.atelier-pane {
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
	border-radius: 1.25rem;
	box-shadow: 0 34px 60px -34px rgb(11 20 64 / 0.4);
}

.atelier-canvas {
	border: 1px solid var(--filet);
	background-color: var(--_colors---blanc);
}

.atelier-code {
	border: 1px solid var(--_colors---filet);
	background-color: var(--_colors---nuit);
	color: var(--_colors---texte-clair);
}

.pane-label {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1.125rem;
	border-bottom: 1px solid var(--filet);
	color: var(--attenue);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
}

.pane-label.is-dark {
	border-color: var(--_colors---filet);
	color: var(--_colors---texte-attenue);
}

.code-state.is-before {
	color: var(--_colors---vert-deau);
}

.code-state.is-after,
.is-published .code-state.is-before,
.is-published .publish-count {
	display: none;
}

.is-published .code-state.is-after {
	display: inline;
}

.atelier-stage {
	display: grid;
	place-items: center;
	min-height: 15rem;
	padding: 3rem 1.5rem 2.5rem;
	background-image: radial-gradient(rgb(11 20 64 / 0.14) 1px, transparent 1px);
	background-size: 20px 20px;
}

/* Vert d'eau doublé d'un filet d'encre : la sélection reste visible sur un fond clair. */
.atelier-target {
	position: relative;
	box-shadow:
		0 0 0 2px var(--_colors---vert-deau),
		0 0 0 3px rgb(11 20 64 / 0.6);
}

.atelier-button {
	padding: 0.9375rem 1.625rem;
	border-radius: var(--atelier-rayon);
	background-color: var(--atelier-fond);
	color: var(--atelier-encre);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	transition:
		background-color 300ms,
		color 300ms,
		border-radius 300ms var(--_motion---sortie);
}

.atelier-controls {
	display: grid;
	gap: 0.875rem;
	padding: 1.125rem;
	border-top: 1px solid var(--filet);
	background-color: #f7f9ff;
}

.control {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.control-label {
	width: 4rem;
	color: var(--attenue);
	font-size: 0.875rem;
	font-weight: 500;
}

.control-options {
	display: flex;
	gap: 0.625rem;
}

.control-options.is-segments {
	gap: 0;
	padding: 0.1875rem;
	border-radius: 0.5rem;
	background-color: rgb(11 20 64 / 0.07);
}

.swatch,
.segment {
	position: relative;
	cursor: pointer;
}

.swatch-input,
.segment-input {
	position: absolute;
	opacity: 0;
}

.swatch-chip {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgb(11 20 64 / 0.14);
	transition: transform var(--_motion---rapide) var(--_motion---sortie);
}

.swatch:hover .swatch-chip {
	transform: scale(1.1);
}

.swatch-input:checked + .swatch-chip {
	box-shadow:
		0 0 0 2px var(--_colors---blanc),
		0 0 0 4px var(--_colors---encre);
}

.swatch-chip.is-klein {
	background-color: #2643ff;
}

.swatch-chip.is-pervenche {
	background-color: #5b78ff;
}

.swatch-chip.is-menthe {
	background-color: #8df0b8;
}

.swatch-chip.is-corail {
	background-color: #ff7566;
}

.segment-text {
	display: block;
	min-width: 3.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	color: var(--attenue);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
	text-align: center;
}

.segment-input:checked + .segment-text {
	background-color: var(--_colors---blanc);
	box-shadow: 0 1px 3px rgb(11 20 64 / 0.18);
	color: var(--_colors---encre);
}

.code-diff {
	align-self: center;
	padding: 1.25rem 0;
	overflow-x: auto;
	font-family: var(--_typography---font-mono);
	font-size: 0.875rem;
	line-height: 2;
}

.diff-line {
	display: flex;
	min-width: max-content;
	padding-inline: 1.125rem;
}

.diff-line.is-moins {
	background-color: rgb(255 117 102 / 0.1);
	color: #ffb3a9;
}

.diff-line.is-plus {
	background-color: rgb(141 240 184 / 0.1);
	color: var(--_colors---vert-deau);
}

.diff-sign {
	flex: none;
	width: 1.5rem;
	user-select: none;
}

.diff-text {
	font: inherit;
	white-space: nowrap;
}

.diff-text.is-retrait {
	padding-left: 1.5rem;
}

.diff-value.is-fond::after {
	content: var(--atelier-fond-texte);
}

.diff-value.is-rayon::after {
	content: var(--atelier-rayon-texte);
}

.code-foot {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.125rem;
	border-top: 1px solid var(--_colors---filet);
}

.publish {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	height: 2.25rem;
	padding: 0 0.875rem;
	border-radius: 0.5rem;
	background-color: var(--_colors---klein);
	color: var(--_colors---blanc);
	font-size: 0.875rem;
	font-weight: 600;
	transition: background-color var(--_motion---rapide);
}

.publish:hover {
	background-color: var(--_colors---klein-survol);
}

.publish-count {
	min-width: 1.25rem;
	padding: 0.1875rem 0.3125rem;
	border-radius: 999px;
	background-color: rgb(255 255 255 / 0.22);
	font-family: var(--_typography---font-mono);
	font-size: 0.6875rem;
	line-height: 1;
}

.publish-status {
	margin: 0;
	color: var(--_colors---texte-attenue);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
	line-height: 1.5;
}

.atelier-note {
	max-width: 42rem;
	margin: 2rem 0 0;
	padding-left: 1rem;
	border-left: 2px solid var(--_colors---klein);
	color: var(--attenue);
}

/* ---- Fonctions ---------------------------------------------------------------------- */

.section-fonctions {
	padding: var(--_layout---section) 0;
	background: radial-gradient(50rem 30rem at 10% 0%, rgb(38 67 255 / 0.16), transparent 70%) no-repeat;
}

.bento {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
}

.bento-cell {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.75rem;
	border: 1px solid var(--_colors---filet);
	border-radius: 1.25rem;
	background: linear-gradient(180deg, var(--_colors---panneau), rgb(16 20 42 / 0.4));
	grid-column: span 2;
	transition: border-color 300ms;
}

.bento-cell:hover {
	border-color: var(--_colors---pervenche-vive);
}

.bento-cell.is-a {
	grid-column: span 3;
	grid-row: span 2;
	padding: 2.25rem;
	background:
		radial-gradient(30rem 20rem at 100% 100%, rgb(38 67 255 / 0.28), transparent 70%), var(--_colors---panneau);
}

.bento-cell.is-b,
.bento-cell.is-c {
	grid-column: span 3;
}

.cell-tag {
	margin: 0 0 0.25rem;
	color: var(--_colors---pervenche);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
}

.keys {
	display: grid;
	margin: auto 0 0;
	padding-top: 1.75rem;
}

.keys-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid rgb(157 182 255 / 0.14);
}

.keys-combo {
	display: flex;
	gap: 0.25rem;
}

.keys-effect {
	margin: 0;
	color: var(--_colors---texte-attenue);
	font-size: 0.9375rem;
	text-align: right;
}

.key {
	min-width: 1.75rem;
	padding: 0.3125rem 0.5rem;
	border: 1px solid var(--_colors---filet-fort);
	border-bottom-width: 2px;
	border-radius: 0.375rem;
	background-color: rgb(157 182 255 / 0.08);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1.25rem;
	font-family: var(--_typography---font-mono);
	font-size: var(--_typography---mono-size);
}

.chip {
	padding: 0.375rem 0.625rem;
	border: 1px solid var(--_colors---filet-fort);
	border-radius: 0.375rem;
}

.chip.is-set {
	border-color: var(--_colors---vert-deau);
	background-color: rgb(141 240 184 / 0.14);
	color: var(--_colors---vert-deau);
}

.chip-note {
	margin-left: 0.5rem;
	color: var(--_colors---texte-attenue);
}

.screens {
	display: grid;
	gap: 0.375rem;
	margin: auto 0 0;
	padding: 1.25rem 0 0;
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
	list-style: none;
}

.screen {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.4375rem 0.75rem;
	border-radius: 0.375rem;
	background-color: rgb(157 182 255 / 0.1);
	color: var(--_colors---texte-attenue);
	white-space: nowrap;
}

.screen.is-ordinateur {
	background-color: var(--_colors---klein);
	color: var(--_colors---blanc);
}

.screen.is-tablette {
	width: 78%;
}

.screen.is-paysage {
	width: 62%;
}

.screen.is-mobile {
	width: 46%;
}

/* ---- Dépôt : étapes et arborescence ---------------------------------------------------- */

.section-depot {
	padding: var(--_layout---section) 0;
	background-color: var(--_colors---blanc);
}

.depot {
	display: grid;
	grid-template-columns: 1fr minmax(0, 27rem);
	align-items: start;
	gap: clamp(2rem, 6vw, 6rem);
}

.steps {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem 1fr;
	gap: 1.25rem;
	padding-bottom: 2.25rem;
}

.step::before {
	content: '';
	position: absolute;
	top: 2.75rem;
	bottom: 0;
	left: 1.375rem;
	width: 1px;
	background-color: var(--filet);
}

.step:last-child {
	padding-bottom: 0;
}

.step:last-child::before {
	display: none;
}

.step-number {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--_colors---klein);
	border-radius: 50%;
	color: var(--_colors---klein);
	font-family: var(--_typography---font-mono);
	font-size: var(--_typography---mono-size);
}

.step-body {
	display: grid;
	gap: 0.375rem;
	max-width: 34rem;
	padding-top: 0.5rem;
}

.tree-card {
	position: sticky;
	top: 6rem;
	padding: 1.5rem;
	border-radius: 1.25rem;
	background: radial-gradient(22rem 14rem at 100% 0%, rgb(38 67 255 / 0.35), transparent 70%), var(--_colors---nuit);
	box-shadow: 0 34px 60px -30px rgb(11 20 64 / 0.55);
	color: var(--_colors---texte-clair);
	font-family: var(--_typography---font-mono);
	font-size: var(--_typography---mono-size);
}

.tree-title {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.tree-branch {
	padding: 0.1875rem 0.5rem;
	border-radius: 999px;
	background-color: rgb(157 182 255 / 0.16);
	color: var(--_colors---pervenche);
	font-size: 0.6875rem;
}

.tree {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tree-line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.625rem;
	border-radius: 0.375rem;
}

.tree-line.is-enfant {
	padding-left: 1.875rem;
}

.tree-line.is-set {
	background-color: rgb(141 240 184 / 0.12);
	color: var(--_colors---vert-deau);
}

.tree-note {
	color: var(--_colors---texte-attenue);
	font-family: var(--_typography---font-body);
	text-align: right;
}

.tree-foot {
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--_colors---filet);
	color: var(--_colors---texte-attenue);
	font-family: var(--_typography---font-body);
	font-size: 0.9375rem;
}

/* ---- Hébergement : de Publier au site en ligne ------------------------------------------- */

.section-hebergement {
	padding: var(--_layout---section) 0;
	background: radial-gradient(56rem 30rem at 92% 100%, rgb(38 67 255 / 0.22), transparent 70%) no-repeat;
}

.pipeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin: 0 0 clamp(2.5rem, 5vw, 4rem);
	padding: 0;
	list-style: none;
}

.pipeline-step {
	position: relative;
	display: grid;
	gap: 0.375rem;
	padding-top: 2rem;
}

/* Le trait entre deux étapes, puis la publication qui le parcourt. */
.pipeline-step::before,
.pipeline-step::after {
	content: '';
	position: absolute;
	top: 0.4375rem;
	left: 0;
	width: calc(100% + 1.5rem);
	height: 2px;
	background-color: var(--_colors---filet-fort);
}

.pipeline-step::after {
	background: linear-gradient(90deg, var(--_colors---klein), var(--_colors---vert-deau));
	transform-origin: left center;
	animation: coule 6s var(--_motion---sortie) infinite backwards;
}

.pipeline-step:nth-child(2)::after {
	animation-delay: 700ms;
}

.pipeline-step:nth-child(3)::after {
	animation-delay: 1400ms;
}

.pipeline-step.is-last::before,
.pipeline-step.is-last::after {
	display: none;
}

.pipeline-dot {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--_colors---pervenche);
	border-radius: 50%;
	background-color: var(--_colors---nuit);
}

.is-last .pipeline-dot {
	border-color: var(--_colors---vert-deau);
	background-color: var(--_colors---vert-deau);
	box-shadow: 0 0 0 5px rgb(141 240 184 / 0.18);
}

.pipeline-label {
	margin: 0;
	font-family: var(--_typography---font-mono);
	font-size: 0.9375rem;
	font-weight: 500;
}

.pipeline-text {
	max-width: 15rem;
	margin: 0;
	color: var(--_colors---texte-attenue);
	font-size: 0.9375rem;
}

@keyframes coule {
	0% {
		transform: scaleX(0);
	}

	18%,
	78% {
		opacity: 1;
		transform: scaleX(1);
	}

	100% {
		opacity: 0;
		transform: scaleX(1);
	}
}

@keyframes coule-bas {
	0% {
		transform: scaleY(0);
	}

	18%,
	78% {
		opacity: 1;
		transform: scaleY(1);
	}

	100% {
		opacity: 0;
		transform: scaleY(1);
	}
}

/* ---- Tarif ---------------------------------------------------------------------------- */

.section-tarif {
	padding: var(--_layout---section) 0;
	background-color: var(--_colors---brume);
}

.pricing {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 1rem;
}

.pricing-card {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 1.75rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: 1.5rem;
}

.pricing-card.is-featured {
	--attenue: var(--_colors---texte-attenue);
	background: radial-gradient(34rem 22rem at 100% 0%, rgb(38 67 255 / 0.5), transparent 70%), var(--_colors---nuit);
	box-shadow: 0 40px 70px -34px rgb(38 67 255 / 0.55);
	color: var(--_colors---texte-clair);
}

.pricing-card.is-soon {
	border: 1px dashed rgb(11 20 64 / 0.28);
}

.pricing-head {
	display: grid;
	gap: 0.375rem;
}

.badge {
	margin-left: 0.375rem;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	background-color: rgb(38 67 255 / 0.12);
	color: var(--_colors---klein);
	font-family: var(--_typography---font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0;
	vertical-align: middle;
}

.price {
	margin: 0;
	font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
}

.price.is-muted {
	color: rgb(11 20 64 / 0.55);
}

.price-note {
	color: var(--attenue);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
}

.check-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-item {
	display: flex;
	gap: 0.75rem;
}

.check-item::before {
	content: '✓';
	color: var(--_colors---vert-deau);
	font-family: var(--_typography---font-mono);
}

.is-soon .check-item::before {
	color: var(--_colors---klein);
}

.pricing-card .button {
	margin-top: auto;
}

.pricing-foot {
	margin: auto 0 0;
	color: var(--attenue);
	font-size: 0.9375rem;
}

/* ---- Questions ------------------------------------------------------------------------- */

.section-faq {
	padding: var(--_layout---section) 0;
	background-color: var(--_colors---blanc);
}

.faq {
	display: grid;
	grid-template-columns: minmax(0, 22rem) 1fr;
	align-items: start;
	gap: clamp(1rem, 6vw, 6rem);
}

.faq-item {
	border-top: 1px solid var(--filet);
}

.faq-item:last-child {
	border-bottom: 1px solid var(--filet);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.25rem 0;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
	transition: color var(--_motion---rapide);
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question::after {
	content: '+';
	color: var(--_colors---klein);
	font-family: var(--_typography---font-mono);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 300ms var(--_motion---sortie);
}

.faq-question:hover {
	color: var(--_colors---klein);
}

.faq-item[open] .faq-question::after {
	transform: rotate(45deg);
}

.faq-answer {
	max-width: 40rem;
	margin: 0;
	padding-bottom: 1.5rem;
	color: var(--attenue);
}

/* ---- Appel final et pied de page (bloc partagé) ------------------------------------------ */

.section-cta {
	padding: var(--_layout---section) 0 clamp(3rem, 6vw, 5rem);
	background: radial-gradient(60rem 32rem at 85% 0%, rgb(38 67 255 / 0.32), transparent 70%) no-repeat;
}

.cta {
	display: grid;
	justify-items: start;
	gap: 1.5rem;
}

.cta-title {
	margin: 0;
	font-size: clamp(2.5rem, 1rem + 6vw, 5.5rem);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
}

.cta-lead {
	margin-bottom: 0.5rem;
}

.footer {
	overflow: hidden;
	border-top: 1px solid var(--_colors---filet);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: start;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 3rem;
}

.footer-brand {
	display: grid;
	justify-items: start;
	gap: 0.875rem;
}

.footer-tagline {
	max-width: 20rem;
	margin: 0;
	color: var(--_colors---texte-attenue);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.footer-link {
	color: var(--_colors---texte-attenue);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color var(--_motion---rapide);
}

.footer-link:hover {
	color: var(--_colors---texte-clair);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-top: 3rem;
}

.footer-note {
	margin: 0;
	color: var(--_colors---texte-attenue);
	font-family: var(--_typography---font-mono);
	font-size: 0.75rem;
}

/* Le mot de la marque, en très grand, coupé par le bas de la page. */
.footer-wordmark {
	margin: 1rem 0 -0.24em;
	background: linear-gradient(180deg, var(--_colors---klein), rgb(38 67 255 / 0) 88%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(7rem, 31vw, 30rem);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 0.8;
	text-align: center;
	user-select: none;
}

/* ---- Page introuvable -------------------------------------------------------------------- */

.section-missing {
	display: grid;
	align-content: center;
	min-height: 80vh;
	padding: 9rem 0 var(--_layout---section);
	background: radial-gradient(60rem 32rem at 85% 0%, rgb(38 67 255 / 0.32), transparent 70%) no-repeat;
}

/* ---- Tablette, mobile paysage, mobile ------------------------------------------------------ */

@media screen and (max-width: 991px) {
	.nav-links {
		display: none;
	}

	.atelier,
	.depot,
	.pricing,
	.faq {
		grid-template-columns: 1fr;
	}

	.bento-cell.is-a {
		grid-column: span 6;
	}

	.tree-card {
		position: static;
	}

	.faq .section-head {
		margin-bottom: 0;
	}
}

@media screen and (max-width: 767px) {
	.hero-em {
		display: block;
		width: fit-content;
	}

	.hero-em .selection-tag {
		top: 0.04em;
		bottom: auto;
		left: calc(100% + 0.07em);
		border-radius: 0 3px 3px 0;
	}

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

	.pipeline-step {
		padding: 0 0 0 2.25rem;
	}

	.pipeline-step::before,
	.pipeline-step::after {
		top: 0;
		left: 0.4375rem;
		width: 2px;
		height: calc(100% + 1.5rem);
	}

	.pipeline-step::after {
		background: linear-gradient(180deg, var(--_colors---klein), var(--_colors---vert-deau));
		transform-origin: center top;
		animation-name: coule-bas;
	}

	.pipeline-text {
		max-width: none;
	}

	.bento-cell,
	.bento-cell.is-b,
	.bento-cell.is-c {
		grid-column: span 6;
	}

	.bento-cell,
	.bento-cell.is-a {
		padding: 1.5rem;
	}

	.code-foot {
		flex-direction: column;
		align-items: start;
	}

	.hero-visual {
		border-radius: 0.625rem;
	}
}

@media screen and (max-width: 479px) {
	.nav-link.is-login {
		display: none;
	}

	.hero-actions,
	.hero-actions .button {
		width: 100%;
	}

	.keys-effect {
		font-size: 0.875rem;
	}

	.tree-note {
		display: none;
	}

	.control-label {
		width: 3.25rem;
	}
}
