/* ==========================================================================
   MAFINDITECH : feuille de styles principale
   Mobile d'abord. Systeme de design documente dans docs/DESIGN-SYSTEM.md.

   1. Polices        5. Elements de base    9. Applications
   2. Jetons         6. Mise en page       10. Formulaire de demande
   3. Reinitialisation 7. En-tete et pied  11. Pages
   4. Typographie    8. Accueil            12. Utilitaires et preferences
   ========================================================================== */

/* 1. Polices (auto-hebergees, sous-ensemble latin) ------------------------ */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/plex-mono-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

/* 2. Jetons -------------------------------------------------------------- */

:root {
	/* Couleurs : le bordeaux vient du logo, le reste est froid pour le laisser parler. */
	--bordeaux: #8a0020;
	--bordeaux-deep: #5c0015;
	--bordeaux-tint: #f7e9ec;
	--graphite: #1c2027;
	--slate: #555d6b;
	--line: #d9dce2;
	--mist: #f1f2f4;
	--paper: #ffffff;
	--signal: #1d7348;
	--signal-tint: #e3f2ea;

	/* Typographie */
	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--wide: 125%;

	/* Echelle typographique (rapport 1,25 sur mobile, s'elargit avec l'ecran) */
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
	--step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.875rem);
	--step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
	--step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);

	/* Espacements (base 8) */
	--s-1: 0.5rem;
	--s-2: 1rem;
	--s-3: 1.5rem;
	--s-4: 2rem;
	--s-5: 3rem;
	--s-6: 4.5rem;
	--s-7: clamp(4rem, 3rem + 5vw, 7.5rem);

	--gutter: 1rem;
	--max: 76rem;
	--measure: 66ch;
	--radius: 3px;
	--header-h: 4.25rem;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
	:root {
		--gutter: 2rem;
		--header-h: 5rem;
	}
}

/* 3. Reinitialisation ---------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--graphite);
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* 4. Typographie --------------------------------------------------------- */

h1, h2, h3 {
	font-weight: 800;
	font-stretch: var(--wide);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

a {
	color: var(--bordeaux);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

strong {
	font-weight: 650;
}

.mono {
	font-family: var(--mono);
	font-size: 0.9em;
	letter-spacing: 0;
}

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

::selection {
	background: var(--bordeaux);
	color: var(--paper);
}

/* 5. Elements de base ---------------------------------------------------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 3rem;
	padding: 0.7rem 1.35rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-weight: 650;
	font-size: var(--step-0);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.button--primary {
	background: var(--bordeaux);
	color: var(--paper);
}
.button--primary:hover {
	background: var(--bordeaux-deep);
}

.button--secondary {
	border-color: var(--graphite);
	color: var(--graphite);
	background: transparent;
}
.button--secondary:hover {
	background: var(--graphite);
	color: var(--paper);
}

.button--light {
	background: var(--paper);
	color: var(--bordeaux-deep);
}
.button--light:hover {
	background: var(--bordeaux-tint);
}

.button--outline-light {
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--paper);
}
.button--outline-light:hover {
	border-color: var(--paper);
	background: rgba(255, 255, 255, 0.1);
}

.button:disabled,
.button.is-sending {
	opacity: 0.6;
	cursor: progress;
}

.button .glyph {
	flex: none;
}

/* Lien textuel : souligne, avec un trait qui s'allonge au survol. */
.text-link {
	display: inline-block;
	font-weight: 650;
	color: var(--bordeaux);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 1.25em 2px no-repeat;
	padding-bottom: 0.2em;
	transition: background-size 0.25s var(--ease);
}
.text-link:hover {
	background-size: 100% 2px;
}
.text-link--light {
	color: var(--paper);
}

.plain-list {
	list-style: none;
	padding: 0;
}
.plain-list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
}

.link-list li + li {
	margin-top: 0.5rem;
}

.tick-list {
	list-style: none;
	padding: 0;
	margin: var(--s-3) 0;
	display: grid;
	gap: 0.6rem;
}
.tick-list li {
	position: relative;
	padding-left: 1.6rem;
}
.tick-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.85rem;
	height: 2px;
	background: var(--bordeaux);
}

/* Marqueur de contenu a fournir : volontairement visible. */
mark.todo {
	background: var(--bordeaux-tint);
	color: var(--bordeaux-deep);
	outline: 1px dashed var(--bordeaux);
	outline-offset: 1px;
	padding: 0 0.25em;
	font-weight: 650;
	font-size: 0.85em;
	white-space: nowrap;
}

/* Statut d'une application */
.status {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-weight: 600;
}
.status::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--slate);
}
.status--production::before {
	background: var(--signal);
	box-shadow: 0 0 0 3px var(--signal-tint);
}
.status--deploiement::before,
.status--pilote::before {
	background: #b26a00;
}

