/*
 * Le site de Florian Cazals, développeur — une seule feuille, aucun script.
 *
 * Sobre exprès : des gris froids, une encre anthracite, et une seule couleur,
 * l'indigo #5a61bd, pour ce qu'on clique et ce qui compte. Ce qui donne envie, ce
 * sont les écrans (les maquettes `mq-`), pas la décoration autour. Ni jaune
 * (« ça fait Kiloutou »), ni bleu vif (« ça fait LinkedIn »), ni aplats de
 * couleur ni rayons (« épurer », 21/10). Ont précédé : le vert du canal du
 * Midi, puis le bleu pétrole ; l'indigo est le choix du 21/10. Tout contraste de texte est au moins
 * de 4,5:1, mesuré dans les deux thèmes.
 *
 * ⚠ La politique de sécurité ignore tout attribut style= : ce qui varie passe
 * par une classe. Une media query n'ajoute AUCUNE spécificité. Et aucun texte
 * n'est penché : un texte tourné d'un degré s'affiche flou.
 */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/static/polices/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("/static/polices/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	interpolate-size: allow-keywords;

	/* Indigo et gris froids : un bleu « qui fait informatique » (user, 21/10),
	   choisi entre le pétrole et la pervenche. Du texte blanc dessus : 5,4:1. */
	--papier: #f7f8fa;
	--papier-2: #eef1f4;
	--carte: #ffffff;
	--encre: #1b2430;
	--encre-2: #46515e;
	--encre-3: #5c6774;
	--trait: #e1e6eb;
	--trait-fort: #cbd3db;
	--accent: #5a61bd;
	--accent-fonce: #474da0;
	/* L'accent des PETITS textes (surtitres, liens, numéros). Il vaut l'accent,
	   sauf quand celui-ci est trop clair pour lire du texte fin dessus. */
	--accent-texte: var(--accent);
	--sur-accent: #ffffff;
	--vert: #1f6b4f;
	--ocre: #8a5d06;
	--ocre-doux: #f6ecd6;
	--erreur: #b3261e;
	--erreur-doux: #fdecea;
	--marque-fond: #5a61bd;
	--marque-visage: #ffffff;

	--ombre: 0 1px 2px rgb(27 36 48 / 0.05), 0 8px 24px rgb(27 36 48 / 0.07);
	--rayon: 16px;

	/* Les écrans des maquettes restent clairs dans les deux thèmes : ce sont des
	   captures d'applis, pas des morceaux de la page. */
	--mq-cadre: #1c232b;
	--voile: rgb(15 20 26 / 0.4);
	--mq-fond: #f3f5f7;
	--mq-carte: #ffffff;
	--mq-encre: #1d2530;
	--mq-encre-2: #5a6572;
	--mq-trait: #e2e6eb;
	--mq-accent: #5a61bd;
	--mq-accent-doux: #eeeffa;
	--mq-accent-texte: var(--mq-accent);
	--mq-ok: #2a6a4a;
	--mq-ok-doux: #e1efe6;
	--mq-attente: #855a07;
	--mq-attente-doux: #f7eddb;
	--mq-alerte: #a8402a;
	--mq-alerte-doux: #fae6df;
	--mq-ombre: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 6px rgb(0 0 0 / 0.04);

	--police-titre: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--papier: #0f141a;
		--papier-2: #141a21;
		--carte: #19212a;
		--encre: #e9eef2;
		--encre-2: #c0c9d2;
		--encre-3: #95a1ad;
		--trait: #252e38;
		--trait-fort: #36414d;
		--accent: #a9aef0;
		--accent-fonce: #c3c7f6;
		--sur-accent: #0f141a;
		--vert: #6fd3a3;
		--ocre: #e8b75a;
		--ocre-doux: #362d16;
		--erreur: #ff8a80;
		--erreur-doux: #3a1d22;
		--marque-fond: #5a61bd;
		--marque-visage: #ffffff;

		--ombre: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
		--mq-cadre: #2a323b;
		--voile: rgb(0 0 0 / 0.6);
	}
}

/* --- La base ------------------------------------------------------------ */

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

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* L'en-tête collé ne doit pas cacher le titre d'une section qu'on vient de
	   rejoindre par le menu. */
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font-family: var(--police);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

h1,
h2,
h3 {
	font-family: var(--police-titre);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--accent-texte);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

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

strong {
	font-weight: 700;
}

/* Un mot composé qui ne doit pas se couper à son trait d'union (« rendez-vous »). */
.insecable {
	white-space: nowrap;
}

.ic {
	width: 1em;
	height: 1em;
	flex: none;
}

.large {
	width: min(100% - 32px, 1160px);
	margin-inline: auto;
}

.large--etroit {
	width: min(100% - 32px, 780px);
}

.evitement {
	position: absolute;
	left: -10000px;
	top: 8px;
	z-index: 100;
	background: var(--carte);
	color: var(--encre);
	padding: 10px 16px;
	border-radius: 10px;
	box-shadow: var(--ombre);
}

.evitement:focus {
	left: 16px;
}

/* --- Les boutons -------------------------------------------------------- */

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 44px;
	padding: 0.65em 1.2em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.bouton .ic {
	transition: transform 0.2s ease;
}

.bouton:hover .ic {
	transform: translateX(3px);
}

.bouton--grand {
	padding: 0.8em 1.4em;
}

.bouton--primaire {
	background: var(--accent);
	color: var(--sur-accent);
}

.bouton--primaire:hover {
	background: var(--accent-fonce);
}

.bouton--trait {
	border-color: var(--trait-fort);
	background: var(--carte);
	color: var(--encre);
}

.bouton--trait:hover {
	border-color: var(--encre);
}

.bouton--trait .ic {
	color: var(--accent);
}

/* --- L'en-tête ---------------------------------------------------------- */

.tete {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--papier) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--trait);
}

.tete__barre {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 68px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--encre);
	text-decoration: none;
	min-height: 44px;
}

.logo__marque {
	flex: none;
	width: 38px;
	height: 38px;
}

.logo__texte {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.logo__nom {
	font-family: var(--police-titre);
	font-size: 1.12rem;
	font-weight: 750;
	letter-spacing: -0.01em;
}

.logo__metier {
	font-size: 0.78rem;
	color: var(--encre-3);
}

.nav {
	display: none;
	gap: 2px;
	margin-left: auto;
}

.nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--encre-2);
	font-size: 0.95rem;
	font-weight: 550;
	text-decoration: none;
}

.nav a:hover {
	background: var(--papier-2);
	color: var(--encre);
}

/* Le téléphone et le bouton, serrés à droite. Sur téléphone, le téléphone est
   une icône ronde ; son numéro paraît dès qu'il y a la place. */
.tete__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.tete__tel {
	width: 44px;
	padding-inline: 0;
}

.tete__tel .ic {
	width: 1.1em;
	height: 1.1em;
}

.tete__tel-numero {
	display: none;
}

.tete__appel {
	padding-inline: 1.1em;
}

.tete__actions > *,
.logo__nom {
	flex: none;
	white-space: nowrap;
}

