.autonome {
	margin-top: 12rem;
}

.autonome h1 {
	font-family: "Rethink Sans", sans-serif;
	font-size: clamp(2.5rem, 5vw + 1.5rem, 5rem);
	font-weight: 700;
	color: var(--fg-dark);
	text-align: center;
	padding-inline: 1rem;
}

.autonome h2 {
	margin-top: 8rem;
	font-family: "Rethink Sans", sans-serif;
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 700;
	color: var(--fg-dark);
	text-align: center;
	padding-inline: 1rem;
}

.autonome .txtBox {
	margin-top: 6rem;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.autonome .txt1 {
	width: 50vw;
	max-width: 700px;
	text-wrap: balance;
	padding-inline: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--fg-light);
}

.autonome .graph {
	width: 50vw;
	max-width: 700px;
	height: 280px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}


/* Aperçu site + administration */
.adminPreview {
	width: 270px;
	height: 225px;
	position: relative;
}

.siteWindow,
.adminWindow {
	position: absolute;
	background: #fff;
	box-shadow: 0 0 35px #00000012;
	box-sizing: border-box;
}

.siteWindow {
	width: 165px;
	height: 190px;
	left: 0;
	top: 0;
	border-radius: 1.2rem;
	padding: .75rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	transform: rotate(-3deg);
}

.adminWindow {
	width: 175px;
	height: 155px;
	right: 0;
	bottom: 0;
	border-radius: 1rem;
	padding: .65rem;
	z-index: 3;
	animation: adminFloat 4s ease-in-out infinite;
}

.windowBar {
	display: flex;
	gap: .25rem;
}

.windowBar span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #dadade;
}

.siteHero {
	height: 70px;
	border-radius: .8rem;
	background: #f1f1f4;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: .7rem;
	gap: .4rem;
}

.siteHero div:first-child {
	width: 80%;
	height: 8px;
	border-radius: 1rem;
	background: oklch(62.3% 0.214 259.815);
}

.siteHero div:last-child {
	width: 55%;
	height: 6px;
	border-radius: 1rem;
	background: #ceced3;
}

.siteCards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .35rem;
}

.siteCards span {
	height: 45px;
	border-radius: .55rem;
	background: #f0f0f3;
}

.adminTop {
	display: flex;
	align-items: center;
	gap: .5rem;
	height: 18px;
}

.adminTop span {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: oklch(62.3% 0.214 259.815);
}

.adminTop div {
	width: 55px;
	height: 6px;
	border-radius: 1rem;
	background: #dedee3;
}

.adminContent {
	display: flex;
	gap: .55rem;
	height: calc(100% - 18px);
	margin-top: .5rem;
}

.adminSidebar {
	width: 35px;
	background: #f3f3f5;
	border-radius: .6rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .45rem;
	box-sizing: border-box;
}

.adminSidebar span {
	height: 5px;
	border-radius: 1rem;
	background: #cfcfd4;
}

.adminMain {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .45rem;
	padding-top: .25rem;
}

.adminTitle {
	width: 65%;
	height: 7px;
	border-radius: 1rem;
	background: #bfc0c5;
}

.adminField {
	width: 100%;
	height: 24px;
	border-radius: .45rem;
	background: #f0f0f3;
}

.adminField.short {
	width: 78%;
}

.adminButton {
	margin-top: auto;
	width: 42%;
	height: 15px;
	border-radius: 1rem;
	background: oklch(62.3% 0.214 259.815);
}

@keyframes adminFloat {
	0%, 100% {
		transform: translateY(0) rotate(1deg);
	}

	50% {
		transform: translateY(-7px) rotate(1deg);
	}
}


/* Bloc afficher plus */
.txtBox2 {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	padding-inline: 1rem;
	transition: .2s ease;
}

.txtBox2 .btn-box {
	display: flex;
	justify-content: center;
}

.txtBox2 .txt2 {
	box-sizing: border-box;
	padding-inline: 3rem;
	padding-bottom: 1.25rem;
	padding-top: 2rem;
	width: 100%;
	max-width: 950px;
	border-radius: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	transition: .2s ease;
	background: #fff;
	box-shadow: 0 0 30px #00000011;
}

.txtBox2 .txt2 .parag {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	/*height: 100px;*/
	overflow: hidden;
	position: relative;
	transition: .2s ease;
}

.txtBox2 .txt2 .mask {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #fff, #00000000);
	pointer-events: none;
}

.txtBox2 .txt2 .parag.deployed {
	height: 100%;
}

.txtBox2 .txt2 .parag.deployed .mask {
	display: none;
}

.txtBox2 button {
	display: flex;
	background: none;
	border: none;
	outline: none;
	justify-content: center;
	align-items: center;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: #686868;
	gap: .25rem;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.txtBox2 .open svg {
	transition: transform .3s ease;
}

.txtBox2 .parag.deployed ~ .btn-box .open svg {
	transform: rotate(180deg);
}


/* Grille principale */
#autonomeCard {
	background: var(--bg-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-inline: 1rem;
	margin-top: 8rem;
	padding-bottom: 8rem;
}

#autonomeCard h2 {
	color: var(--fg-dark);
	margin-bottom: 4rem;
}