/* Cadre heptagonal : la forme du logo MAFINDITECH */
.hepta {
	--size: 5.5rem;
	display: grid;
	place-items: center;
	width: var(--size);
	aspect-ratio: 1;
	flex: none;
	background: var(--paper);
	clip-path: polygon(50% 0%, 89.1% 18.8%, 98.7% 61.1%, 71.7% 95%, 28.3% 95%, 1.3% 61.1%, 10.9% 18.8%);
}
.hepta img {
	width: 78%;
	height: 78%;
	object-fit: contain;
}
.hepta--large {
	--size: clamp(7.5rem, 5rem + 10vw, 12rem);
}
.hepta__initial {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: calc(var(--size) * 0.4);
	color: var(--bordeaux);
}

/* 6. Mise en page -------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--s-7);
}
.section--mist {
	background: var(--mist);
}

.section__head {
	max-width: 44rem;
	margin-bottom: var(--s-5);
}

.section__title {
	font-size: var(--step-3);
}
.section__title--small {
	font-size: var(--step-2);
}
.section__title + .app-list {
	margin-top: var(--s-4);
}

.section__lead {
	margin-top: var(--s-2);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--slate);
	max-width: 40rem;
}

/* Deux colonnes asymetriques : titre a gauche, contenu a droite. */
.split {
	display: grid;
	gap: var(--s-4);
}
.split__aside .text-link {
	margin-top: var(--s-3);
}
@media (min-width: 960px) {
	.split {
		grid-template-columns: 5fr 7fr;
		gap: var(--s-6);
		align-items: start;
	}
	.split__aside {
		position: sticky;
		top: calc(var(--header-h) + var(--s-4));
	}
}

.page-head {
	padding-block: var(--s-6) var(--s-5);
}
.page-head--tight {
	padding-bottom: var(--s-4);
}
.page-head__title {
	font-size: var(--step-4);
	max-width: 18ch;
}
.page-head__lead {
	margin-top: var(--s-3);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--slate);
	max-width: 44rem;
}

/* Contenu redige dans l'editeur */
.prose {
	max-width: var(--measure);
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose h2 {
	font-size: var(--step-2);
	margin-top: 2em;
}
.prose ul,
.prose ol {
	padding-left: 1.2em;
}
.prose li + li {
	margin-top: 0.4em;
}

.prose--page {
	padding-bottom: var(--s-7);
}

/* Page A propos : chaque groupe "about-block" passe en deux colonnes */
.prose .about-block {
	padding-block: var(--s-5);
	border-top: 1px solid var(--line);
}
.prose .about-block:first-child {
	border-top: 0;
	padding-top: 0;
}
.prose .about-block > * + *,
.prose .about-block > .wp-block-group__inner-container > * + * {
	margin-top: 1em;
}
/* En theme classique, WordPress enveloppe le contenu du groupe : on neutralise cette enveloppe. */
.prose .about-block > .wp-block-group__inner-container {
	display: contents;
}
.prose .about-block h2 {
	margin-top: 0;
	font-size: var(--step-2);
}
@media (min-width: 960px) {
	.prose--page:has(.about-block) {
		max-width: none;
	}
	.prose .about-block {
		display: grid;
		grid-template-columns: 4fr 7fr;
		column-gap: var(--s-6);
	}
	.prose .about-block > *,
	.prose .about-block > .wp-block-group__inner-container > * {
		grid-column: 2;
		max-width: var(--measure);
	}
	.prose .about-block h2.wp-block-heading,
	.prose .about-block > .wp-block-group__inner-container > h2 {
		grid-column: 1;
		grid-row: 1 / span 6;
	}
	.prose .about-block h2 + * {
		margin-top: 0;
	}
}

/* 7. En-tete et pied de page --------------------------------------------- */

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--graphite);
	color: var(--paper);
}
.skip-link:focus {
	top: 0.5rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--graphite);
	text-decoration: none;
}
.brand__mark {
	width: 2.4rem;
	height: auto;
}
.brand__name {
	font-weight: 850;
	font-stretch: var(--wide);
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0 0.25rem 0 0.75rem;
	border: 0;
	background: none;
	font-weight: 650;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
	display: block;
	width: 1.4rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s var(--ease);
}
.nav-toggle__bars {
	position: relative;
	transform: translateY(-4px);
}
.nav-toggle__bars::before {
	content: "";
	position: absolute;
	top: 8px;
}
.nav-open .nav-toggle__bars {
	transform: translateY(0) rotate(45deg);
}
.nav-open .nav-toggle__bars::before {
	transform: translateY(-8px) rotate(-90deg);
}

.site-nav {
	display: none;
}
.nav-open .site-nav {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	position: fixed;
	inset: var(--header-h) 0 0 0;
	padding: var(--s-4) var(--gutter);
	background: var(--paper);
	overflow-y: auto;
}
.nav-open {
	overflow: hidden;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav__list a {
	display: block;
	padding: 0.55rem 0;
	color: var(--graphite);
	text-decoration: none;
	font-weight: 750;
	font-stretch: var(--wide);
	font-size: var(--step-2);
}
.site-nav__list a[aria-current="page"] {
	color: var(--bordeaux);
}

@media (min-width: 960px) {
	.nav-toggle {
		display: none;
	}
	.site-nav,
	.nav-open .site-nav {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: var(--s-4);
		position: static;
		padding: 0;
		background: none;
		overflow: visible;
	}
	.nav-open {
		overflow: visible;
	}
	.site-nav__list {
		display: flex;
		gap: var(--s-3);
	}
	.site-nav__list a {
		position: relative;
		font-size: 0.975rem;
		font-weight: 600;
		font-stretch: 100%;
	}
	.site-nav__list a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0.25rem;
		height: 2px;
		background: var(--bordeaux);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.2s var(--ease);
	}
	.site-nav__list a:hover::after,
	.site-nav__list a[aria-current="page"]::after {
		transform: scaleX(1);
	}
	.site-nav__cta {
		min-height: 2.6rem;
		padding-block: 0.5rem;
		font-size: 0.95rem;
	}
}