/* Petit téléphone : le métier se tait (le haut de page le dit juste dessous),
   tout se resserre, et sous 360 px le nom laisse la place au seul signe. Les
   deux boutons, eux, restent entiers. */
@media (max-width: 479px) {
	.tete__barre {
		gap: 10px;
	}

	.logo__metier {
		display: none;
	}

	.logo__marque {
		width: 34px;
		height: 34px;
	}

	.logo__nom {
		font-size: 1rem;
	}

	.tete__actions {
		gap: 6px;
	}

	.tete__tel {
		width: 42px;
		min-height: 42px;
	}

	.tete__appel {
		min-height: 42px;
		padding-inline: 0.9em;
		font-size: 0.95rem;
	}
}

/* Avec les trois barres du menu, le nom sur une ligne ne tient plus à côté des
   deux boutons sous 430 px : il passe sur deux, « Florian » sur « Cazals ». */
@media (max-width: 429px) {
	.tete .logo__nom {
		width: min-content;
		white-space: normal;
		line-height: 1.05;
	}
}

@media (max-width: 374px) {
	.tete__barre {
		gap: 8px;
	}

	.tete__actions {
		gap: 4px;
	}
}

@media (max-width: 359px) {
	.logo__texte {
		display: none;
	}
}

.tete__appel-long {
	display: none;
}

@media (min-width: 600px) {
	.tete__appel-long {
		display: inline;
	}

	.tete__appel-court {
		display: none;
	}
}

@media (min-width: 760px) {
	.tete__tel {
		width: auto;
		padding-inline: 1em;
	}

	.tete__tel-numero {
		display: inline;
	}
}

/* La barre des sections arrive : le numéro se replie en icône jusqu'à ce que
   tout tienne sur une ligne. */
@media (min-width: 1000px) {
	.nav {
		display: flex;
	}

	.tete .tete__actions {
		margin-left: 8px;
	}
}

@media (min-width: 1000px) and (max-width: 1079px) {
	.tete__tel {
		width: 44px;
		padding-inline: 0;
	}

	.tete__tel-numero {
		display: none;
	}
}

/* Le menu du téléphone et de la tablette (D10) : trois barres à droite de
   l'en-tête, et un panneau qui sort de dessous, sur un voile. Sans script, il
   est ouvert quand il est la cible de l'adresse (#menu) ; un lien de section
   change la cible et le referme. Le bouton devient une croix tant qu'il est
   ouvert. */
.tete__menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	/* L'icône s'aligne sur la gouttière, la cible reste large. */
	margin-right: -10px;
	border-radius: 999px;
	color: var(--encre);
	text-decoration: none;
}

.tete__menu .ic {
	width: 24px;
	height: 24px;
}

.tete__menu:hover {
	background: var(--papier-2);
}

/* La cible de #menu : jamais dessinée, voir la coquille. */
.menu-cible {
	display: none;
}

.menu {
	display: none;
	position: fixed;
	inset: 0;
	/* Sous l'en-tête (50) : le panneau sort de dessous lui. */
	z-index: 49;
}

.menu__voile {
	position: absolute;
	inset: 0;
	background: var(--voile);
}

.menu__panneau {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	/* La hauteur de l'en-tête et de son filet. */
	padding-top: 69px;
	background: var(--papier);
	border-bottom: 1px solid var(--trait);
	box-shadow: var(--ombre);
}

.menu__liens {
	display: flex;
	flex-direction: column;
	padding: 6px 0 14px;
}

.menu__liens a {
	display: flex;
	align-items: center;
	min-height: 54px;
	border-bottom: 1px solid var(--trait);
	color: var(--encre);
	font-family: var(--police-titre);
	font-size: 1.2rem;
	font-weight: 650;
	text-decoration: none;
}

.menu__liens a:last-child {
	border-bottom: 0;
}

.menu__liens a:hover {
	color: var(--accent);
}

/* Tout ce qui ouvre est sous 1000 px : au-delà, la barre des sections est dans
   l'en-tête, et un #menu resté dans l'adresse ne rouvre rien. */
@media (max-width: 999px) {
	.tete__menu--ouvrir {
		display: inline-flex;
	}

	body:has(> #menu:target) .tete__menu--ouvrir {
		display: none;
	}

	body:has(> #menu:target) .tete__menu--fermer {
		display: inline-flex;
	}

	#menu:target + .menu {
		display: block;
	}

	/* La page ne défile pas sous le menu ouvert. */
	html:has(#menu:target) {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: no-preference) {
	#menu:target + .menu .menu__panneau {
		animation: menu-panneau 0.2s ease-out;
	}

	#menu:target + .menu .menu__voile {
		animation: menu-voile 0.2s ease-out;
	}
}

@keyframes menu-panneau {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
}

@keyframes menu-voile {
	from {
		opacity: 0;
	}
}

/* --- Le signe ----------------------------------------------------------- */

/* Le robot dans sa bulle (outils/logo, choisi par le user le 21/10) : le corps
   et l'antenne d'une couleur, le visage de l'autre. */
.marque__corps {
	fill: var(--marque-fond);
}

.marque__visage {
	fill: var(--marque-visage);
}

/* --- Les sections ------------------------------------------------------- */

.section {
	padding: 64px 0;
}

@media (min-width: 960px) {
	.section {
		padding: 88px 0;
	}
}

.surtitre {
	margin: 0 0 10px;
	color: var(--accent-texte);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entete {
	max-width: 40em;
	margin-bottom: 32px;
}

.entete__titre {
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
	font-weight: 700;
}

.entete__intro {
	margin-top: 12px;
	color: var(--encre-2);
	font-size: 1.08rem;
}

/* --- Le haut de l'accueil ------------------------------------------------ */

.hero {
	padding: 40px 0 56px;
}

@media (min-width: 980px) {
	.hero {
		padding: 64px 0 80px;
	}
}

.hero__grille {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 980px) {
	.hero__grille {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: 48px;
	}
}

.hero__titre {
	font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.1rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.hero__promesse {
	display: block;
	margin-top: 0.1em;
	color: var(--accent);
}

.hero__accroche {
	max-width: 32em;
	margin: 20px 0 0;
	color: var(--encre-2);
	font-size: 1.12rem;
}

.hero__boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.hero__assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	color: var(--encre-3);
	font-size: 0.9rem;
}

/* Un point devant CHAQUE élément, premier compris : passé à la ligne, aucun ne
   commence par un séparateur orphelin. */
.hero__assurances li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hero__assurances li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
}

/* La vitrine : l'ordinateur, et le téléphone posé devant, en bas à droite. */
.vitrine {
	margin: 0;
}

.vitrine__scene {
	position: relative;
	padding: 0 15% 7% 0;
}

/* Deux classes : `.mq-tel` (position: relative), déclarée plus bas, gagnerait
   sinon à poids égal — le téléphone tombait sous l'ordinateur. */
.vitrine__scene > .vitrine__tel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 25%;
}