.cardBox {
	width: 100%;
	max-width: 1200px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, auto);
	gap: 1rem;
	padding-inline: 1rem;
	box-sizing: border-box;
}

.cardAutonome {
	background: #fff;
	color: var(--fg-dark);
	padding-block: 2rem;
	padding-inline: 2.5rem;
	padding-bottom: 2.5rem;
	width: 100%;
	border-radius: 2rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	position: relative;
	box-shadow: 0 0 30px #00000011;
}

.cardAutonome p {
	margin-bottom: 1rem;
	font-size: 1.12rem;
}

.cardAutonome h3 {
	font-size: 2rem;
}

.cardAutonome .detail {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-top: 1.5rem;
}

.cardAutonome ul {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.cardAutonome ul li {
	position: relative;
	padding-left: 1.25rem;
	line-height: 1.25rem;
	color: #686868;
}

.cardAutonome ul li::before {
	position: absolute;
	left: 0;
	content: "✓";
	color: oklch(62.3% 0.214 259.815);
}


/* Cas d'utilisation */
.useCases {
	width: calc(100% - 2rem);
	max-width: 1200px;
	margin: 4rem auto 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.useCase {
	background: #fff;
	border-radius: 2rem;
	box-shadow: 0 0 30px #0000000d;
	padding: 2rem;
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.useCaseNumber {
	font-family: "Rethink Sans", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: oklch(62.3% 0.214 259.815);
	padding-top: .35rem;
	min-width: 25px;
}

.useCase h3 {
	font-size: 1.65rem;
	margin-bottom: .5rem;
}

.useCase p {
	color: #686868;
	line-height: 1.5;
	font-size: 1.05rem;
}


/* Fonctionnement */
.adminSteps {
	width: calc(100% - 2rem);
	max-width: 950px;
	margin: 4rem auto 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.adminStep {
	background: #fff;
	box-shadow: 0 0 30px #0000000d;
	border-radius: 1.5rem;
	padding: 1.5rem 2rem;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.adminStep > span {
	font-family: "Rethink Sans", sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: oklch(62.3% 0.214 259.815);
	min-width: 38px;
}

.adminStep div {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.adminStep h3 {
	font-size: 1.45rem;
}

.adminStep p {
	font-size: 1.05rem;
	color: #686868;
	line-height: 1.5;
}


/* Texte bas */
.txtBox3 {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 1rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-top: 4rem;
	margin-bottom: 12rem;
	padding-inline: 1rem;
}

.txtBox3 p {
	max-width: 950px;
	width: 100%;
}


/* CTA final */
.autonomeCta {
	max-width: 950px;
	margin: 0 auto 8rem auto;
	padding: 3.5rem 2rem;
	box-sizing: border-box;
	text-align: center;
	background: #fff;
	border-radius: 2rem;
	box-shadow: 0 0 30px #00000011;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.autonomeCta p {
	font-size: 1.1rem;
	color: #686868;
}

.autonomeCta h2 {
	margin-top: 0;
	padding: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.autonomeCtaBtn {
	margin-top: .5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.5rem;
	border-radius: 999px;
	text-decoration: none;
	background: var(--fg-dark);
	color: #fff;
	font-weight: 600;
	transition: transform .2s ease, opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.autonomeCtaBtn:hover {
	transform: translateY(-2px);
	opacity: .9;
}


@media (max-width: 720px) {

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


@media (max-width: 620px) {

	.autonome .txt1 {
		width: 70vw;
	}

	.autonome .graph {
		height: 180px;
		width: 30vw;
	}

	.adminPreview {
		width: 190px;
		height: 160px;
	}

	.siteWindow {
		width: 115px;
		height: 135px;
		padding: .5rem;
		border-radius: .85rem;
		gap: .4rem;
	}

	.adminWindow {
		width: 125px;
		height: 110px;
		padding: .45rem;
	}

	.siteHero {
		height: 47px;
		padding: .45rem;
	}

	.siteCards span {
		height: 30px;
	}

	.adminSidebar {
		width: 25px;
	}

	.adminField {
		height: 16px;
	}

	.txtBox2 .txt2 {
		padding-inline: 1.75rem;
		padding-top: 1.5rem;
	}

	.cardBox {
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(6, auto);
		gap: 1rem;
		padding-inline: 1rem;
	}

	.cardAutonome {
		padding-inline: 1.5rem;
		padding-top: 1.5rem;
	}

	.useCase {
		padding: 1.5rem;
	}

	.adminStep {
		padding: 1.25rem 1.5rem;
	}

	.autonomeCta {
		margin-inline: 1rem;
		padding-inline: 1.5rem;
	}
}


@media (max-width: 500px) {

	.autonome {
		margin-top: 8rem;
	}

	.autonome .txtBox {
		margin-top: 4rem;
		flex-direction: column-reverse;
		gap: 2rem;
	}

	.autonome .txt1 {
		width: 100%;
		padding: 1rem;
		box-sizing: border-box;
	}

	.autonome .graph {
		width: 100%;
		height: 180px;
	}

	.adminPreview {
		width: 205px;
		height: 165px;
	}

	#autonomeCard {
		padding-inline: 0;
	}

	.cardAutonome h3 {
		font-size: 1.75rem;
	}

	.useCase {
		gap: 1rem;
	}

	.adminStep {
		gap: 1rem;
	}
}