.site-footer {
	background: var(--graphite);
	color: #c9cdd4;
	padding-top: var(--s-6);
	font-size: 0.975rem;
}
.site-footer a {
	color: var(--paper);
	text-decoration: none;
}
.site-footer a:hover {
	text-decoration: underline;
}
.site-footer address {
	font-style: normal;
}

.site-footer__grid {
	display: grid;
	gap: var(--s-4);
	padding-bottom: var(--s-5);
}
@media (min-width: 720px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1080px) {
	.site-footer__grid {
		grid-template-columns: 2fr 1fr 1.3fr 1fr;
	}
}

.site-footer__name {
	font-weight: 850;
	font-stretch: var(--wide);
	font-size: var(--step-2);
	color: var(--paper);
	letter-spacing: 0.01em;
}
.site-footer__slogan {
	margin-top: 0.4rem;
}
.site-footer__title {
	font-size: 0.975rem;
	font-weight: 650;
	font-stretch: 100%;
	letter-spacing: 0;
	color: #8f96a3;
	margin-bottom: 0.6rem;
}
.site-footer .plain-list li + li {
	margin-top: 0.3rem;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-2);
	padding-block: var(--s-3) calc(var(--s-3) + 4rem);
	border-top: 1px solid #343a45;
	font-size: var(--step--1);
	color: #8f96a3;
}
.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 720px) {
	.site-footer__legal {
		padding-bottom: var(--s-3);
	}
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
	position: fixed;
	right: var(--gutter);
	bottom: 1rem;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.65rem 1.1rem 0.65rem 0.9rem;
	border-radius: 2rem;
	background: #0f6b3d;
	color: var(--paper);
	font-weight: 650;
	text-decoration: none;
	box-shadow: 0 6px 20px -6px rgba(15, 50, 30, 0.45);
	transition: transform 0.15s var(--ease);
}
.whatsapp-float:hover {
	transform: translateY(-2px);
}
.nav-open .whatsapp-float {
	display: none;
}

/* 8. Accueil ------------------------------------------------------------- */

.hero {
	padding-block: var(--s-5) var(--s-6);
	border-bottom: 1px solid var(--line);
	/* Trame de fond tres discrete : la grille du plan d'architecte. */
	background-image:
		linear-gradient(var(--mist) 1px, transparent 1px),
		linear-gradient(90deg, var(--mist) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
}

.hero__grid {
	display: grid;
	gap: var(--s-5);
	align-items: center;
}

.hero__slogan {
	display: inline-block;
	margin-bottom: var(--s-3);
	padding: 0.3rem 0.7rem;
	background: var(--bordeaux);
	color: var(--paper);
	font-weight: 650;
	font-size: var(--step--1);
}

.hero__title {
	font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4.25rem);
	font-weight: 850;
	line-height: 1.02;
	letter-spacing: -0.025em;
	max-width: 16ch;
}

.hero__text {
	margin-top: var(--s-3);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--slate);
	max-width: 36rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-top: var(--s-4);
}

.hero__visual {
	max-width: 26rem;
	width: 100%;
	justify-self: center;
}

@media (min-width: 1000px) {
	.hero {
		padding-block: var(--s-6) var(--s-7);
	}
	.hero__grid {
		grid-template-columns: 7fr 5fr;
		gap: var(--s-6);
	}
	.hero__visual {
		justify-self: end;
	}
}

/* Pile 3D de l'accueil ---------------------------------------------------
   Repere : le plan de chaque couche est le plan XY, Z monte vers le haut.
   Variables pilotees par main.js : --gap (ecart entre couches), --tx et --tz (inclinaison). */

.stack {
	--plane: 10rem;
	--gap: 5rem;
	--tx: 58deg;
	--tz: -42deg;
	position: relative;
}

.stack__viewport {
	height: 25rem;
	display: grid;
	place-items: center;
	perspective: 1600px;
	perspective-origin: 50% 30%;
}

.stack__scene {
	position: relative;
	width: var(--plane);
	height: var(--plane);
	margin-top: 10rem;
	transform-style: preserve-3d;
	transform: rotateX(var(--tx)) rotateZ(var(--tz));
	will-change: transform;
}

.layer {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: translateZ(calc(var(--i) * var(--gap)));
	border: 1.5px solid var(--graphite);
	background:
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 25% 25%,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 25%,
		rgba(255, 255, 255, 0.62);
	transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), border-color 0.3s;
}
.layer--gateway {
	border-color: var(--bordeaux);
}

