/* ==========================================================================
   Aporie Lab — feuille de style principale (V2)
   Papier froid, encre graphite, un seul accent : l'outremer.
   ========================================================================== */

/* Jetons ------------------------------------------------------------------ */

:root {
	--ap-papier: #e8e9e5;
	--ap-papier-2: #dedfda;
	--ap-encre: #141518;
	--ap-graphite: #575b59;
	--ap-trait: #c3c5bf;
	--ap-outremer: #0a2bd1;
	--ap-bloc: #0a2bd1;
	--ap-sur-bloc: #eef0ea;
	--ap-sur-bloc-doux: rgb(238 240 234 / 0.74);
	--ap-sur-bloc-trait: rgb(238 240 234 / 0.3);

	--ap-display: "Syne", "Arial Black", "Helvetica Neue", sans-serif;
	--ap-texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--ap-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--ap-t-label: 0.75rem;
	--ap-t-petit: 0.9375rem;
	--ap-t-corps: 1.0625rem;
	--ap-t-chapeau: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
	--ap-t-h3: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
	--ap-t-h2: clamp(2rem, 1.25rem + 2.7vw, 4rem);
	--ap-t-h1: clamp(2.5rem, 1.25rem + 4.4vw, 5.75rem);
	--ap-t-geant: clamp(2.5rem, 1rem + 5vw, 6.5rem);

	--ap-gouttiere: clamp(1rem, 0.4rem + 3vw, 3rem);
	--ap-max: 88rem;
	--ap-inter: clamp(1rem, 0.5rem + 1.6vw, 2rem);
	--ap-section: clamp(4rem, 2rem + 6vw, 8rem);
	--ap-bords: max(var(--ap-gouttiere), calc((100% - var(--ap-max)) / 2));

	/* Puces des étiquettes : chacune évoque l'intitulé qu'elle précède. */
	--ap-puce-repere: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='4.2'/%3E%3Cpath d='M8 1.4v3.4M8 11.2v3.4M1.4 8h3.4M11.2 8h3.4'/%3E%3C/svg%3E");
	--ap-puce-vase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 2C6.5 3.5 7 4 7 5c0 1.5-3.5 2.5-3.5 5.5 0 2 1.3 3.3 2 4h5c.7-.7 2-2 2-4 0-3-3.5-4-3.5-5.5 0-1 .5-1.5.5-3z'/%3E%3C/svg%3E");
	--ap-puce-impasse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='12' height='12' rx='2'/%3E%3Cpath d='M8 12V6.2'/%3E%3Cpath d='M5 5h6' stroke-width='2.2'/%3E%3C/svg%3E");
	--ap-puce-cle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='8' r='3'/%3E%3Cpath d='M8 8h6.2M12 8v2.6M14.2 8v2'/%3E%3C/svg%3E");
	--ap-puce-marches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.8 14.2h3.1v-3.1H8V8h3.1V4.9h3.1V1.8'/%3E%3C/svg%3E");
	--ap-puce-gelule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='1.6' width='6' height='12.8' rx='3' transform='rotate(45 8 8)'/%3E%3Cpath d='M5.9 5.9l4.2 4.2'/%3E%3C/svg%3E");
	--ap-puce-lieu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 14.6s-4.6-4.7-4.6-8.2a4.6 4.6 0 0 1 9.2 0c0 3.5-4.6 8.2-4.6 8.2z'/%3E%3Ccircle cx='8' cy='6.4' r='1.6'/%3E%3C/svg%3E");
	--ap-puce-bulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.4 3.2h11.2v7.6H8l-3.4 2.9v-2.9H2.4z'/%3E%3Cpath d='M5 6h6M5 8.2h3.6'/%3E%3C/svg%3E");
	--ap-puce-crayon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l1-3.2 7.2-7.2 2.2 2.2-7.2 7.2z'/%3E%3Cpath d='M9.9 3.9l2.2 2.2'/%3E%3C/svg%3E");
	--ap-puce-boussole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M10.6 5.4 9 9l-3.6 1.6L7 7z'/%3E%3C/svg%3E");
	--ap-puce-cycle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.6 3.2v3.6H11M1.4 12.8V9.2H5M2.9 6.2a5.4 5.4 0 0 1 8.9-2l2.8 2.6M1.4 9.2l2.8 2.6a5.4 5.4 0 0 0 8.9-2'/%3E%3C/svg%3E");
	--ap-puce-cube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8l5.5 3.2v6L8 14.2 2.5 11V5z'/%3E%3Cpath d='M2.5 5 8 8.2 13.5 5M8 8.2v6'/%3E%3C/svg%3E");

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ap-papier: #0e0f11;
		--ap-papier-2: #17181b;
		--ap-encre: #e6e7e2;
		--ap-graphite: #9a9e9b;
		--ap-trait: #2c2e32;
		--ap-outremer: #8190ff;
		--ap-bloc: #1a31d2;
		--ap-sur-bloc: #f0f1ec;
		--ap-sur-bloc-doux: rgb(240 241 236 / 0.76);
		--ap-sur-bloc-trait: rgb(240 241 236 / 0.3);
		color-scheme: dark;
	}
}

