/* =========================================================================
   Base de donnees des flippers - reparation-flipper.fr

   Feuille autonome, comme celle du pied de page : ces gabarits ne chargent
   pas la feuille des pages de services. Meme palette ardoise, memes angles
   droits, memes gouttieres, pour que l'ensemble reste d'une seule piece.

   Ecrit en mobile first.
   ====================================================================== */

.rf-flipper-page {
	--rff-ink: #0f172a;
	--rff-slate: #313c4d;
	--rff-body: #484c50;
	--rff-muted: #767c85;
	--rff-soft: #f4f5f6;
	--rff-line: #e5e5e5;
	--rff-gap: 20px;
	--rff-wrap: 1240px;
}

/* Astra pose ses propres marges de page : les gabarits gerent les leurs.
   display: block est indispensable : le conteneur d'Astra est en flex, et
   nos bandeaux, devenus elements de flex, se reduisaient a leur contenu au
   lieu d'aller d'un bord a l'autre de l'ecran. */
.rf-flipper-page .site-content .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.rf-flipper-page .rf-fiche,
.rf-flipper-page .rf-liste {
	width: 100%;
}

.rf-flipper-page .rf-wrap {
	max-width: var(--rff-wrap);
	margin-inline: auto;
	padding-inline: var(--rff-gap);
}

.rf-flipper-page .rf-eyebrow {
	font-family: "Work Sans", sans-serif;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rff-muted);
	margin: 0 0 .6rem;
}

.rf-flipper-page h1 {
	font-family: Poppins, sans-serif;
	font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.5rem);
	line-height: 1.16;
	letter-spacing: -.02em;
	font-weight: 700;
	margin: 0 0 .9rem;
	text-wrap: balance;
}

.rf-flipper-page h2 {
	font-family: Poppins, sans-serif;
	font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem);
	line-height: 1.22;
	letter-spacing: -.02em;
	font-weight: 700;
	color: var(--rff-ink);
	margin: 0 0 .85rem;
	text-wrap: balance;
}

.rf-flipper-page h3 {
	font-family: Poppins, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.32;
	font-weight: 600;
	color: var(--rff-ink);
	margin: 2rem 0 .5rem;
}

.rf-flipper-page p,
.rf-flipper-page li {
	font-family: "Work Sans", sans-serif;
	font-size: 1rem;
	line-height: 1.72;
	color: var(--rff-body);
}

/* ---------- Fil d'Ariane ---------- */

.rf-flipper-page .rf-fiche__fil {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	font-family: "Work Sans", sans-serif;
	font-size: .75rem;
	color: #8e97a3;
	margin-bottom: 1.5rem;
}

.rf-flipper-page .rf-fiche__fil a {
	color: #8e97a3;
	text-decoration: none;
}

.rf-flipper-page .rf-fiche__fil a:hover {
	color: #fff;
}

/* ---------- En-tete de fiche ---------- */

.rf-fiche__hero {
	background: var(--rff-slate);
	color: #c9ced6;
	padding-block: 1.6rem 2.5rem;
}

.rf-fiche__hero h1 {
	color: #fff;
}

.rf-fiche__hero .rf-eyebrow {
	color: #8e97a3;
}

.rf-fiche__chapo {
	color: #aeb5bf !important;
	font-size: 1.0625rem;
	line-height: 1.66;
	max-width: 56ch;
	margin: 0 0 1.75rem;
}

.rf-fiche__tete {
	display: grid;
	gap: 2rem;
}

.rf-fiche__media {
	margin: 0;
}

.rf-fiche__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Caracteristiques ---------- */