.layer__name {
	position: absolute;
	left: 0;
	bottom: 100%;
	margin-bottom: 0.3rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--slate);
	white-space: nowrap;
}

.tile {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 34%;
	height: 22%;
	display: grid;
	place-items: center;
	transform: translate(-50%, -50%) translateZ(10px);
	border: 1.5px solid var(--graphite);
	background: var(--paper);
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 500;
	/* Ombre portee sur le plan : donne le relief */
	box-shadow: -7px 7px 0 rgba(28, 32, 39, 0.16);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.tile--small {
	width: 26%;
	height: 16%;
	font-size: 0.7rem;
}
.tile--quiet {
	border-color: var(--line);
	background: var(--mist);
	color: var(--slate);
}
.tile--db {
	width: 40%;
	height: 40%;
	border-radius: 50%;
}
.tile--phone {
	width: 26%;
	height: 42%;
	border-radius: 6px;
}
.tile--hepta {
	width: 40%;
	height: 40%;
	border: 0;
	background: var(--bordeaux);
	color: var(--paper);
	font-size: 0.95rem;
	clip-path: polygon(50% 0%, 89.1% 18.8%, 98.7% 61.1%, 71.7% 95%, 28.3% 95%, 1.3% 61.1%, 10.9% 18.8%);
	box-shadow: none;
}
.tile.is-lit:not(.tile--hepta) {
	border-color: var(--bordeaux);
	background: var(--bordeaux-tint);
	color: var(--bordeaux-deep);
}
.tile--hepta.is-lit {
	background: var(--bordeaux-deep);
}

/* Trait vertical qui relie les couches : il se dresse le long de l'axe Z. */
.stack__beam {
	position: absolute;
	left: calc(50% - 1px);
	top: 50%;
	width: 2px;
	height: calc(3 * var(--gap));
	transform-origin: top center;
	transform: rotateX(90deg);
	background: repeating-linear-gradient(var(--bordeaux) 0 6px, transparent 6px 11px);
	transition: height 0.9s var(--ease);
}

/* Requete : un losange bordeaux qui descend la pile. */
.stack__packet {
	position: absolute;
	left: calc(50% - 9px);
	top: calc(50% - 9px);
	width: 18px;
	height: 18px;
	background: var(--bordeaux);
	box-shadow: 0 0 0 4px rgba(138, 0, 32, 0.2), 0 0 18px rgba(138, 0, 32, 0.5);
	opacity: 0;
	transform: translateZ(calc(3 * var(--gap) + 24px));
}
.stack__packet.is-travelling {
	animation: packet-drop 1.6s cubic-bezier(0.5, 0, 0.3, 1) both;
}
@keyframes packet-drop {
	0% {
		opacity: 0;
		transform: translateZ(calc(3 * var(--gap) + 40px));
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translateZ(14px);
	}
}

/* Assemblage au chargement : les couches arrivent de haut, espacees, puis se posent. */
.stack.is-assembling .layer {
	opacity: 0;
	transform: translateZ(calc(var(--i) * var(--gap) + 9rem));
}
.stack.is-assembling .layer:nth-child(1) { transition-delay: 0s; }
.stack.is-assembling .layer:nth-child(2) { transition-delay: 0.08s; }

.stack .layer:nth-child(2) { transition-delay: 0.1s; }
.stack .layer:nth-child(3) { transition-delay: 0.2s; }
.stack .layer:nth-child(4) { transition-delay: 0.3s; }
.stack.is-ready .layer { transition-delay: 0s; }

.stack__caption {
	display: grid;
	gap: var(--s-2);
	padding-top: var(--s-2);
	border-top: 1px solid var(--line);
	font-size: var(--step--1);
	color: var(--slate);
}
.stack__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-1) var(--s-2);
}
.stack__send {
	min-height: 2.5rem;
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--graphite);
	border-radius: var(--radius);
	background: var(--paper);
	font-family: var(--mono);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.stack__send:hover {
	background: var(--graphite);
	color: var(--paper);
}
.stack__send:disabled {
	opacity: 0.5;
	cursor: progress;
}
.stack__log {
	font-family: var(--mono);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--signal);
}
.stack__log.is-pending {
	color: var(--slate);
}