/* Base -------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--ap-papier);
	color: var(--ap-encre);
	font-family: var(--ap-texte);
	font-size: var(--ap-t-corps);
	line-height: 1.6;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--ap-outremer);
}

:focus-visible {
	outline: 2px solid var(--ap-outremer);
	outline-offset: 3px;
}

::selection {
	background: var(--ap-bloc);
	color: var(--ap-sur-bloc);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--ap-display);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

p,
ul,
ol,
figure {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ap-evitement {
	position: absolute;
	top: -100px;
	left: var(--ap-gouttiere);
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--ap-encre);
	color: var(--ap-papier);
	font-family: var(--ap-mono);
	font-size: var(--ap-t-label);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.ap-evitement:focus {
	top: 0.75rem;
}

/* En-tête ----------------------------------------------------------------- */

.ap-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem 2rem;
	padding: 0.875rem var(--ap-bords);
	background: var(--ap-papier);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.ap-entete.est-defile {
	border-bottom-color: var(--ap-trait);
}

.admin-bar .ap-entete {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ap-entete {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .ap-entete {
		top: 0;
	}
}

.ap-marque {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
	font-family: var(--ap-display);
	font-size: 1.1875rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.ap-marque__nom {
	font-weight: 800;
}

.ap-marque__suite {
	font-weight: 400;
}

.ap-marque__signe {
	margin-left: -0.1em;
	color: var(--ap-outremer);
	font-weight: 800;
}

.ap-marque__logo {
	display: block;
	width: auto;
	max-height: 2.5rem;
}

/* Logo d'origine, version horizontale : symbole, nom et devise. */
.ap-marque__svg {
	display: block;
	width: auto;
	height: 3rem;
	transition: color 0.2s ease;
}

.ap-marque:hover .ap-marque__svg {
	color: var(--ap-outremer);
}

@media (max-width: 47.99rem) {
	.ap-marque__svg {
		height: 2.25rem;
	}
}

@media (max-width: 23.99rem) {
	.ap-marque__svg {
		height: 1.9rem;
	}

	.ap-entete {
		column-gap: 0.625rem;
	}

	.ap-entete .ap-entete__bouton {
		padding-inline: 0.7rem;
	}
}

/* Menu et bouton FR / EN : ensemble, et ils passent à la ligne plutôt que de se chevaucher. */
.ap-entete__milieu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 2rem;
	justify-self: end;
}

.ap-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-nav a {
	display: inline-block;
	padding-block: 0.5rem;
	background-image: linear-gradient(var(--ap-outremer), var(--ap-outremer));
	background-position: 0 88%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-size 0.25s ease, color 0.2s ease;
}

.ap-nav a:hover,
.ap-nav .current-menu-item > a {
	background-size: 100% 1px;
	color: var(--ap-outremer);
}

/* Bouton FR / EN : la langue affichée est soulignée, l'autre mène à l'autre site. */
.ap-langues ul {
	display: flex;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ap-trait);
	list-style: none;
}