.legende {
	margin-top: 14px;
	color: var(--encre-3);
	font-size: 0.86rem;
	text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
	.vitrine__portable {
		animation: apparait 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.vitrine__tel {
		animation: apparait 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes apparait {
	from {
		opacity: 0;
		translate: 0 18px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

/* --- Les exemples -------------------------------------------------------- */

.section--exemples {
	background: var(--papier-2);
}

/* Le carrousel (accueil.templ dit comment il marche sans script). Ce qui suit
   vaut pour les deux façons de le parcourir ; viennent ensuite le mode souris
   (vues empilées, une seule montrée) et le mode doigt (piste qu'on fait
   glisser). */

.carrousel {
	position: relative;
}

/* Une vue : l'écran, ses commandes juste dessous, la légende. Sur grand écran,
   la légende passe à droite. */
.carrousel__vue {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 8px;
}

/* La scène : une carte de proportions fixes, l'appareil centré dedans. --a est
   sa hauteur divisée par sa largeur ; la largeur de chaque appareil en découle,
   pour qu'il tienne en hauteur (téléphone 9/19, tablette 4/3, portable ≈ 5/3). */
.carrousel__cadre {
	--a: 1.25;

	container-type: inline-size;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / var(--a);
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	background: var(--papier);
}

.carrousel__appareil--tel {
	width: calc(var(--a) * 41cqi);
}

.carrousel__appareil--tablette {
	width: min(92cqi, calc(var(--a) * 115cqi));
}

.carrousel__appareil--portable {
	width: min(94cqi, calc(var(--a) * 145cqi));
}

/* Les commandes : une flèche, les points, l'autre flèche. */
.carrousel__commandes {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	margin-top: 8px;
}

.carrousel__puces {
	display: flex;
	justify-content: center;
}

.carrousel__puce {
	width: 30px;
	height: 44px;
	border-radius: 8px;
	background: radial-gradient(circle, var(--trait-fort) 0 4px, transparent 4.5px);
	cursor: pointer;
}

.carrousel__puce--actif {
	background: radial-gradient(circle, var(--accent) 0 6px, transparent 6.5px);
}

/* Sept points et deux flèches tiennent dans 288 px (un écran de 320). */
@media (max-width: 359px) {
	.carrousel__puce {
		width: 26px;
	}
}

.carrousel__fleche {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--trait-fort);
	border-radius: 50%;
	background: var(--carte);
	color: var(--encre);
	cursor: pointer;
}

.carrousel__fleche:hover {
	border-color: var(--encre);
}

/* Une seule flèche dessinée, retournée pour revenir en arrière : un retournement
   n'est pas une rotation, l'icône reste nette. */
.carrousel__fleche--prec .ic {
	scale: -1 1;
}

.carrousel__legende {
	padding-top: 4px;
}

.carrousel__compte {
	margin: 0 0 6px;
	color: var(--accent-texte);
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.carrousel__titre {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 700;
}

.carrousel__texte {
	max-width: 30em;
	margin: 8px 0 0;
	color: var(--encre-2);
	font-size: 1.05rem;
}

.carrousel__pour {
	margin: 14px 0 0;
	color: var(--encre-3);
	font-size: 0.92rem;
}

.carrousel__pour span {
	margin-right: 0.4em;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	background: var(--papier);
	color: var(--encre-2);
	font-size: 0.8rem;
	font-weight: 650;
}

@media (min-width: 600px) {
	.carrousel__cadre {
		--a: 0.8;
	}
}

@media (min-width: 900px) {
	.carrousel__vue {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		align-items: center;
		column-gap: 56px;
	}

	.carrousel__cadre {
		--a: 0.86;
	}

	.carrousel__legende {
		padding: 0 0 60px;
	}

	.carrousel__titre {
		font-size: 1.9rem;
	}
}

/* Les boutons radio ne se voient pas : ce sont les points qui les montrent. Ils
   restent atteignables au clavier, et le point de la vue montrée s'entoure
   quand le groupe a le focus. */
.carrousel__choix {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.carrousel:has(.carrousel__point:focus-visible) .carrousel__puce--actif {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

/* --- À la souris : les vues empilées dans la même case, une seule montrée.
   La pile prend la hauteur de la plus grande, donc rien ne saute en changeant
   de vue, et les flèches restent sous le pointeur. */
@media not all and (hover: none) and (pointer: coarse) {
	.carrousel__piste {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.carrousel__vue {
		grid-area: 1 / 1;
		opacity: 0;
		visibility: hidden;
		transition:
			opacity 0.3s ease,
			visibility 0s linear 0.3s;
	}

	/* Sans :has() (navigateur de plus de trois ans), la première vue seule, sans
	   commandes. */
	.carrousel__vue:first-child {
		opacity: 1;
		visibility: visible;
	}

	.carrousel__commandes {
		visibility: hidden;
	}

	@supports selector(:has(*)) {
		.carrousel__vue:first-child {
			opacity: 0;
			visibility: hidden;
		}

		/* Une règle par vue : en ajouter une avec chaque exemple (contenu.go). */
		.carrousel:has(.carrousel__point:nth-child(1):checked) .carrousel__vue:nth-child(1),
		.carrousel:has(.carrousel__point:nth-child(2):checked) .carrousel__vue:nth-child(2),
		.carrousel:has(.carrousel__point:nth-child(3):checked) .carrousel__vue:nth-child(3),
		.carrousel:has(.carrousel__point:nth-child(4):checked) .carrousel__vue:nth-child(4),
		.carrousel:has(.carrousel__point:nth-child(5):checked) .carrousel__vue:nth-child(5),
		.carrousel:has(.carrousel__point:nth-child(6):checked) .carrousel__vue:nth-child(6),
		.carrousel:has(.carrousel__point:nth-child(7):checked) .carrousel__vue:nth-child(7),
		.carrousel:has(.carrousel__point:nth-child(8):checked) .carrousel__vue:nth-child(8) {
			opacity: 1;
			visibility: visible;
			transition: opacity 0.3s ease;
		}

		.carrousel__commandes {
			visibility: inherit;
		}
	}
}

/* --- Au doigt : une piste qu'on fait glisser, chaque vue se cale au centre.
   Les flèches et les boutons radio n'y servent pas ; les points disent où l'on
   en est. C'est le SEUL élément du site qui défile de côté, et il le fait
   exprès (D19, D23). */
@media (hover: none) and (pointer: coarse) {
	.carrousel__choix,
	.carrousel__fleche {
		display: none;
	}

	.carrousel__commandes {
		justify-content: center;
	}

	.carrousel__puce {
		cursor: default;
		pointer-events: none;
	}

	.carrousel__piste {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.carrousel__piste::-webkit-scrollbar {
		display: none;
	}

	.carrousel__piste {
		gap: 16px;
	}

	/* Une vue pleine largeur : un bord de la voisine montrait des lettres de sa
	   légende. Les points et « 2 / 7 » disent qu'il y a une suite. */
	.carrousel__vue {
		flex: 0 0 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
}

.exemples__note {
	margin: 32px 0 0;
	color: var(--encre-3);
	font-size: 0.88rem;
	text-align: center;
}

/* --- Comment ça se passe ------------------------------------------------- */

.etapes {
	display: grid;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 800px) {
	.etapes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}

/* Une carte par étape. */
.etape {
	position: relative;
	padding: 22px 22px 24px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	background: var(--carte);
	box-shadow: var(--ombre);
}

/* Le trait qui mène d'une carte à la suivante, à hauteur des numéros : vertical
   sur téléphone, horizontal quand les cartes sont côte à côte. */
.etape:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 41px;
	width: 2px;
	height: 28px;
	background: var(--accent-texte);
	opacity: 0.35;
}

@media (min-width: 800px) {
	.etape:not(:last-child)::after {
		top: 41px;
		left: 100%;
		width: 40px;
		height: 2px;
	}
}

.etape__tete {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.etape__num {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--sur-accent);
	font-family: var(--police-titre);
	font-size: 1.1rem;
	font-weight: 700;
}

.etape__quand {
	padding: 0.25em 0.75em;
	border-radius: 999px;
	background: var(--papier-2);
	color: var(--encre-2);
	font-size: 0.85rem;
	font-weight: 650;
}

.etape__icone {
	display: grid;
	place-items: center;
	margin-left: auto;
	color: var(--accent-texte);
	font-size: 1.5rem;
}

.etape__titre {
	margin-bottom: 6px;
	font-size: 1.2rem;
	font-weight: 700;
}

.etape__texte {
	color: var(--encre-2);
}

/* --- Les tarifs ---------------------------------------------------------- */

.section--tarifs {
	background: var(--papier-2);
}

.tarifs {
	display: grid;
	gap: 14px;
}

@media (min-width: 800px) {
	.tarifs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tarif {
	padding: 24px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	background: var(--carte);
}

.tarif p {
	margin: 0;
}

.tarif__nom {
	color: var(--encre-2);
	font-size: 0.95rem;
	font-weight: 600;
}

.tarif__prix {
	margin: 6px 0 8px;
	font-family: var(--police-titre);
	font-size: 2rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.tarif__prix span {
	color: var(--encre-3);
	font-family: var(--police);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.tarif__texte {
	color: var(--encre-2);
	font-size: 0.95rem;
}

.tarifs__note {
	margin: 22px 0 0;
	color: var(--encre-3);
	font-size: 0.9rem;
}

/* --- Qui je suis --------------------------------------------------------- */

.moi {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 800px) {
	.moi {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 56px;
	}
}

.fiche {
	display: grid;
	justify-items: center;
	gap: 4px;
	max-width: 280px;
	padding: 32px 24px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	background: var(--carte);
	text-align: center;
}

.fiche p {
	margin: 0;
}

.fiche__marque {
	width: 64px;
	height: 64px;
	margin-bottom: 10px;
}

.fiche__nom {
	font-family: var(--police-titre);
	font-size: 1.4rem;
	font-weight: 700;
}

.fiche__lieu {
	color: var(--encre-3);
}

/* La photo reste petite : la tête et les épaules suffisent, et l'original,
   doux, gagne en netteté à être réduit. */
.portrait {
	max-width: 220px;
	margin: 0;
}

/* Sur une colonne, la carte et la photo se centrent au-dessus du texte. */
@media (max-width: 799px) {
	.moi .fiche,
	.moi .portrait {
		justify-self: center;
		width: 100%;
	}

	.moi .portrait {
		max-width: 200px;
	}
}

.portrait__img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--rayon);
	object-fit: cover;
}

.moi__texte .entete {
	margin-bottom: 18px;
}

.moi__para {
	max-width: 36em;
	color: var(--encre-2);
	font-size: 1.08rem;
}

/* --- Les maquettes (maquettes.templ) -------------------------------------
 *
 * Chaque cadre est un conteneur (container-type) : la taille du texte de son
 * écran se règle en `cqi`, une fraction de la largeur du cadre, et tout le
 * reste est en `em`. Une maquette garde donc ses proportions à toutes les
 * largeurs, comme une image, en restant nette.
 */

.mq-tel,
.mq-portable,
.mq-tablette {
	container-type: inline-size;
	position: relative;
}

.mq-ecran {
	overflow: hidden;
	background: var(--mq-fond);
	color: var(--mq-encre);
	font-family: var(--police);
	line-height: 1.3;
}

/* Le téléphone : un cadre sombre, des coins arrondis, et l'encoche. */
.mq-tel {
	aspect-ratio: 9 / 19;
	padding: 3.2%;
	border-radius: 13% / 6.2%;
	background: var(--mq-cadre);
	box-shadow:
		0 24px 48px rgb(0 0 0 / 0.18),
		inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.mq-tel::before {
	content: "";
	position: absolute;
	top: 4.6%;
	left: 50%;
	z-index: 2;
	width: 26%;
	height: 2.4%;
	border-radius: 999px;
	background: var(--mq-cadre);
	translate: -50% 0;
}

.mq-ecran--tel {
	height: 100%;
	border-radius: 10.5% / 5%;
	font-size: 5.2cqi;
}

/* L'ordinateur portable : l'écran dans son bord, posé sur un socle plus large. */
.mq-portable__bord {
	margin-inline: 5%;
	padding: 2%;
	border-radius: 2.2cqi 2.2cqi 0 0;
	background: var(--mq-cadre);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.mq-ecran--portable {
	aspect-ratio: 16 / 10;
	border-radius: 0.5cqi;
	font-size: 1.85cqi;
}

.mq-portable__socle {
	position: relative;
	height: 2.2cqi;
	border-radius: 0 0 1.6cqi 1.6cqi;
	background: linear-gradient(#d6dadf, #aab1b9);
	box-shadow: 0 18px 36px rgb(0 0 0 / 0.16);
}

.mq-portable__socle::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 14%;
	height: 45%;
	border-radius: 0 0 1cqi 1cqi;
	background: #9aa2ab;
	translate: -50% 0;
}

/* La tablette, à l'horizontale. */
.mq-tablette {
	aspect-ratio: 4 / 3;
	padding: 2.6%;
	border-radius: 4.5% / 6%;
	background: var(--mq-cadre);
	box-shadow:
		0 24px 48px rgb(0 0 0 / 0.16),
		inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.mq-ecran--tablette {
	height: 100%;
	border-radius: 2% / 2.7%;
	font-size: 2.2cqi;
}

/* --- L'intérieur des écrans --- */

.mq-app {
	position: relative;
	height: 100%;
	padding: 0.8em 0.8em 0;
}

.mq-ecran--tel .mq-app {
	padding-top: 2.6em;
}

.mq-app b {
	font-weight: 700;
}

.mq-jour {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.7em;
	font-family: var(--police-titre);
	font-size: 1.15em;
}

.mq-fleche {
	display: grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	color: var(--mq-encre-2);
	font-size: 0.85em;
}

.mq-tuiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45em;
	margin-bottom: 0.7em;
}

.mq-tuile {
	padding: 0.5em 0.3em;
	border-radius: 0.7em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	text-align: center;
}

.mq-tuile b {
	display: block;
	font-family: var(--police-titre);
	font-size: 1.45em;
	line-height: 1.1;
	white-space: nowrap;
}

.mq-tuile span {
	color: var(--mq-encre-2);
	font-size: 0.72em;
}

.mq-tuile--alerte b {
	color: var(--mq-alerte);
}

.mq-cmd {
	margin-bottom: 0.55em;
	padding: 0.75em 0.8em;
	border-radius: 0.9em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
}

.mq-cmd__tete {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.mq-heure {
	font-family: var(--police-titre);
	font-size: 1.2em;
}

.mq-client {
	font-size: 0.95em;
	font-weight: 600;
	white-space: nowrap;
}

.mq-appel {
	display: grid;
	place-items: center;
	width: 1.9em;
	height: 1.9em;
	margin-left: auto;
	border-radius: 50%;
	background: var(--mq-ok-doux);
	color: var(--mq-ok);
	font-size: 0.85em;
}

.mq-pastilles {
	display: flex;
	gap: 0.3em;
	margin: 0.45em 0 0.5em;
}

.mq-pastille {
	padding: 0.2em 0.6em;
	border: 1px solid var(--mq-trait);
	border-radius: 999px;
	color: var(--mq-encre-2);
	font-size: 0.7em;
	white-space: nowrap;
}

.mq-pastille--ok {
	border-color: transparent;
	background: var(--mq-ok-doux);
	color: var(--mq-ok);
}

.mq-pastille--attente {
	border-color: transparent;
	background: var(--mq-attente-doux);
	color: var(--mq-attente);
}

.mq-pastille--alerte {
	border-color: transparent;
	background: var(--mq-alerte-doux);
	color: var(--mq-alerte);
	font-weight: 600;
}

.mq-lignes {
	display: grid;
	gap: 0.35em;
	margin: 0;
	padding: 0.45em 0 0;
	border-top: 1px dashed var(--mq-trait);
	list-style: none;
}

.mq-ligne {
	display: flex;
	align-items: center;
	gap: 0.45em;
	font-size: 0.85em;
	white-space: nowrap;
}

.mq-coche {
	display: grid;
	flex: none;
	place-items: center;
	width: 1.15em;
	height: 1.15em;
	border: 1.5px solid var(--mq-trait);
	border-radius: 50%;
}

.mq-ligne--faite .mq-coche {
	border-color: var(--mq-ok);
	background: var(--mq-ok);
}

.mq-ligne--faite .mq-coche::after {
	content: "✓";
	color: #ffffff;
	font-size: 0.7em;
	font-weight: 700;
	line-height: 1;
}

.mq-qte {
	padding: 0.1em 0.45em;
	border-radius: 999px;
	background: var(--mq-accent-doux);
	color: var(--mq-accent-texte);
	font-size: 0.85em;
}

.mq-onglets {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: space-around;
	padding: 0.7em 0 1.3em;
	border-top: 1px solid var(--mq-trait);
	background: var(--mq-carte);
	color: var(--mq-encre-2);
	font-size: 0.72em;
}

.mq-onglet--actif {
	color: var(--mq-accent-texte);
	font-weight: 700;
}

.mq-fab {
	position: absolute;
	right: 0.8em;
	bottom: 3.8em;
	display: grid;
	place-items: center;
	width: 2.4em;
	height: 2.4em;
	border-radius: 50%;
	background: var(--mq-accent);
	box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
	color: #ffffff;
	font-size: 1.2em;
}

/* Le tableau de bord : un rail à gauche, le bandeau du jour, les jours. */
.mq-app--bord {
	display: grid;
	grid-template-columns: 10.5em minmax(0, 1fr);
	padding: 0;
}

.mq-rail {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	padding: 1.1em 0.7em;
	border-right: 1px solid var(--mq-trait);
	background: #f8f9fb;
}

.mq-rail__logo {
	width: 2em;
	height: 2em;
	margin: 0 0 1.1em 0.4em;
	border-radius: 0.6em;
	background: var(--mq-accent);
}

.mq-rail__item {
	padding: 0.5em 0.6em;
	border-radius: 0.5em;
	color: var(--mq-encre-2);
	font-size: 0.85em;
}

.mq-rail__item--actif {
	background: var(--mq-accent-doux);
	color: var(--mq-accent-texte);
	font-weight: 600;
}

.mq-bord {
	padding: 1.2em 1.4em;
	overflow: hidden;
}

.mq-bandeau {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 0.9em;
	padding: 1em 1.2em;
	border-radius: 1em;
	background: var(--mq-accent);
	color: #ffffff;
	font-size: 0.95em;
}

.mq-bandeau > div {
	display: grid;
	justify-items: start;
	gap: 0.15em;
}

.mq-bandeau__date {
	padding: 0.15em 0.6em;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.16);
	font-size: 0.72em;
}

.mq-bandeau__titre {
	font-family: var(--police-titre);
	font-size: 1.6em;
	line-height: 1.1;
}

.mq-bouton-clair {
	padding: 0.6em 1em;
	border-radius: 999px;
	background: #ffffff;
	color: var(--mq-accent);
	font-size: 0.82em;
	font-weight: 650;
	white-space: nowrap;
}

.mq-tuiles--bord {
	max-width: 75%;
}

.mq-semaine {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.4em;
	margin-bottom: 0.9em;
}

.mq-jourcase {
	padding: 0.35em 0;
	border-radius: 0.6em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	text-align: center;
}

.mq-jourcase span {
	display: block;
	color: var(--mq-encre-2);
	font-size: 0.68em;
}

.mq-jourcase b {
	font-family: var(--police-titre);
	font-size: 1.15em;
}

.mq-jourcase--actif {
	background: var(--mq-accent);
	color: #ffffff;
}

.mq-jourcase--actif span {
	color: rgb(255 255 255 / 0.85);
}

.mq-jourcase--ferme {
	opacity: 0.55;
}

.mq-colonnes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7em;
}

.mq-colonnes .mq-cmd {
	margin: 0;
}

/* Le planning de l'équipe. */
.mq-app--planning {
	padding: 1.3em 1.4em;
}

.mq-planning__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1em;
}

.mq-planning__tete b {
	font-family: var(--police-titre);
	font-size: 1.3em;
}

.mq-planning {
	display: grid;
	grid-template-columns: 4.4em repeat(6, minmax(0, 1fr));
	gap: 0.35em;
}

.mq-planning__jour {
	color: var(--mq-encre-2);
	font-size: 0.75em;
	font-weight: 600;
	text-align: center;
}

.mq-planning__nom {
	align-self: center;
	font-size: 0.85em;
	font-weight: 600;
}

.mq-creneau,
.mq-repos,
.mq-trou {
	display: grid;
	place-items: center;
	min-height: 3.6em;
	border-radius: 0.5em;
	font-size: 0.78em;
	font-weight: 600;
}

.mq-creneau--a {
	background: #eeeffa;
	color: #5a61bd;
}

.mq-creneau--b {
	background: #e3efe7;
	color: #2a6a4a;
}

.mq-creneau--c {
	background: #f5ecda;
	color: #765008;
}

.mq-repos {
	border: 1px dashed var(--mq-trait);
	color: #8f9792;
	font-weight: 500;
}

.mq-trou {
	border: 1.5px solid var(--mq-alerte);
	background: var(--mq-alerte-doux);
	color: var(--mq-alerte);
	font-weight: 700;
}

.mq-heures {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.7em;
	font-size: 0.78em;
}

.mq-heures span {
	padding: 0.35em 0.7em;
	border-radius: 999px;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	color: var(--mq-encre-2);
}

.mq-heures b {
	color: var(--mq-encre);
}

.mq-planning__pied {
	margin-top: 1em;
	padding: 0.6em 0.8em;
	border-radius: 0.6em;
	background: var(--mq-alerte-doux);
	color: var(--mq-alerte);
	font-size: 0.82em;
	font-weight: 600;
}

/* Le site et son formulaire de devis. */
.mq-app--site {
	padding-right: 0;
	padding-left: 0;
}

.mq-site__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.4em 0.9em 0.7em;
	border-bottom: 1px solid var(--mq-trait);
	font-size: 0.9em;
}

.mq-site__menu {
	color: var(--mq-encre-2);
	font-size: 1.3em;
	line-height: 1;
}

.mq-site__photo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 7.5em;
	margin: 0.7em 0.9em;
	padding: 0.8em;
	border-radius: 0.8em;
	background: linear-gradient(160deg, #a3ad8f, #6e7b5c 55%, #4f5a42);
	color: #ffffff;
}

.mq-site__photo b {
	font-family: var(--police-titre);
	font-size: 1.25em;
}

.mq-site__photo span {
	font-size: 0.74em;
	opacity: 0.9;
}

.mq-form {
	display: grid;
	gap: 0.5em;
	margin: 0 0.9em;
}

.mq-champ {
	display: grid;
	gap: 0.12em;
	padding: 0.45em 0.6em;
	border: 1px solid var(--mq-trait);
	border-radius: 0.6em;
	background: var(--mq-carte);
}

.mq-champ__lib {
	color: var(--mq-encre-2);
	font-size: 0.68em;
}

.mq-champ__val {
	font-size: 0.85em;
	font-weight: 600;
}

.mq-champ__ok {
	color: var(--mq-ok);
	font-size: 0.68em;
	font-weight: 600;
}

.mq-champ__ok::before {
	content: "✓ ";
}

.mq-vignettes {
	display: flex;
	gap: 0.3em;
}

.mq-vignettes i {
	width: 2.2em;
	height: 2.2em;
	border-radius: 0.4em;
	background: linear-gradient(135deg, #a3ad8f, #6e7b5c);
}

.mq-bouton {
	display: block;
	margin-top: 0.2em;
	padding: 0.7em;
	border-radius: 999px;
	background: var(--mq-accent);
	color: #ffffff;
	font-size: 0.85em;
	font-weight: 650;
	text-align: center;
}

/* Le devis signé en ligne. */
.mq-devis__tete,
.mq-devis__lignes,
.mq-signer {
	border-radius: 0.8em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
}

.mq-devis__tete {
	display: grid;
	justify-items: start;
	gap: 0.25em;
	margin-bottom: 0.6em;
	padding: 0.8em;
}

.mq-devis__tete b {
	font-family: var(--police-titre);
	font-size: 1.12em;
}

.mq-devis__tete span:last-child {
	color: var(--mq-encre-2);
	font-size: 0.75em;
}

.mq-devis__lignes {
	margin: 0 0 0.6em;
	padding: 0.2em 0.8em;
	list-style: none;
}

.mq-devis__lignes li {
	display: flex;
	justify-content: space-between;
	padding: 0.45em 0;
	border-bottom: 1px solid var(--mq-trait);
	font-size: 0.82em;
}

.mq-devis__lignes li:last-child {
	border-bottom: 0;
}

.mq-devis__total {
	font-size: 0.92em;
	font-weight: 700;
}

.mq-devis__note {
	margin: 0 0 0.6em;
	color: var(--mq-encre-2);
	font-size: 0.72em;
}

.mq-signer {
	display: grid;
	gap: 0.45em;
	padding: 0.8em;
}

.mq-code {
	display: flex;
	gap: 0.3em;
}

.mq-code i {
	flex: 1;
	padding: 0.35em 0;
	border: 1.5px solid var(--mq-trait);
	border-radius: 0.4em;
	font-size: 0.95em;
	font-style: normal;
	font-weight: 700;
	text-align: center;
}

/* Ce que plusieurs écrans partagent. */
.mq-note {
	margin: 0.6em 0 0;
	color: var(--mq-encre-2);
	font-size: 0.7em;
	text-align: center;
}

.mq-bouton--ligne {
	display: inline-block;
	margin: 0;
	padding: 0.5em 1em;
	font-size: 0.78em;
	white-space: nowrap;
}

.mq-qte--fort {
	padding: 0.15em 0.6em;
	background: var(--mq-accent);
	color: #ffffff;
	font-size: 0.95em;
}

/* Les rendez-vous en ligne. */
.mq-resa__tete {
	display: grid;
	gap: 0.1em;
	margin-bottom: 0.7em;
}

.mq-resa__tete b {
	font-family: var(--police-titre);
	font-size: 1.2em;
}

.mq-resa__tete span {
	color: var(--mq-encre-2);
	font-size: 0.75em;
}

.mq-semaine--resa {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 0.6em;
}

.mq-resa__jour {
	margin: 0 0 0.4em;
	font-size: 0.8em;
	font-weight: 600;
}

.mq-creneaux {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.35em;
	margin-bottom: 0.7em;
}

.mq-cren {
	padding: 0.45em 0;
	border: 1px solid var(--mq-trait);
	border-radius: 0.5em;
	background: var(--mq-carte);
	font-size: 0.8em;
	font-weight: 600;
	text-align: center;
}

.mq-cren--pris {
	border-style: dashed;
	background: transparent;
	color: #9aa2ab;
	font-weight: 500;
	text-decoration: line-through;
}

.mq-cren--choisi {
	border-color: var(--mq-accent);
	background: var(--mq-accent);
	color: #ffffff;
}

.mq-app--resa .mq-form,
.mq-app--qr .mq-form {
	margin: 0;
}

/* La production du jour. */
.mq-app--prod {
	padding: 1.3em 1.4em;
}

.mq-prod__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 0.9em;
}

.mq-prod__tete > div {
	display: grid;
	gap: 0.1em;
}

.mq-prod__tete b {
	font-family: var(--police-titre);
	font-size: 1.3em;
}

.mq-prod__tete span:not(.mq-pastille) {
	color: var(--mq-encre-2);
	font-size: 0.78em;
}

.mq-prod {
	display: grid;
	grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 0.6fr);
	grid-template-rows: 2.4em;
	grid-auto-rows: 2.9em;
	overflow: hidden;
	border-radius: 0.8em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
}

.mq-prod > span {
	padding: 0 0.7em;
	border-bottom: 1px solid var(--mq-trait);
}

.mq-prod > span:nth-last-child(-n + 5) {
	border-bottom: 0;
}

.mq-prod > span.mq-prod__col {
	display: flex;
	align-items: center;
	background: #f8f9fb;
	color: var(--mq-encre-2);
	font-size: 0.72em;
	font-weight: 600;
}

.mq-prod__col:nth-child(n + 2) {
	justify-content: center;
}

.mq-prod__produit {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mq-prod__produit b {
	font-size: 0.88em;
}

.mq-prod__produit span {
	color: var(--mq-encre-2);
	font-size: 0.7em;
}

.mq-prod__nb {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.88em;
	font-variant-numeric: tabular-nums;
}

.mq-prod__pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.9em;
}

/* Les factures et l'URSSAF. */
.mq-factures__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.9em;
}

.mq-factures__tete b {
	font-family: var(--police-titre);
	font-size: 1.5em;
}

.mq-factures {
	display: grid;
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
	align-items: start;
	gap: 0.8em;
}

.mq-factures__liste {
	margin: 0;
	padding: 0.2em 0.9em;
	border-radius: 0.9em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	list-style: none;
}

.mq-facture {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto 5em;
	align-items: center;
	gap: 0.6em;
	padding: 0.55em 0;
	border-bottom: 1px solid var(--mq-trait);
	font-size: 0.85em;
}

.mq-facture:last-child {
	border-bottom: 0;
}

.mq-facture__num {
	color: var(--mq-encre-2);
	white-space: nowrap;
	font-size: 0.85em;
	font-variant-numeric: tabular-nums;
}

.mq-facture__client {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mq-facture .mq-pastille {
	justify-self: end;
}

.mq-urssaf {
	display: grid;
	justify-items: start;
	gap: 0.2em;
	padding: 0.9em 1em;
	border-radius: 0.9em;
	background: var(--mq-accent-doux);
}

.mq-urssaf .mq-pastille {
	margin-bottom: 0.4em;
	border-color: transparent;
	background: var(--mq-carte);
	color: var(--mq-accent-texte);
	font-weight: 600;
}

.mq-urssaf__lib {
	color: var(--mq-encre-2);
	font-size: 0.75em;
}

.mq-urssaf__val {
	margin-bottom: 0.3em;
	font-family: var(--police-titre);
	font-size: 1.35em;
	line-height: 1.1;
}

.mq-urssaf__echeance {
	margin-top: 0.2em;
	color: var(--mq-accent-texte);
	font-size: 0.75em;
	font-weight: 650;
}

/* La commande par QR code. */
.mq-qr__tete {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 0.8em;
}

.mq-qr__tete > div {
	display: grid;
	gap: 0.1em;
}

.mq-qr__tete b {
	font-family: var(--police-titre);
	font-size: 1.15em;
}

.mq-qr__tete span {
	color: var(--mq-encre-2);
	font-size: 0.75em;
}

/* Un QR code de quatre carrés : on le reconnaît, on ne peut pas le lire. */
.mq-qr__code {
	display: grid;
	flex: none;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.18em;
	width: 2.3em;
	height: 2.3em;
	padding: 0.25em;
	border-radius: 0.45em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
}

.mq-qr__code i {
	border: 0.16em solid var(--mq-encre);
	border-radius: 0.12em;
}

.mq-qr__code i:nth-child(4) {
	border: 0;
	background: repeating-linear-gradient(90deg, var(--mq-encre) 0 0.16em, transparent 0.16em 0.32em);
}

.mq-qr__lib {
	margin: 0 0 0.35em;
	color: var(--mq-encre-2);
	font-size: 0.72em;
}

.mq-qr__heures {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.35em;
	margin-bottom: 0.7em;
}

.mq-articles {
	margin: 0 0 0.7em;
	padding: 0.1em 0.8em;
	border-radius: 0.8em;
	background: var(--mq-carte);
	box-shadow: var(--mq-ombre);
	list-style: none;
}

.mq-article {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	padding: 0.5em 0;
	border-bottom: 1px solid var(--mq-trait);
	font-size: 0.82em;
}

.mq-article:last-child {
	border-bottom: 0;
}

.mq-compteur {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.5em;
}

.mq-compteur i {
	display: grid;
	place-items: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--mq-accent-doux);
	color: var(--mq-accent-texte);
	font-style: normal;
	font-weight: 700;
}

.mq-compteur b {
	min-width: 1em;
	text-align: center;
}

.mq-compteur--vide b {
	color: #9aa2ab;
	font-weight: 500;
}

/* --- Les questions ------------------------------------------------------ */

.faq {
	display: grid;
	gap: 10px;
}

.faq__item {
	overflow: hidden;
	border: 1px solid var(--trait);
	border-radius: 16px;
	background: var(--carte);
	transition: box-shadow 0.2s ease;
}

.faq__item[open] {
	box-shadow: var(--ombre);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding: 18px 20px;
	font-size: 1.05rem;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__signe {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--papier-2);
	transition:
		transform 0.3s ease,
		background-color 0.3s ease;
}

.faq__item[open] .faq__signe {
	transform: rotate(45deg);
	background: var(--accent);
	color: var(--sur-accent);
}

.faq__r {
	padding: 0 20px 20px;
	color: var(--encre-2);
}

/* La réponse se déplie en douceur, là où le navigateur sait animer un
   <details> (::details-content) ; ailleurs elle apparaît d'un coup. */
@supports selector(::details-content) {
	@media (prefers-reduced-motion: no-preference) {
		.faq__item::details-content {
			block-size: 0;
			overflow: hidden;
			transition:
				block-size 0.3s ease,
				content-visibility 0.3s allow-discrete;
		}

		.faq__item[open]::details-content {
			block-size: auto;
		}
	}
}

/* --- Les pages intérieures ---------------------------------------------- */

.page-tete {
	padding: 48px 0 8px;
}

.fil {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--encre-3);
	font-size: 0.9rem;
}

.fil a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--encre-3);
}

.page-tete__titre {
	font-size: clamp(2.05rem, 1.3rem + 2.8vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.page-tete__intro {
	max-width: 40em;
	margin-top: 14px;
	color: var(--encre-2);
	font-size: 1.15rem;
}

.section--texte,
.section--contact {
	padding-top: 32px;
}

.texte {
	max-width: 46em;
}

.texte h2 {
	margin: 38px 0 10px;
	font-size: 1.35rem;
	font-weight: 750;
}

.texte h2:first-child {
	margin-top: 0;
}

.texte p {
	color: var(--encre-2);
}

/* --- Le formulaire ------------------------------------------------------ */

.contact {
	display: grid;
	gap: 32px;
}

@media (min-width: 960px) {
	.contact {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
		align-items: start;
		gap: 48px;
	}
}

.formulaire {
	display: grid;
	gap: 20px;
	padding: 22px;
	border: 1px solid var(--trait);
	border-radius: 24px;
	background: var(--carte);
	box-shadow: var(--ombre);
}

@media (min-width: 600px) {
	.formulaire {
		padding: 34px;
	}
}

.formulaire__ligne {
	display: grid;
	gap: 20px;
}

@media (min-width: 640px) {
	.formulaire__ligne {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.champ {
	display: grid;
	gap: 7px;
	align-content: start;
}

.champ__libelle {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 0;
	font-size: 0.96rem;
	font-weight: 650;
}

.champ__note {
	color: var(--encre-3);
	font-size: 0.85rem;
	font-weight: 500;
}

.champ input,
.champ textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid var(--trait-fort);
	border-radius: 12px;
	background: var(--papier);
	color: var(--encre);
	font: inherit;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.champ textarea {
	min-height: 170px;
	line-height: 1.5;
	resize: vertical;
}

.champ input::placeholder,
.champ textarea::placeholder {
	color: var(--encre-3);
	opacity: 1;
}

.champ input:focus,
.champ textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.champ--erreur input,
.champ--erreur textarea {
	border-color: var(--erreur);
}

.champ__erreur {
	margin: 0;
	color: var(--erreur);
	font-size: 0.92rem;
	font-weight: 550;
}

/* Un champ corrigé perd son rouge sans attendre le prochain envoi —
   :user-valid ne s'allume qu'une fois que la personne y a touché.
   `visibility` et JAMAIS `display` : :user-valid s'allume quand le champ perd
   le focus, c'est-à-dire au moment même où l'on appuie sur « Envoyer ». Si le
   message quittait la page, le bouton remonterait sous le doigt entre l'appui
   et le relâchement, et le clic tomberait à côté (vu au banc : aucun envoi). */
.champ--erreur:has(:user-valid) .champ__erreur {
	visibility: hidden;
}

.champ--erreur:has(:user-valid) input,
.champ--erreur:has(:user-valid) textarea {
	border-color: var(--trait-fort);
}

.formulaire__aide {
	margin: -8px 0 0;
	color: var(--encre-3);
	font-size: 0.9rem;
}

.sujets {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sujets__liste {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sujet {
	position: relative;
	display: inline-flex;
}

/* La vraie case reste là, invisible, posée sur l'étiquette : elle garde le
   clavier, le lecteur d'écran et le clic. */
.sujet input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.sujet span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--trait-fort);
	border-radius: 999px;
	background: var(--papier);
	font-size: 0.95rem;
	font-weight: 550;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.sujet input:checked + span {
	border-color: var(--encre);
	background: var(--encre);
	color: var(--papier);
}

.sujet input:focus-visible + span {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

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

.formulaire__envoi {
	display: grid;
	justify-items: start;
	gap: 14px;
}

.formulaire__rgpd {
	max-width: 40em;
	margin: 0;
	color: var(--encre-3);
	font-size: 0.86rem;
}

.alerte {
	padding: 14px 16px;
	border: 1.5px solid var(--erreur);
	border-radius: 14px;
	background: var(--erreur-doux);
}

.alerte--douce {
	border-color: var(--ocre);
	background: var(--ocre-doux);
}

.alerte__titre {
	margin-bottom: 4px;
	font-weight: 700;
}

.ensuite {
	padding: 28px 26px;
	border-radius: 24px;
	background: var(--papier-2);
}

.ensuite__moi {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--trait);
}

.ensuite__avatar {
	flex: none;
	width: 64px;
	height: 64px;
}

img.ensuite__avatar {
	border-radius: 50%;
	object-fit: cover;
}

.ensuite__moi p {
	display: grid;
	gap: 2px;
	margin: 0;
	color: var(--encre-2);
	font-size: 0.95rem;
	line-height: 1.4;
}

.ensuite__moi strong {
	color: var(--encre);
	font-family: var(--police-titre);
	font-size: 1.12rem;
}

.ensuite__titre {
	margin-bottom: 18px;
	font-size: 1.4rem;
	font-weight: 750;
}

.ensuite__etapes {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: pas;
}

.ensuite__etapes li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	color: var(--encre-2);
	counter-increment: pas;
}

.ensuite__etapes li::before {
	content: counter(pas);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--sur-accent);
	font-family: var(--police-titre);
	font-weight: 800;
}

.ensuite__direct {
	display: grid;
	gap: 6px;
	padding-top: 18px;
	border-top: 1px solid var(--trait);
}

.ensuite__sous-titre {
	margin: 0 0 4px;
	color: var(--encre-3);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ensuite__lien {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--encre);
	font-weight: 650;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ensuite__lien:hover {
	text-decoration: underline;
}

.ensuite__lien .ic,
.ensuite__lieu .ic {
	color: var(--accent);
}

.ensuite__lieu {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--encre-2);
}

/* --- Merci, et la page introuvable -------------------------------------- */

.merci {
	padding: 88px 0 104px;
	text-align: center;
}

.merci__in {
	display: grid;
	justify-items: center;
	gap: 18px;
}

.merci__coche {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--vert);
	color: var(--papier);
	font-size: 42px;
	animation: surgit 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes surgit {
	from {
		opacity: 0;
		scale: 0.3;
	}

	to {
		opacity: 1;
		scale: 1;
	}
}

.merci__titre {
	font-size: clamp(2.05rem, 1.3rem + 2.6vw, 3.1rem);
	font-weight: 800;
}

.merci__texte {
	max-width: 32em;
	color: var(--encre-2);
	font-size: 1.15rem;
}

.merci__boutons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.introuvable__code {
	margin: 0;
	background: linear-gradient(120deg, var(--accent), var(--encre-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--police-titre);
	font-size: clamp(5rem, 3rem + 10vw, 9rem);
	font-weight: 800;
	line-height: 1;
}

/* --- Le pied de page ---------------------------------------------------- */

.pied {
	padding: 56px 0 28px;
	border-top: 1px solid var(--trait);
	background: var(--papier-2);
	font-size: 0.95rem;
}

.pied__grille {
	display: grid;
	gap: 32px;
}

@media (min-width: 800px) {
	.pied__grille {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	}
}

.pied__marque p {
	max-width: 30em;
	margin-top: 14px;
	color: var(--encre-2);
}

.pied__titre {
	margin-bottom: 8px;
	color: var(--encre-3);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pied ul {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pied li {
	color: var(--encre-2);
}

.pied li a,
.pied__liens a {
	display: inline-block;
	padding: 6px 0;
	color: var(--encre-2);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.pied li a:hover,
.pied__liens a:hover {
	color: var(--encre);
	text-decoration: underline;
}

.pied__bas {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--trait);
	color: var(--encre-3);
	font-size: 0.86rem;
}

.pied__bas p {
	margin: 0;
}

.pied__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

/* --- À l'impression ----------------------------------------------------- */

@media print {
	.tete__menu,
	.menu,
	.vitrine,
	.section--exemples {
		display: none;
	}
}

/* --- Moins d'animations, si le système le demande ----------------------- */

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

	html {
		scroll-behavior: auto;
	}
}