@media (min-width: 720px) {
	.stack {
		--plane: 11.5rem;
		--gap: 6rem;
	}
	.stack__viewport {
		height: 30rem;
	}
	.stack__scene {
		margin-top: 12rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.layer,
	.stack__beam {
		transition: none;
	}
	.stack__packet.is-travelling {
		animation: none;
	}
}

/* Prisme heptagonal du bandeau d'action : tourne avec le defilement (--spin, main.js). */
.prism {
	--a: 4.25rem;
	--h: 8rem;
	--spin: 0deg;
	position: absolute;
	right: 16%;
	top: 30%;
	width: 0;
	height: 0;
	perspective: 900px;
	pointer-events: none;
}
.prism__body {
	position: absolute;
	transform-style: preserve-3d;
	transform: translateY(-50%) rotateX(-16deg) rotateY(var(--spin));
}
.prism__face {
	position: absolute;
	/* largeur d'une face d'heptagone : 2 x apotheme x tan(pi/7) */
	width: calc(var(--a) * 0.9631);
	height: var(--h);
	left: calc(var(--a) * -0.4816);
	top: calc(var(--h) / -2);
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
	transform: rotateY(calc(var(--k) * 51.4286deg)) translateZ(var(--a));
	backface-visibility: visible;
}
.cta-band__inner {
	z-index: 1;
}
@media (max-width: 999px) {
	.prism {
		--a: 2.75rem;
		--h: 5rem;
		right: 3.5rem;
		top: 3.75rem;
		opacity: 0.55;
	}
}

/* Index des services : une liste reglee, pas des cartes */
.service-index {
	list-style: none;
	padding: 0;
	border-top: 2px solid var(--graphite);
}
.service-index__item {
	border-bottom: 1px solid var(--line);
}
.service-index__link {
	display: grid;
	gap: 0.35rem;
	padding: var(--s-3) 0;
	color: var(--graphite);
	text-decoration: none;
}
.service-index__name {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-1);
	line-height: 1.2;
	transition: color 0.15s var(--ease), transform 0.2s var(--ease);
}
.service-index__text {
	color: var(--slate);
	max-width: 38rem;
}
.service-index__link:hover .service-index__name {
	color: var(--bordeaux);
	transform: translateX(6px);
}
@media (min-width: 720px) {
	.service-index__link {
		grid-template-columns: 15rem 1fr;
		gap: var(--s-4);
		align-items: baseline;
	}
}

/* Etapes d'un projet : une vraie sequence, donc numerotee */
.steps {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0;
	counter-reset: step;
}
.steps__item {
	position: relative;
	padding: var(--s-3) 0 var(--s-3) 3.25rem;
	border-top: 1px solid var(--line);
	counter-increment: step;
}
.steps__item::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: var(--s-3);
	font-family: var(--mono);
	font-weight: 500;
	font-size: var(--step--1);
	color: var(--bordeaux);
}
.steps__title {
	font-size: var(--step-1);
	margin-bottom: 0.4rem;
}
.steps__item p {
	color: var(--slate);
}
@media (min-width: 1000px) {
	.steps {
		grid-template-columns: repeat(5, 1fr);
		gap: var(--s-3);
	}
	.steps__item {
		padding: var(--s-5) 0 0;
		border-top: 2px solid var(--graphite);
	}
	.steps__item::before {
		top: var(--s-2);
	}
	/* Le trait se colore jusqu'a l'etape survolee */
	.steps__item:hover {
		border-top-color: var(--bordeaux);
	}
}

/* Partenaires */
.partners__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--s-2);
	margin-bottom: var(--s-4);
}
.partners__list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: var(--s-3);
}
.partners__item {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: var(--s-3);
	border: 1px solid var(--line);
	text-align: center;
}
.partners__item img {
	max-height: 4rem;
	width: auto;
	filter: grayscale(1) contrast(0.9);
	opacity: 0.75;
	transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.partners__item:hover img,
.partners__item a:focus-visible img {
	filter: none;
	opacity: 1;
}
.partners__name {
	font-weight: 700;
	color: var(--slate);
}
.partners__sector {
	font-size: var(--step--1);
	color: var(--slate);
}
.partners--compact {
	padding-block: var(--s-6);
	border-bottom: 1px solid var(--line);
}

/* Temoignages */
.testimonials__list {
	display: grid;
	gap: var(--s-5);
	margin-top: var(--s-5);
}
@media (min-width: 900px) {
	.testimonials__list {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--s-6);
	}
}
.quote {
	border-left: 3px solid var(--bordeaux);
	padding-left: var(--s-3);
}
.quote__text {
	font-size: var(--step-1);
	line-height: 1.5;
}
.quote__text p::before {
	content: "\00AB\00A0";
}
.quote__text p::after {
	content: "\00A0\00BB";
}
.quote__by {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	margin-top: var(--s-3);
	color: var(--slate);
	font-size: 0.95rem;
}
.quote__by strong {
	color: var(--graphite);
}
.quote__photo {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	object-fit: cover;
}

/* Bandeau d'appel a l'action */
.cta-band {
	position: relative;
	overflow: hidden;
	background: var(--bordeaux);
	color: var(--paper);
	padding-block: var(--s-6);
}
.cta-band__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--s-4);
}
.cta-band__title {
	font-size: var(--step-3);
	max-width: 22ch;
}
.cta-band__copy p {
	margin-top: var(--s-2);
	max-width: 36rem;
	color: #f3d9de;
	font-size: var(--step-1);
	line-height: 1.5;
}
.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2) var(--s-3);
}

@media (min-width: 1000px) {
	.cta-band__inner {
		grid-template-columns: 7fr 5fr;
		align-items: end;
	}
	.cta-band__actions {
		justify-content: flex-end;
	}

}

/* 9. Applications -------------------------------------------------------- */

.app-list {
	border-top: 2px solid var(--graphite);
	margin-bottom: var(--s-4);
}