.ap-langues li + li {
	border-left: 1px solid var(--ap-trait);
}

.ap-langues a,
.ap-langues__active {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.6rem;
	color: var(--ap-graphite);
	font-family: var(--ap-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ap-langues__active {
	background: var(--ap-papier-2);
	color: var(--ap-encre);
}

.ap-langues a:hover {
	background: var(--ap-encre);
	color: var(--ap-papier);
}

.ap-langues__drapeau {
	display: block;
	flex: none;
	width: auto;
	height: 0.7rem;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14);
}

.ap-entete__bouton {
	display: inline-flex;
	align-items: center;
	padding: 0.625rem 1.125rem;
	background: var(--ap-bloc);
	color: var(--ap-sur-bloc);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ap-entete__bouton:hover {
	background: var(--ap-encre);
	color: var(--ap-papier);
}

/* Jusqu'à la tablette : logo et bouton en haut, menu et FR / EN sur la deuxième ligne. */
@media (max-width: 63.99rem) {
	.ap-entete {
		grid-template-columns: 1fr auto;
		gap: 0.25rem 1rem;
	}

	.ap-entete__milieu {
		grid-row: 2;
		grid-column: 1 / -1;
		justify-self: stretch;
		justify-content: space-between;
		gap: 0.5rem 1rem;
	}
}

@media (max-width: 47.99rem) {
	.ap-langues a,
	.ap-langues__active {
		padding: 0.4rem 0.45rem;
		font-size: 0.6875rem;
	}

	.ap-nav ul {
		gap: 0 1.25rem;
	}

	.ap-nav a {
		padding-block: 0.25rem;
	}

	.ap-entete__bouton {
		padding: 0.5rem 0.875rem;
		font-size: 0.875rem;
	}
}

/* Petit écran : les drapeaux seuls, pour garder le menu et FR / EN sur une ligne
   (les lettres FR / EN restent lues par les lecteurs d'écran). */
@media (max-width: 29.99rem) {
	.ap-nav ul {
		gap: 0 0.875rem;
	}

	.ap-nav a {
		font-size: 0.875rem;
	}

	.ap-entete__milieu {
		gap: 0.5rem 0.75rem;
	}

	.ap-langues a,
	.ap-langues__active {
		padding: 0.45rem 0.5rem;
	}

	.ap-langues a > span,
	.ap-langues__active > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ap-langues__drapeau {
		height: 0.8rem;
	}
}

/* Sections ---------------------------------------------------------------- */

.ap-section {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-content: start;
	column-gap: var(--ap-inter);
	padding-block: var(--ap-section);
	padding-inline: var(--ap-bords);
	scroll-margin-top: 4rem;
}

.ap-section > * {
	grid-column: 1 / -1;
}

.ap-section + .ap-section {
	border-top: 1px solid var(--ap-trait);
}

.ap-section.is-style-outremer + .ap-section,
.ap-section + .ap-section.is-style-outremer {
	border-top: 0;
}

.ap-section h2 {
	font-size: var(--ap-t-h2);
}

.ap-section > h2 {
	grid-column: 1 / span 9;
	margin-block-end: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.ap-section h3 {
	font-size: var(--ap-t-h3);
}

/* Étiquettes et leurs puces ----------------------------------------------- */

.is-style-etiquette {
	--ap-puce: var(--ap-puce-repere);
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-block-end: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
	color: var(--ap-graphite);
	font-family: var(--ap-mono);
	font-size: var(--ap-t-label);
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.is-style-etiquette::before,
.ap-offre__public::before {
	content: "";
	flex: none;
	width: 1.35em;
	height: 1.35em;
	background-color: var(--ap-outremer);
	-webkit-mask: var(--ap-puce) center / contain no-repeat;
	mask: var(--ap-puce) center / contain no-repeat;
}

.ap-ouverture .is-style-etiquette { --ap-puce: var(--ap-puce-vase); }
.ap-aporie .is-style-etiquette,
.ap-introuvable .is-style-etiquette { --ap-puce: var(--ap-puce-impasse); }
.ap-expertises .is-style-etiquette { --ap-puce: var(--ap-puce-cle); }
.ap-methode .is-style-etiquette { --ap-puce: var(--ap-puce-marches); }
.ap-refus .is-style-etiquette { --ap-puce: var(--ap-puce-gelule); }
.ap-terrain .is-style-etiquette { --ap-puce: var(--ap-puce-lieu); }
.ap-contact .is-style-etiquette { --ap-puce: var(--ap-puce-bulle); }
.ap-page__entete .is-style-etiquette { --ap-puce: var(--ap-puce-crayon); }

/* Puce choisie à la main : classe « ap-puce-… » dans Avancé > Classe(s) CSS additionnelle(s). */
.is-style-etiquette.ap-puce-repere { --ap-puce: var(--ap-puce-repere); }
.is-style-etiquette.ap-puce-vase { --ap-puce: var(--ap-puce-vase); }
.is-style-etiquette.ap-puce-impasse { --ap-puce: var(--ap-puce-impasse); }
.is-style-etiquette.ap-puce-cle { --ap-puce: var(--ap-puce-cle); }
.is-style-etiquette.ap-puce-marches { --ap-puce: var(--ap-puce-marches); }
.is-style-etiquette.ap-puce-gelule { --ap-puce: var(--ap-puce-gelule); }
.is-style-etiquette.ap-puce-lieu { --ap-puce: var(--ap-puce-lieu); }
.is-style-etiquette.ap-puce-bulle { --ap-puce: var(--ap-puce-bulle); }
.is-style-etiquette.ap-puce-crayon { --ap-puce: var(--ap-puce-crayon); }
.is-style-etiquette.ap-puce-boussole { --ap-puce: var(--ap-puce-boussole); }
.is-style-etiquette.ap-puce-cycle { --ap-puce: var(--ap-puce-cycle); }
.is-style-etiquette.ap-puce-cube { --ap-puce: var(--ap-puce-cube); }

.is-style-outremer .is-style-etiquette {
	color: var(--ap-sur-bloc-doux);
}

.is-style-outremer .is-style-etiquette::before,
.ap-offre__public::before {
	background-color: var(--ap-sur-bloc);
}

/* Autres styles de blocs -------------------------------------------------- */

.is-style-chapeau {
	max-width: 36rem;
	font-size: var(--ap-t-chapeau);
	line-height: 1.5;
}

.is-style-geant {
	font-size: var(--ap-t-geant);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.035em;
}

.is-style-outremer {
	background: var(--ap-bloc);
	color: var(--ap-sur-bloc);
}

.is-style-outremer a:hover {
	color: var(--ap-sur-bloc);
	text-decoration-thickness: 2px;
}

.is-style-outremer ::selection {
	background: var(--ap-sur-bloc);
	color: var(--ap-bloc);
}

/* Étapes numérotées, reliées comme une frise */
body .is-style-etapes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem var(--ap-inter);
	padding: 0;
	list-style: none;
	counter-reset: etape;
}

.is-style-etapes > li {
	position: relative;
	padding-top: 3.25rem;
	border-top: 1px solid var(--ap-encre);
	color: var(--ap-graphite);
	font-size: var(--ap-t-petit);
	line-height: 1.55;
	counter-increment: etape;
}

.is-style-etapes > li::before {
	content: counter(etape, decimal-leading-zero);
	position: absolute;
	top: 1rem;
	left: 0;
	color: var(--ap-outremer);
	font-family: var(--ap-mono);
	font-size: var(--ap-t-label);
	letter-spacing: 0.1em;
}

.is-style-etapes > li::after {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ap-outremer);
}

.is-style-etapes > li strong {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--ap-encre);
	font-family: var(--ap-display);
	font-size: var(--ap-t-h3);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

/* Refus rayés */
body .is-style-refus {
	padding: 0;
	list-style: none;
	font-family: var(--ap-display);
	font-size: clamp(1.5rem, 0.9rem + 2.6vw, 3.25rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.is-style-refus > li {
	padding-block: 0.4em;
	border-bottom: 1px solid var(--ap-trait);
}

.is-style-refus > li:first-child {
	border-top: 1px solid var(--ap-trait);
}

.is-style-refus s {
	text-decoration: none;
	background-image: linear-gradient(var(--ap-outremer), var(--ap-outremer));
	background-repeat: no-repeat;
	background-position: 0 58%;
	background-size: 100% 0.085em;
	transition: background-size 1s cubic-bezier(0.7, 0, 0.2, 1);
}

.is-style-refus.a-rayer s {
	background-size: 0% 0.085em;
}

.is-style-refus.a-rayer.est-raye s {
	background-size: 100% 0.085em;
}

.is-style-refus > li:nth-child(2) s { transition-delay: 0.15s; }
.is-style-refus > li:nth-child(3) s { transition-delay: 0.3s; }
.is-style-refus > li:nth-child(4) s { transition-delay: 0.45s; }
.is-style-refus > li:nth-child(5) s { transition-delay: 0.6s; }
.is-style-refus > li:nth-child(n+6) s { transition-delay: 0.75s; }

/* Mur de métiers */
.is-style-mur {
	color: var(--ap-graphite);
	font-family: var(--ap-display);
	font-size: clamp(1.375rem, 0.95rem + 1.6vw, 2.5rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.ap-mur__metier {
	transition: color 0.2s ease;
}

.ap-mur__metier:hover {
	color: var(--ap-encre);
}

.ap-mur__sep {
	color: var(--ap-outremer);
	font-weight: 400;
}

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

body .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

body .wp-block-button__link,
.ap-lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.95rem 1.4rem;
	border: 1px solid var(--ap-encre);
	border-radius: 0;
	background: var(--ap-encre);
	color: var(--ap-papier);
	font-family: var(--ap-texte);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body .wp-block-button__link::after,
.ap-lien-fleche::after {
	content: "→";
	transition: transform 0.2s ease;
}

body .wp-block-button__link:hover,
.ap-lien-fleche:hover {
	border-color: var(--ap-bloc);
	background: var(--ap-bloc);
	color: var(--ap-sur-bloc);
}

body .wp-block-button__link:hover::after,
.ap-lien-fleche:hover::after {
	transform: translateX(4px);
}

body .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--ap-encre);
	background: transparent;
	color: var(--ap-encre);
}

body .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--ap-outremer);
	background: transparent;
	color: var(--ap-outremer);
}

.is-style-outremer .wp-block-button__link {
	border-color: var(--ap-sur-bloc);
	background: var(--ap-sur-bloc);
	color: var(--ap-bloc);
}

/* Ouverture (accroche) ---------------------------------------------------- */

.ap-ouverture {
	padding-block: clamp(2.5rem, 1rem + 4vw, 5.5rem) var(--ap-section);
}

.ap-ouverture__titre {
	position: relative;
	z-index: 2;
	font-size: var(--ap-t-h1);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.ap-ouverture__titre em {
	display: block;
	margin-top: 0.45em;
	color: var(--ap-outremer);
	font-size: 0.5em;
	font-style: normal;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.ap-ouverture > .is-style-chapeau {
	margin-top: clamp(1.75rem, 1rem + 2vw, 3rem);
}

.ap-ouverture > .wp-block-buttons {
	margin-top: 2rem;
}

.ap-ouverture > .wp-block-aporielab-objet-tourne {
	margin-top: 2.5rem;
}

@media (min-width: 60rem) {
	.ap-ouverture {
		grid-template-rows: auto auto auto 1fr;
	}

	.ap-ouverture > * {
		grid-column: 1 / span 6;
	}

	.ap-ouverture > .is-style-etiquette {
		grid-row: 1;
	}

	.ap-ouverture > .ap-ouverture__titre {
		grid-row: 2;
		grid-column: 1 / span 7;
	}

	.ap-ouverture > .is-style-chapeau {
		grid-row: 3;
	}

	.ap-ouverture > .wp-block-buttons {
		grid-row: 4;
		align-self: start;
	}

	.ap-ouverture > .wp-block-aporielab-objet-tourne {
		z-index: 1;
		grid-row: 1 / span 4;
		grid-column: 8 / -1;
		align-self: start;
		margin-top: 0;
	}
}

/* Visuels 3D animés ------------------------------------------------------- */

.ap-objet {
	--ap-coin: var(--ap-graphite);
	position: relative;
	width: 100%;
	max-width: 100%;
	max-height: 44rem;
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(var(--ap-coin), var(--ap-coin)) left top / 16px 1px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) left top / 1px 16px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) right top / 16px 1px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) right top / 1px 16px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) left bottom / 16px 1px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) left bottom / 1px 16px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) right bottom / 16px 1px no-repeat,
		linear-gradient(var(--ap-coin), var(--ap-coin)) right bottom / 1px 16px no-repeat;
}