.rf-specs {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.rf-specs__ligne {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 1rem;
	padding-block: .7rem;
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.rf-specs dt {
	font-family: "Work Sans", sans-serif;
	font-size: .8125rem;
	color: #8e97a3;
	margin: 0;
}

.rf-specs dd {
	font-family: "Work Sans", sans-serif;
	font-size: .9375rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
	/* les tirages s'alignent proprement d'une ligne a l'autre */
	font-variant-numeric: tabular-nums;
}

/* ---------- Corps de la fiche ---------- */

.rf-fiche__corps {
	padding-block: 2.75rem;
}

.rf-fiche__corps .rf-wrap {
	max-width: calc(720px + 2 * var(--rff-gap));
}

.rf-fiche__corps p {
	margin: 0 0 1.1rem;
}

.rf-fiche__corps h2 {
	margin-top: 2.5rem;
}

.rf-fiche__corps h2:first-child,
.rf-fiche__corps h3:first-child {
	margin-top: 0;
}

.rf-fiche__corps ul {
	margin: 0 0 1.1rem;
	padding-left: 1.1rem;
}

.rf-fiche__corps li {
	margin-bottom: .4rem;
}

.rf-fiche__corps strong {
	color: var(--rff-ink);
	font-weight: 600;
}

.rf-fiche__corps a {
	color: var(--rff-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Encadre pour les notes d'atelier : c'est ce qui differencie la fiche. */
.rf-fiche__corps .rf-atelier {
	background: var(--rff-soft);
	border-left: 3px solid var(--rff-slate);
	padding: 1.25rem 1.4rem;
	margin: 1.75rem 0;
}

.rf-fiche__corps .rf-atelier p:last-child {
	margin-bottom: 0;
}

.rf-fiche__corps .rf-atelier__qui {
	display: block;
	font-family: "Work Sans", sans-serif;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rff-muted);
	margin-bottom: .5rem;
}

/* ---------- Renvois vers le reste du site ---------- */

.rf-fiche__renvois {
	padding-block: 0 2.75rem;
}

.rf-fiche__renvois .rf-wrap {
	max-width: calc(720px + 2 * var(--rff-gap));
}

.rf-fiche__renvois ul {
	display: grid;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-fiche__renvois a {
	display: block;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--rff-line);
	text-decoration: none;
	transition: border-color .18s ease;
}

.rf-fiche__renvois a:hover {
	border-color: var(--rff-slate);
}

.rf-fiche__renvois b {
	display: block;
	font-family: Poppins, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--rff-ink);
	margin-bottom: .2rem;
}

.rf-fiche__renvois span {
	font-family: "Work Sans", sans-serif;
	font-size: .9375rem;
	color: var(--rff-muted);
}

/* ---------- Appel a l'action ---------- */

.rf-fiche__aide {
	background: var(--rff-soft);
	padding-block: 2.75rem;
}

.rf-fiche__actions {
	display: flex;
	flex-direction: column;
	gap: .7rem;
	margin-top: 1.5rem;
}

.rf-fiche__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 1rem 1.4rem;
	border: 1px solid #c8ccd2;
	background: transparent;
	color: var(--rff-ink);
	font-family: Poppins, sans-serif;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	transition: background .18s ease, border-color .18s ease;
}

.rf-fiche__btn:hover {
	border-color: var(--rff-slate);
	background: #fff;
}

.rf-fiche__btn--solide {
	background: var(--rff-slate);
	border-color: var(--rff-slate);
	color: #fff;
}

.rf-fiche__btn--solide:hover {
	background: var(--rff-ink);
	border-color: var(--rff-ink);
	color: #fff;
}

/* ---------- Listes de machines ---------- */

.rf-fiche__voisines,
.rf-liste__corps {
	padding-block: 2.75rem;
}

.rf-fiches {
	display: grid;
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.rf-fiches__item {
	margin: 0;
}

.rf-fiches__item a {
	display: block;
	height: 100%;
	border: 1px solid var(--rff-line);
	background: #fff;
	text-decoration: none;
	transition: border-color .18s ease;
}

.rf-fiches__item a:hover {
	border-color: var(--rff-slate);
}

.rf-fiches__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--rff-soft);
}

.rf-fiches__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rf-fiches__vide {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--rff-soft);
}

.rf-fiches__corps {
	display: block;
	padding: 1.1rem 1.25rem 1.35rem;
}

.rf-fiches__nom {
	display: block;
	font-family: Poppins, sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--rff-ink);
	line-height: 1.3;
	margin-bottom: .25rem;
}

.rf-fiches__meta {
	display: block;
	font-family: "Work Sans", sans-serif;
	font-size: .8125rem;
	color: var(--rff-muted);
	margin-bottom: .6rem;
}

.rf-fiches__extrait {
	display: block;
	font-family: "Work Sans", sans-serif;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--rff-body);
}

/* ---------- En-tete et filtres des listes ---------- */

.rf-liste__hero {
	background: var(--rff-slate);
	color: #c9ced6;
	padding-block: 1.6rem 2.5rem;
}

.rf-liste__hero h1 {
	color: #fff;
}

.rf-liste__chapo {
	color: #aeb5bf !important;
	font-size: 1.0625rem;
	line-height: 1.66;
	max-width: 62ch;
	margin: 0;
}

.rf-liste__filtres {
	background: var(--rff-soft);
	border-bottom: 1px solid var(--rff-line);
	padding-block: 1.5rem;
}

.rf-liste__groupe + .rf-liste__groupe {
	margin-top: 1.1rem;
}

.rf-liste__label {
	font-family: "Work Sans", sans-serif;
	font-size: .6875rem !important;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rff-muted);
	margin: 0 0 .5rem;
}

.rf-liste__groupe ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-liste__groupe a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .8rem;
	border: 1px solid var(--rff-line);
	background: #fff;
	font-family: "Work Sans", sans-serif;
	font-size: .875rem;
	color: var(--rff-body);
	text-decoration: none;
}

.rf-liste__groupe a span {
	font-size: .75rem;
	color: var(--rff-muted);
	font-variant-numeric: tabular-nums;
}

.rf-liste__groupe a:hover {
	border-color: var(--rff-slate);
	color: var(--rff-ink);
}

.rf-liste__groupe a[aria-current="page"] {
	background: var(--rff-slate);
	border-color: var(--rff-slate);
	color: #fff;
}

.rf-liste__groupe a[aria-current="page"] span {
	color: #aeb5bf;
}

/* ---------- Grand ecran ---------- */

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

	.rf-fiche__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.rf-fiche__renvois ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.rf-fiche__hero,
	.rf-liste__hero {
		padding-block: 2rem 3.25rem;
	}

	.rf-fiche__tete {
		grid-template-columns: 1.1fr .9fr;
		gap: 3rem;
		align-items: start;
	}

	.rf-fiche__corps,
	.rf-fiche__voisines,
	.rf-fiche__aide,
	.rf-liste__corps {
		padding-block: 3.5rem;
	}

	.rf-fiches {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.rf-liste__filtres .rf-wrap {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.rf-liste__groupe + .rf-liste__groupe {
		margin-top: 0;
	}
}

.rf-liste__compte {
	font-family: "Work Sans", sans-serif;
	font-size: .8125rem !important;
	color: var(--rff-muted) !important;
	margin: 0 0 1.25rem !important;
}