.app-row {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--s-2) var(--s-3);
	padding-block: var(--s-4);
	border-bottom: 1px solid var(--line);
}
.app-row__logo {
	grid-row: span 2;
	align-self: start;
}
.section--mist .hepta {
	background: var(--paper);
}
.app-row .hepta {
	background: var(--mist);
	transition: transform 0.3s var(--ease);
}
.section--mist .app-row .hepta {
	background: var(--paper);
}
.app-row__name {
	font-size: var(--step-2);
}
.app-row__name a {
	color: var(--graphite);
	text-decoration: none;
}
/* Toute la ligne est cliquable via le titre. */
.app-row__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.app-row__pitch {
	margin-top: 0.4rem;
	color: var(--slate);
	max-width: 36rem;
}
.app-row__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1) var(--s-4);
	font-size: 0.95rem;
}
.app-row__meta dt {
	font-size: var(--step--1);
	color: var(--slate);
}
.app-row__link {
	display: none;
}
.app-row:hover .app-row__name a {
	color: var(--bordeaux);
}
.app-row:hover .hepta {
	transform: perspective(500px) rotateY(-24deg) rotateX(10deg) scale(1.04);
}
.app-row:focus-within {
	outline: 3px solid var(--bordeaux);
	outline-offset: 4px;
}
.app-row:focus-within .app-row__name a:focus-visible {
	outline: none;
}

@media (min-width: 800px) {
	.app-row {
		grid-template-columns: auto 1fr 16rem;
		align-items: center;
		gap: var(--s-4);
	}
	.app-row__logo {
		grid-row: auto;
		align-self: center;
	}
	.app-row__meta {
		grid-column: auto;
		display: grid;
		gap: var(--s-1);
	}
	.app-row__meta div {
		display: grid;
		grid-template-columns: 6.5rem 1fr;
		gap: var(--s-2);
		align-items: baseline;
	}
}

/* Filtres du catalogue */
.filters {
	display: grid;
	gap: var(--s-2);
	padding: var(--s-3);
	background: var(--mist);
	margin-bottom: var(--s-3);
}
.filters__field label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.3rem;
}
.filters__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--s-2) var(--s-3);
}
@media (min-width: 800px) {
	.filters {
		grid-template-columns: 2fr 1fr 1fr auto;
		align-items: end;
	}
}
.filters__count {
	font-family: var(--mono);
	font-size: var(--step--1);
	color: var(--slate);
	margin-bottom: var(--s-2);
}

.empty-state {
	padding: var(--s-5) var(--s-3);
	border: 1px dashed var(--line);
	margin-block: var(--s-3) var(--s-7);
	max-width: 48rem;
}
.empty-state__title {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-1);
	margin-bottom: var(--s-1);
}
.empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-3);
	margin-top: var(--s-3);
}

/* Fiche application */
.app-hero {
	padding-block: var(--s-4) var(--s-6);
	background: var(--mist);
	border-bottom: 1px solid var(--line);
}
.app-hero__grid {
	display: grid;
	gap: var(--s-4);
}
.app-hero .hepta {
	background: var(--paper);
}
.breadcrumb a {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--slate);
}
.breadcrumb a::before {
	content: "\2190\00A0";
}
.app-hero__title {
	font-size: var(--step-4);
}
.app-hero__pitch {
	margin-top: var(--s-2);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--slate);
	max-width: 36rem;
}
.app-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2) var(--s-3);
	margin-top: var(--s-4);
}

/* Fiche technique : style tableau de specifications */
.spec {
	border-top: 2px solid var(--graphite);
	align-self: start;
}
.spec__row {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: var(--s-2);
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.975rem;
}
.spec dt {
	color: var(--slate);
}

@media (min-width: 1000px) {
	.app-hero__grid {
		grid-template-columns: auto 1fr 20rem;
		column-gap: var(--s-5);
		align-items: start;
	}
	.breadcrumb {
		grid-column: 1 / -1;
	}
}

.app-body {
	display: grid;
	gap: 0;
	padding-block: var(--s-4) var(--s-6);
}
.app-section {
	padding-block: var(--s-5);
	border-bottom: 1px solid var(--line);
	display: grid;
	gap: var(--s-3);
}
.app-section:last-child {
	border-bottom: 0;
}
.app-section__title {
	font-size: var(--step-2);
}
@media (min-width: 960px) {
	.app-section {
		grid-template-columns: 4fr 8fr;
		gap: var(--s-6);
	}
	.app-section .tick-list {
		margin-top: 0;
	}
}

.feature-list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line);
}
.feature-list li {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--line);
	font-weight: 550;
}
@media (min-width: 720px) {
	.feature-list {
		grid-template-columns: 1fr 1fr;
		column-gap: var(--s-4);
	}
}

.gallery {
	list-style: none;
	padding: 0 0 var(--s-2);
	display: flex;
	gap: var(--s-3);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	min-width: 0;
}
.gallery__item {
	flex: 0 0 auto;
	width: min(80%, 22rem);
	scroll-snap-align: start;
}
.gallery__item img {
	border: 1px solid var(--line);
	width: 100%;
}

.placeholder-note {
	padding: var(--s-3);
	border: 1px dashed var(--line);
	color: var(--slate);
}