.ap-objet__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

@media (max-width: 59.99rem) {
	.ap-objet {
		aspect-ratio: 1 / 1;
		max-height: 34rem;
	}
}

/* Aporie : la définition -------------------------------------------------- */

body .ap-aporie__colonnes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem var(--ap-inter);
}

.ap-definition__mot {
	font-family: var(--ap-display);
	font-size: clamp(3rem, 1.5rem + 5vw, 6.5rem);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.ap-definition__phon {
	margin-block: 1.25rem 1rem;
	color: var(--ap-outremer);
	font-family: var(--ap-mono);
	font-size: 0.9375rem;
}

/* Les deux sens du mot, numérotés comme dans un dictionnaire. */
.ap-definition__sens {
	max-width: 26rem;
	margin: 0;
	padding-left: 1.5rem;
	color: var(--ap-graphite);
}

.ap-definition__sens li + li {
	margin-top: 0.5rem;
}

.ap-definition__sens li::marker {
	color: var(--ap-outremer);
	font-family: var(--ap-mono);
	font-size: 0.875em;
}

/* La pensée aporétique : un encadré de lecture sous la définition. */
.ap-definition__titre {
	max-width: 26rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ap-trait);
	color: var(--ap-outremer);
	font-family: var(--ap-mono);
	font-size: var(--ap-t-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ap-definition__pensee {
	max-width: 26rem;
	margin-top: 0.75rem;
	color: var(--ap-graphite);
	font-size: var(--ap-t-petit);
}

.ap-aporie__colonnes h2 {
	margin-bottom: 2rem;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
	line-height: 1.08;
}

.ap-aporie__colonnes .wp-block-column > p + p {
	margin-top: 1.1em;
}

.ap-aporie__colonnes .wp-block-column > p {
	max-width: 38rem;
}

/* D'où vient l'équipe : un aparté, séparé par un filet outremer. */
.ap-aporie__colonnes .wp-block-column > .ap-aporie__origine {
	margin-top: 2rem;
	padding-left: 1rem;
	border-left: 2px solid var(--ap-outremer);
	color: var(--ap-graphite);
	font-size: var(--ap-t-petit);
}

.ap-aporie__origine a {
	color: var(--ap-encre);
	font-weight: 600;
}

.ap-aporie__origine a:hover {
	color: var(--ap-outremer);
}

@media (min-width: 60rem) {
	body .ap-aporie__colonnes {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.ap-aporie__colonnes > .wp-block-column:first-child {
		grid-column: 1 / span 5;
	}

	.ap-aporie__colonnes > .wp-block-column:last-child {
		grid-column: 7 / -1;
	}
}

/* Expertises -------------------------------------------------------------- */

body .ap-offres {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.ap-offre {
	--ap-puce: var(--ap-puce-repere);
	padding-block: 2rem 2.5rem;
	border-top: 1px solid var(--ap-sur-bloc-trait);
}

.ap-offre--conseil { --ap-puce: var(--ap-puce-boussole); }
.ap-offre--process { --ap-puce: var(--ap-puce-cycle); }
.ap-offre--annexe { --ap-puce: var(--ap-puce-cube); }

.ap-offre__public {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
	font-family: var(--ap-mono);
	font-size: var(--ap-t-label);
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ap-offre h3 {
	margin-bottom: 1.25rem;
}

.ap-offre > p:not(.ap-offre__public) {
	max-width: 30rem;
	color: var(--ap-sur-bloc-doux);
}

body .ap-offre ul {
	margin-top: 1.75rem;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	line-height: 1.45;
}

.ap-offre li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding-block: 0.7rem;
	border-top: 1px solid var(--ap-sur-bloc-trait);
}

.ap-offre li::before {
	content: "";
	flex: none;
	width: 0.4rem;
	height: 0.4rem;
	margin-top: 0.55em;
	border: 1px solid currentColor;
	transform: rotate(45deg);
}

.ap-offre--annexe h3 {
	font-weight: 500;
}

@media (min-width: 60rem) {
	body .ap-offres {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-top: 1px solid var(--ap-sur-bloc-trait);
	}

	.ap-offre {
		padding: 2.25rem var(--ap-inter) 0 0;
		border-top: 0;
	}

	.ap-offre + .ap-offre {
		padding-left: var(--ap-inter);
		border-left: 1px solid var(--ap-sur-bloc-trait);
	}

	/* La colonne « En annexe » décroche : décalée, en pointillés. */
	body .ap-offres > .ap-offre--annexe {
		margin-top: 4rem;
		border-top: 1px dashed var(--ap-sur-bloc-trait);
	}

	.ap-offre + .ap-offre.ap-offre--annexe {
		border-left-style: dashed;
	}
}

/* Méthode ----------------------------------------------------------------- */

@media (max-width: 59.99rem) {
	body .is-style-etapes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 36rem) {
	body .is-style-etapes {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Contre-indications ------------------------------------------------------ */

.ap-refus__suite {
	margin-top: 2.25rem;
	color: var(--ap-outremer);
	font-family: var(--ap-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Terrain ----------------------------------------------------------------- */

.ap-terrain > h2 {
	grid-column: 1 / span 8;
}

@media (min-width: 60rem) {
	.ap-terrain > .is-style-mur {
		grid-column: 1 / span 11;
	}
}

/* Contact ----------------------------------------------------------------- */

.ap-contact > .is-style-geant {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.ap-contact__texte {
	max-width: 32rem;
	margin-top: 2rem;
	font-size: var(--ap-t-chapeau);
	line-height: 1.5;
}

.ap-contact__mail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
	font-family: var(--ap-display);
	font-size: clamp(1.375rem, 0.8rem + 2.8vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.ap-contact__mail a {
	text-decoration-color: var(--ap-outremer);
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.14em;
}

.ap-copier {
	display: inline-block;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--ap-trait);
	background: transparent;
	color: var(--ap-graphite);
	font-family: var(--ap-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	vertical-align: middle;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ap-copier:hover {
	border-color: var(--ap-outremer);
	color: var(--ap-outremer);
}

.ap-contact__tel {
	margin-top: 1.25rem;
	font-family: var(--ap-mono);
	font-size: 1.0625rem;
	letter-spacing: 0.04em;
}

.ap-contact__tel a {
	text-decoration: none;
}

/* Pages de texte ---------------------------------------------------------- */

.ap-page {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--ap-inter);
	padding-block: clamp(3rem, 1.5rem + 5vw, 7rem) var(--ap-section);
	padding-inline: var(--ap-bords);
}

.ap-page > * {
	grid-column: 1 / -1;
}

.ap-page__entete {
	margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
}

.ap-page__titre {
	font-size: var(--ap-t-h2);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ap-page__image {
	margin-bottom: 3rem;
}

.ap-prose > * + * {
	margin-top: 1.1em;
}

.ap-prose > h2 {
	margin-top: 2.6em;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	letter-spacing: -0.015em;
}

.ap-prose > h3 {
	margin-top: 2em;
	font-size: 1.25rem;
}

.ap-prose > h2 + *,
.ap-prose > h3 + * {
	margin-top: 0.9em;
}

.ap-prose ul,
.ap-prose ol {
	padding-left: 1.25em;
}

.ap-prose li + li {
	margin-top: 0.35em;
}

.ap-prose li::marker {
	color: var(--ap-outremer);
}

.ap-prose a {
	text-decoration-color: var(--ap-outremer);
}

.ap-page__suite {
	margin-top: 4rem;
	font-family: var(--ap-mono);
	font-size: 0.8125rem;
}

.ap-page__suite .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

@media (min-width: 60rem) {
	.ap-prose,
	.ap-page__suite {
		grid-column: 4 / span 7;
	}

	.ap-page__entete {
		grid-column: 1 / span 10;
	}
}

/* Liste d'articles */
.ap-liste__articles {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ap-encre);
}

.ap-liste__articles li {
	border-bottom: 1px solid var(--ap-trait);
}

.ap-liste__articles a {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: 1.25rem;
	text-decoration: none;
}

.ap-liste__articles time {
	padding-top: 0.35em;
	color: var(--ap-graphite);
	font-family: var(--ap-mono);
	font-size: 0.8125rem;
}

.ap-liste__articles span {
	font-family: var(--ap-display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.ap-liste .navigation {
	margin-top: 2rem;
	font-family: var(--ap-mono);
}

.ap-liste .nav-links {
	display: flex;
	gap: 1rem;
}

@media (max-width: 36rem) {
	.ap-liste__articles a {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.25rem;
	}
}

/* 404 */
.ap-introuvable > .is-style-chapeau {
	margin-top: 2.5rem;
}

.ap-introuvable__retour {
	margin-top: 2.5rem;
}

/* Pied de page ------------------------------------------------------------ */

.ap-pied {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.5rem var(--ap-inter);
	padding-block: clamp(3rem, 2rem + 3vw, 5rem) 1.75rem;
	padding-inline: var(--ap-bords);
	border-top: 1px solid var(--ap-encre);
	font-size: var(--ap-t-petit);
}

.ap-pied > * {
	grid-column: 1 / -1;
}

.ap-pied__nom {
	line-height: 0;
}

.ap-pied__logo {
	display: block;
	width: 8.5rem;
	height: auto;
}

.ap-pied__baseline {
	max-width: 24rem;
	margin-top: 1.25rem;
	color: var(--ap-graphite);
}

.ap-pied ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--ap-mono);
	font-size: 0.8125rem;
}

.ap-pied ul a {
	text-decoration: none;
}

.ap-pied__bas {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ap-trait);
	color: var(--ap-graphite);
	font-family: var(--ap-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (min-width: 48rem) {
	.ap-pied__identite {
		grid-column: 1 / span 6;
	}

	.ap-pied__coordonnees {
		grid-column: 7 / span 3;
	}

	.ap-pied__nav {
		grid-column: 10 / -1;
	}

	.ap-pied__bas {
		grid-column: 1 / -1;
	}
}

/* Mouvement réduit -------------------------------------------------------- */

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