/* 10. Formulaire de demande ---------------------------------------------- */

.request {
	display: grid;
	gap: var(--s-5);
	padding-bottom: var(--s-7);
}
/* Sur mobile, le formulaire (et son message de confirmation) passe avant les explications. */
.request__form {
	order: -1;
}
@media (min-width: 1000px) {
	.request {
		grid-template-columns: 4fr 8fr;
		gap: var(--s-6);
		align-items: start;
	}
	.request__form {
		order: 0;
	}
	.request__aside {
		position: sticky;
		top: calc(var(--header-h) + var(--s-4));
	}
}
.request__aside-title {
	font-size: var(--step-1);
	margin-bottom: var(--s-3);
}
.mini-steps {
	list-style: none;
	padding: 0;
	counter-reset: mini;
	display: grid;
	gap: var(--s-2);
}
.mini-steps li {
	counter-increment: mini;
	position: relative;
	padding-left: 2.25rem;
	color: var(--slate);
}
.mini-steps li::before {
	content: counter(mini);
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.5rem;
	height: 1.5rem;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--bordeaux);
	border-radius: 50%;
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--bordeaux);
}
.request__alt {
	margin-top: var(--s-4);
	padding-top: var(--s-3);
	border-top: 1px solid var(--line);
	line-height: 1.8;
}

.request-form {
	display: grid;
	gap: var(--s-4);
}

/* Bascule demo / devis */
.mode-switch {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 2px solid var(--graphite);
}
.mode-switch__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.mode-switch__option {
	position: relative;
	cursor: pointer;
}
.mode-switch__option + .mode-switch__option {
	border-left: 2px solid var(--graphite);
}
.mode-switch__option input {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}
.mode-switch__option span {
	display: grid;
	gap: 0.15rem;
	height: 100%;
	padding: var(--s-2) var(--s-3);
	color: var(--slate);
	font-size: 0.9rem;
	line-height: 1.35;
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.mode-switch__option strong {
	font-size: var(--step-0);
	font-weight: 800;
	font-stretch: var(--wide);
	color: var(--graphite);
}
.mode-switch__option input:checked + span {
	background: var(--graphite);
	color: #c9cdd4;
}
.mode-switch__option input:checked + span strong {
	color: var(--paper);
}
.mode-switch__option input:focus-visible + span {
	outline: 3px solid var(--bordeaux);
	outline-offset: -5px;
}

/* Sans JavaScript, la bascule fonctionne aussi grace a :has() */
.request-form:has(input[name="mode"][value="demo"]:checked) [data-mode="devis"],
.request-form:has(input[name="mode"][value="devis"]:checked) [data-mode="demo"] {
	display: none;
}
[hidden] {
	display: none !important;
}

.form-grid {
	display: grid;
	gap: var(--s-3);
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}
@media (min-width: 640px) {
	.form-grid {
		grid-template-columns: 1fr 1fr;
	}
	.field--full,
	.form-grid__legend {
		grid-column: 1 / -1;
	}
}
.form-grid__legend {
	float: left;
	width: 100%;
	padding: var(--s-3) 0 0;
	border-top: 1px solid var(--line);
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-1);
}
.form-grid__legend + * {
	clear: both;
}

.field {
	display: grid;
	gap: 0.35rem;
	align-content: start;
	min-width: 0;
}
.field label,
.field legend {
	font-weight: 650;
	font-size: 0.975rem;
}
.field__hint {
	font-weight: 400;
	color: var(--slate);
}
.field__help {
	font-size: 0.9rem;
	color: var(--slate);
}
.field__error {
	font-size: 0.925rem;
	font-weight: 600;
	color: var(--bordeaux);
}

.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="tel"],
.request-form input[type="date"],
.request-form select,
.request-form textarea,
.filters input,
.filters select {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
	border: 1.5px solid #9aa1ad;
	border-radius: var(--radius);
	background: var(--paper);
	font-size: 1rem;
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.request-form textarea {
	min-height: 8rem;
	resize: vertical;
	line-height: 1.5;
}
.request-form input:hover,
.request-form select:hover,
.request-form textarea:hover {
	border-color: var(--graphite);
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus,
.filters input:focus,
.filters select:focus {
	outline: none;
	border-color: var(--bordeaux);
	box-shadow: 0 0 0 3px var(--bordeaux-tint);
}
.request-form [aria-invalid="true"] {
	border-color: var(--bordeaux);
	background: #fffafb;
}
.request-form input[type="file"] {
	padding: 0.6rem;
	border: 1.5px dashed #9aa1ad;
	border-radius: var(--radius);
	background: var(--mist);
	width: 100%;
}

.field--choices {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}
.field--choices legend {
	width: 100%;
	margin-bottom: 0.35rem;
}
.choice {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	min-height: 2.75rem;
	padding-top: 0.6rem;
}
.choice input {
	width: 1.2rem;
	height: 1.2rem;
	margin: 0.15rem 0 0;
	accent-color: var(--bordeaux);
	flex: none;
}
.choice--consent {
	font-size: 0.95rem;
	color: var(--slate);
}

.field--captcha {
	max-width: 22rem;
}
.field--captcha input {
	max-width: 6rem;
}

.form-footer {
	display: grid;
	gap: var(--s-2);
	padding-top: var(--s-3);
	border-top: 1px solid var(--line);
}
.form-footer .button {
	justify-self: start;
	margin-top: var(--s-2);
}

.form-notice {
	padding: var(--s-3);
	border-left: 4px solid var(--bordeaux);
	background: var(--bordeaux-tint);
}
.form-notice--success {
	border-left-color: var(--signal);
	background: var(--signal-tint);
}
.form-notice__title {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-1);
	margin-bottom: 0.3rem;
}

.hp-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 11. Pages -------------------------------------------------------------- */

/* Services */
.service {
	display: grid;
	gap: var(--s-3);
	padding-block: var(--s-5);
	border-top: 1px solid var(--line);
}
.service:first-child {
	border-top: 2px solid var(--graphite);
}
.service:last-child {
	padding-bottom: var(--s-7);
}
.service__title {
	font-size: var(--step-3);
	max-width: 14ch;
}
.service__tech {
	margin-top: var(--s-2);
	color: var(--slate);
}
.service__excerpt {
	font-size: var(--step-1);
	line-height: 1.5;
	font-weight: 550;
	margin-bottom: var(--s-2);
	max-width: var(--measure);
}
.service__body .button {
	margin-top: var(--s-2);
}
@media (min-width: 960px) {
	.service {
		grid-template-columns: 5fr 7fr;
		gap: var(--s-6);
	}
	.service__head {
		position: sticky;
		top: calc(var(--header-h) + var(--s-4));
		align-self: start;
	}
}
.service:target .service__title {
	color: var(--bordeaux);
}

/* Contact */
.contact {
	display: grid;
	gap: var(--s-5);
	padding-bottom: var(--s-7);
}
@media (min-width: 960px) {
	.contact {
		grid-template-columns: 6fr 5fr;
		gap: var(--s-6);
		align-items: start;
	}
}
.contact__channels {
	border-top: 2px solid var(--graphite);
}
.channel {
	padding-block: var(--s-3);
	border-bottom: 1px solid var(--line);
}
.channel__title {
	font-size: 0.975rem;
	font-weight: 650;
	font-stretch: 100%;
	letter-spacing: 0;
	color: var(--slate);
	margin-bottom: 0.3rem;
}
.channel__value {
	font-size: var(--step-2);
	font-weight: 750;
	font-stretch: var(--wide);
	font-style: normal;
	line-height: 1.25;
}
.channel__value a {
	color: var(--graphite);
	text-decoration: none;
}
.channel__value a:hover {
	color: var(--bordeaux);
}
.channel--primary .button {
	margin-top: var(--s-2);
}
.channel__note {
	margin-top: 0.4rem;
	color: var(--slate);
}

.map {
	position: relative;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--line);
	background:
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--mist);
}
.map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.map__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--s-2);
	padding: var(--s-3);
	text-align: center;
}
.map__place {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-2);
	background: var(--paper);
	padding: 0.2rem 0.6rem;
}
.map__placeholder::before {
	content: "";
	width: 1.75rem;
	aspect-ratio: 1;
	background: var(--bordeaux);
	clip-path: polygon(50% 0%, 89.1% 18.8%, 98.7% 61.1%, 71.7% 95%, 28.3% 95%, 1.3% 61.1%, 10.9% 18.8%);
}
.map__note {
	margin-top: var(--s-1);
	font-size: var(--step--1);
	color: var(--slate);
}

/* 404 */
.not-found {
	padding-block: var(--s-7);
}
.not-found__grid {
	display: grid;
	gap: var(--s-4);
}
.not-found__code {
	font-size: clamp(4rem, 2rem + 10vw, 9rem);
	line-height: 1;
	color: var(--bordeaux);
}
.not-found .link-list {
	margin-top: var(--s-3);
	font-weight: 650;
}
@media (min-width: 900px) {
	.not-found__grid {
		grid-template-columns: auto 1fr;
		gap: var(--s-6);
		align-items: start;
	}
}

/* 12. Utilitaires et preferences ----------------------------------------- */

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.whatsapp-float,
	.cta-band,
	.site-footer {
		display: none;
	}
}

/* Resultats de recherche */
.result-list {
	list-style: none;
	padding: 0;
	border-top: 2px solid var(--graphite);
	margin-bottom: var(--s-7);
}
.result-list__item {
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--line);
}
.result-list__title {
	font-weight: 800;
	font-stretch: var(--wide);
	font-size: var(--step-1);
	color: var(--graphite);
	text-decoration: none;
}
.result-list__title:hover {
	color: var(--bordeaux);
}
.result-list__type {
	margin-left: var(--s-1);
	font-family: var(--mono);
	font-size: var(--step--1);
	color: var(--slate);
}
.result-list__item p {
	margin-top: 0.3rem;
	color: var(--slate);
	max-width: var(--measure);
}
.filters--search {
	margin-top: var(--s-4);
	max-width: 44rem;
}
@media (min-width: 800px) {
	.filters--search {
		grid-template-columns: 1fr auto;
	}
}
