/* CompaSciences - feuille de style du site (HTML, CSS et JavaScript sans dépendance).
   Reprend l'apparence de la version construite avec Blocs (2023-2026). */

/* ------------------------------------------------------------------ Police (hébergée sur le site, licence SIL OFL 1.1) */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/montserrat.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/montserrat-italic.woff2") format("woff2");
}

/* ------------------------------------------------------------------ Variables */

:root {
	--color-white: #fff;
	--color-black: #000;
	--color-nav: #babbba;            /* barre de navigation (Blocs : #c4c5c4) */
	--color-lavender: #9fa0fa;       /* couleur du projet (Blocs : #a9aafe) */
	--color-lavender-hover: #7677cb;
	--color-lavender-deep: color-mix(in srgb, var(--color-lavender) 50%, var(--color-black));
	--color-dark: #151515;           /* sections sombres et crédits */
	--color-charcoal: #333;          /* bandeau des partenaires */
	--color-panel: #f5f5f5;          /* colonne centrale du panneau */
	--color-yellow: #fffb00;         /* noms de l'équipe, survol de la navigation */
	--color-yellow-hover: #ccc700;
	--text-on-light: rgba(0, 0, 0, .5);
	--link-on-light: rgba(0, 0, 0, .6);
	--text-on-dark: rgba(255, 255, 255, .7);
	--text-muted-on-dark: #e5e5e5;
	--caption-background: rgba(0, 0, 0, .5);

	--font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--container-width: 1140px;
	--header-height: 72px;           /* mis à jour par compasciences.js */
}

@supports (interpolate-size: allow-keywords) {
	:root {
		interpolate-size: allow-keywords;
	}
}

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

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

html {
	color-scheme: light;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

html:has(dialog[open]) {
	overflow: hidden;
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--color-white);
	color: var(--text-on-light);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	height: auto;
	vertical-align: middle;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 .5rem;
	font-weight: 400;
	line-height: 1.2;
}

p {
	margin: 0 0 1rem;
}

ul {
	margin: 0 0 1rem;
	padding-left: 2rem;
}

strong {
	font-weight: 600;
}

a {
	color: inherit;
	transition: color .3s ease-in-out;
}

a:hover {
	color: var(--color-lavender-hover);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

[id] {
	scroll-margin-top: var(--header-height);
}

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

/* Jeu d'icônes intégré en haut de chaque page (extrait des polices de l'ancien site). */
.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	display: inline-block;
	width: auto;
	height: 1em;
	vertical-align: -.125em;
	fill: currentColor;
}

.icon--md {
	height: 30px;
}

/* ------------------------------------------------------------------ En-tête et navigation */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0 20px;
	background: var(--color-nav);
	transition: box-shadow .2s ease-out;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 8px 0;
}

.brand {
	display: block;
	width: 300px;
	max-width: 70%;
}

.brand img {
	display: block;
	width: 100%;
}

.nav-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-toggle svg {
	display: block;
	width: 33px;
	height: 33px;
}

.nav-toggle path {
	fill: none;
	stroke: rgba(0, 0, 0, .5);
	stroke-width: 2px;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__link {
	display: block;
	padding: 8px;
	color: var(--color-white);
	text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
	color: var(--color-yellow);
}

.site-nav__link--page {
	font-style: italic;
}

@media (max-width: 991px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		padding-bottom: 8px;
	}
}

/* Bandeau de l'archive : situe la page dans l'histoire du projet. */
.version-banner {
	padding: 12px 20px;
	background: var(--color-dark);
	color: var(--text-on-dark);
	text-align: center;
}

.version-banner p {
	margin: 0;
}

@media (max-width: 767px) {
	.version-banner {
		font-size: .875rem;
	}
}

.version-banner strong {
	color: var(--color-white);
}

.version-banner a {
	color: var(--color-lavender);
}

.version-banner a:hover {
	color: var(--color-white);
}

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

.section {
	position: relative;
	padding: 0 20px;
}

.section__inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 50px 0;
}

.section--light {
	background: var(--color-white);
	color: var(--text-on-light);
}

.section--light a {
	color: var(--link-on-light);
}

.section--light a:hover {
	color: var(--color-lavender-hover);
}

.section--lavender {
	background: var(--color-lavender);
	color: var(--color-white);
}

.section--lavender a {
	color: var(--color-white);
}

.section--lavender a:hover {
	color: #ccc;
}

.section--lavender-deep {
	background: var(--color-lavender-deep);
	color: var(--color-white);
}

.section--dark {
	background: var(--color-dark);
	color: var(--text-muted-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--color-white);
}

.section--lavender-deep a,
.section--dark a {
	color: var(--color-lavender);
}

.section--lavender-deep a:hover,
.section--dark a:hover {
	color: var(--color-lavender-hover);
}

.section-title {
	margin-bottom: 1.5rem;
	font-size: calc(1.375rem + 1.5vw);
}

.subsection-title {
	margin-bottom: 1.5rem;
	font-size: calc(1.3rem + .6vw);
}

.minor-title {
	font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
	.section-title {
		font-size: 2.5rem;
	}

	.subsection-title {
		font-size: 1.75rem;
	}

	.minor-title {
		font-size: 1.5rem;
	}
}

.subsection-title--spaced {
	margin-top: 1rem;
}

.divider {
	height: 1px;
	margin: 20px 0;
	border: 0;
	background: rgba(0, 0, 0, .2);
}

.section--lavender .divider,
.section--lavender-deep .divider,
.section--dark .divider {
	background: rgba(255, 255, 255, .2);
}

.lead-list li + li {
	margin-top: .25rem;
}

.note {
	font-size: .875rem;
	font-style: italic;
}

/* ------------------------------------------------------------------ Présentation */

.intro {
	display: grid;
	gap: 30px;
	align-items: center;
}

.intro__media img {
	display: block;
	width: 100%;
}

.intro__text {
	max-width: 760px;
	margin: 0 auto;
}

.intro__title {
	margin-bottom: 1.5rem;
	font-size: calc(1.3rem + .6vw);
}

@media (min-width: 992px) {
	.intro {
		grid-template-columns: 4fr 6fr;
		gap: 0 8%;
		max-width: none;
		padding: 0 0 0 8%;
	}

	.intro__media {
		order: 2;
	}

	.intro__title {
		font-size: 1.75rem;
	}
}

/* ------------------------------------------------------------------ Accueil (version UNIL) */

.hero {
	padding: 0 0 60px;
	background: var(--color-white);
	color: var(--text-on-light);
}

/* Le réseau seul, en pleine largeur, fondu sur les bords. */
.hero__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 64vh;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
	mask-composite: intersect;
}

.hero__inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 30px 20px 0;
	text-align: center;
}

.hero__title {
	margin-bottom: 1.25rem;
	color: rgba(0, 0, 0, .6);
	font-size: calc(1.6rem + 2vw);
}

.hero__lead {
	font-size: 1.15rem;
	line-height: 1.65;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: center;
	margin: 1.5rem 0 0;
}

.hero__points {
	display: grid;
	gap: 30px;
	max-width: var(--container-width);
	margin: 50px auto 0;
	padding: 40px 20px 0;
	border-top: 1px solid rgba(0, 0, 0, .1);
	list-style: none;
	text-align: center;
}

.hero__icon {
	height: 30px;
	color: var(--color-lavender-hover);
}

.hero__point-title {
	margin: .75rem 0 .5rem;
	color: rgba(0, 0, 0, .6);
	font-size: 1.5rem;
}

.hero__points p {
	max-width: 32ch;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.hero__points {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.hero__title {
		font-size: 3rem;
	}
}

/* ------------------------------------------------------------------ Explorer : recherche et vues */

.explore-intro {
	max-width: 820px;
}

.explore-intro__bar {
	display: block;
	margin: 10px 0 20px;
	border-radius: 4px;
}

.view {
	display: grid;
	gap: 30px;
	align-items: center;
	margin-top: 60px;
}

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

@media (min-width: 992px) {
	.view {
		grid-template-columns: 5fr 7fr;
		gap: 50px;
	}

	.view--reverse {
		grid-template-columns: 7fr 5fr;
	}

	.view--reverse .view__text {
		order: 2;
	}
}

/* Vue en pleine largeur (Synthèse) : principe et légende, puis l'exemple. */
.view--full {
	display: block;
}

.synthesis-intro {
	display: grid;
	gap: 20px 50px;
	align-items: center;
}

.synthesis-intro p:last-child {
	margin-bottom: 0;
}

.legend-figure {
	display: flex;
	gap: 20px;
	align-items: center;
	margin: 0;
}

.legend-figure img {
	flex: none;
	border-radius: 4px;
}

.legend-figure figcaption {
	font-size: .875rem;
}

.view__example-title {
	margin: 40px 0 15px;
}

.carousel--wide .carousel__caption {
	max-width: 820px;
	font-size: 1rem;
}

@media (min-width: 992px) {
	.synthesis-intro {
		grid-template-columns: 7fr 5fr;
	}
}

@media (max-width: 575px) {
	.legend-figure {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Carrousel d'accompagnement : légende et repères sous l'image. */
.carousel--compact .carousel__slide img {
	border-radius: 4px;
}

.carousel--compact .carousel__caption {
	position: static;
	margin-top: .6rem;
	padding: 0;
	background: none;
	color: inherit;
	font-size: .875rem;
	text-align: left;
}

.carousel--compact .carousel__indicators {
	position: static;
	justify-content: flex-start;
	margin: .4rem 0 0;
}

.carousel--compact .carousel__indicator {
	background-color: currentColor;
}

.carousel--compact .carousel__control {
	bottom: 4rem;
}

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

.btn {
	display: inline-block;
	padding: .25rem .5rem;
	border: 0;
	border-radius: .25rem;
	font-family: var(--font);
	font-size: .875rem;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

.btn--light,
.section a.btn--light {
	background: var(--color-white);
	color: rgba(0, 0, 0, .6);
}

.btn--light:hover,
.section a.btn--light:hover {
	background: #e5e5e5;
	color: rgba(0, 0, 0, .8);
}

.btn[aria-disabled="true"] {
	background: rgba(0, 0, 0, .1);
	color: rgba(0, 0, 0, .45);
	cursor: default;
}

.text-link {
	font-size: .875rem;
}

/* ------------------------------------------------------------------ Images agrandissables */

.zoomable {
	display: block;
	position: relative;
}

.zoomable img {
	transition: opacity .2s ease;
}

.zoomable::before {
	content: "+";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	color: var(--color-white);
	font-size: 34px;
	line-height: 46px;
	text-align: center;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.zoomable:hover::before,
.zoomable:focus-visible::before {
	opacity: 1;
}

.zoomable:hover img,
.zoomable:focus-visible img {
	opacity: .6;
}

.screenshot {
	margin: 0;
}

.screenshot img {
	display: block;
	width: 100%;
}

.screenshot figcaption {
	margin-top: .5rem;
	font-size: .875rem;
}

/* Texte et image côte à côte. */
.split {
	display: grid;
	gap: 30px;
	align-items: start;
}

.split > a img,
.split > img {
	display: block;
	width: 100%;
}

@media (min-width: 992px) {
	.split {
		grid-template-columns: 3fr 2fr;
	}
}

/* ------------------------------------------------------------------ Carrousels */

.carousel {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.carousel--spaced {
	margin: 3rem 0;
}

.carousel__slides {
	display: grid;
}

.carousel__slide {
	grid-area: 1 / 1;
	position: relative;
	margin: 0;
	visibility: hidden;
}

.carousel__slide.is-active,
.carousel__slide.is-moving {
	visibility: visible;
}

.carousel__slide img {
	display: block;
	width: 100%;
}

.carousel__caption {
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: 3rem;
	z-index: 1;
	margin: 0;
	padding: 5px;
	background: var(--caption-background);
	color: var(--color-white);
	text-align: center;
}

.carousel__caption p {
	margin: 0;
}

.carousel__control {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 12%;
	padding: 0;
	border: 0;
	background: none;
	opacity: .5;
	cursor: pointer;
	transition: opacity .15s ease;
}

.carousel__control:hover,
.carousel__control:focus-visible {
	opacity: .9;
}

.carousel__control--prev {
	left: 0;
}

.carousel__control--next {
	right: 0;
}

.carousel__control path {
	fill: none;
	stroke: var(--color-black);
	stroke-width: 2px;
	stroke-linecap: round;
}

.carousel__indicators {
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	margin: 0 0 1rem;
}

.carousel__indicator {
	flex: 0 1 30px;
	min-width: 6px;
	height: 3px;
	box-sizing: content-box;
	margin: 0 3px;
	padding: 0;
	border: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	background: var(--color-white);
	background-clip: padding-box;
	opacity: .5;
	cursor: pointer;
	transition: opacity .6s ease;
}

.carousel__indicator[aria-current="true"] {
	opacity: 1;
}

@media (max-width: 767px) {
	.carousel__caption {
		left: 8%;
		right: 8%;
		bottom: 2.25rem;
		font-size: .875rem;
	}
}

/* Sur téléphone, légende et repères passent sous l'image pour ne pas la masquer. */
@media (max-width: 575px) {
	.carousel__caption {
		position: static;
		padding: .5rem 0 0;
		background: none;
		color: inherit;
	}

	.carousel__indicators {
		position: static;
		margin: .5rem 15% 0;
	}

	.carousel__indicator {
		background-color: currentColor;
	}
}

/* ------------------------------------------------------------------ Lightbox */

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-black);
	color: var(--color-white);
}

.lightbox::backdrop {
	background: var(--color-black);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 60px 70px 20px;
}

.lightbox__image {
	display: block;
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.lightbox__caption {
	max-width: 900px;
	margin-top: 12px;
	padding: 5px 10px;
	background: var(--caption-background);
	text-align: center;
}

.lightbox__caption:empty {
	display: none;
}

.lightbox__close,
.lightbox__control {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: .25rem;
	background: rgba(255, 255, 255, .15);
	cursor: pointer;
	transition: background .2s ease;
}

.lightbox__close:hover,
.lightbox__control:hover,
.lightbox__close:focus-visible,
.lightbox__control:focus-visible {
	background: rgba(255, 255, 255, .3);
}

.lightbox__close {
	top: 12px;
	right: 12px;
}

.lightbox__control {
	top: 50%;
	margin-top: -22px;
}

.lightbox__control[hidden] {
	display: none;
}

.lightbox__control--prev {
	left: 12px;
}

.lightbox__control--next {
	right: 12px;
}

.lightbox__close path,
.lightbox__control path {
	fill: none;
	stroke: var(--color-white);
	stroke-width: 2px;
	stroke-linecap: round;
}

@media (max-width: 575px) {
	.lightbox__figure {
		padding: 60px 10px 70px;
	}

	.lightbox__control {
		top: auto;
		bottom: 12px;
		margin-top: 0;
	}
}

/* ------------------------------------------------------------------ Paires icône / texte (Interface) */

.features {
	display: grid;
	gap: 0 30px;
}

.feature {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 0 15px;
	align-items: start;
	margin-top: 30px;
}

.feature__media {
	text-align: center;
}

.feature__media img {
	width: 75px;
}

.feature__title {
	margin: 10px 0 5px;
}

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

@media (min-width: 992px) {
	.features {
		grid-template-columns: 1fr 1fr;
	}

	/* Colonne de gauche : texte aligné à droite, image contre la gouttière centrale. */
	.feature--mirror {
		grid-template-columns: 1fr 140px;
		text-align: right;
	}

	.feature--mirror .feature__media {
		order: 2;
	}
}

@media (max-width: 575px) {
	.feature {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.feature__media {
		margin-bottom: 5px;
	}
}

.features__group-title {
	margin: 0 0 .5rem;
	text-align: center;
}

.features + .divider,
.divider + .features__group-title {
	margin-top: 30px;
}

/* ------------------------------------------------------------------ Panneau (archive) */

.panel-select {
	padding: 20px;
	background: var(--color-white);
	text-align: center;
}

.panel-select img {
	width: 300px;
}

.panel-columns {
	display: grid;
	background: var(--color-white);
	color: var(--text-on-light);
}

.panel-columns > * {
	padding: 0 15px 15px;
}

.panel-columns > :nth-child(2) {
	background: var(--color-panel);
}

.panel-columns a {
	color: var(--link-on-light);
}

.panel-columns .divider {
	background: rgba(0, 0, 0, .2);
}

.panel-columns img {
	display: block;
	margin: 0 auto 10px;
}

.panel-columns .panel-columns__title {
	margin: 10px 0 20px;
	text-align: center;
}

.icon-list {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.icon-list li {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 10px;
	align-items: start;
}

.icon-list li > img {
	width: 41px;
	margin: 0;
}

.icon-list li img + div > img {
	margin: 0 0 10px;
}

@media (min-width: 768px) {
	.panel-columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ------------------------------------------------------------------ Dépliables */

.disclosure > summary {
	display: block;
	width: max-content;
	margin: 0 auto;
	color: var(--link-on-light);
	list-style: none;
	cursor: pointer;
}

.disclosure > summary::-webkit-details-marker {
	display: none;
}

.disclosure > summary:hover {
	color: var(--color-lavender-hover);
}

/* Bouton d'ouverture d'un texte (libellé et chevron changent à l'ouverture). */
.disclosure--button > summary {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	width: auto;
	margin: 20px 0 0;
	padding: .35rem .9rem;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: .25rem;
	color: var(--color-white);
	font-size: .875rem;
	letter-spacing: .02em;
	transition: background .2s ease, border-color .2s ease;
}

.disclosure--button > summary:hover,
.disclosure--button > summary:focus-visible {
	border-color: var(--color-white);
	background: rgba(255, 255, 255, .12);
	color: var(--color-white);
}

.disclosure__chevron {
	width: 11px;
	height: 11px;
	transition: transform .2s ease;
}

.disclosure__chevron path {
	fill: none;
	stroke: currentColor;
	stroke-width: 3px;
	stroke-linecap: round;
}

.disclosure[open] .disclosure__chevron {
	transform: rotate(180deg);
}

.disclosure__when-open,
.disclosure[open] .disclosure__when-closed {
	display: none;
}

.disclosure[open] .disclosure__when-open {
	display: inline;
}

.disclosure::details-content {
	block-size: 0;
	overflow: clip;
	opacity: 0;
	transition: block-size .35s ease-in-out, opacity .35s ease-in-out, content-visibility .35s allow-discrete;
}

.disclosure[open]::details-content {
	block-size: auto;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.disclosure::details-content {
		transition: none;
	}
}

.disclosure__content {
	padding-top: 10px;
}

.small-text {
	font-size: 15px;
}

/* ------------------------------------------------------------------ Liste de réglages (archive) */

.settings {
	display: grid;
	gap: 0 30px;
	align-items: start;
}

.settings .feature {
	margin-top: 30px;
}

.settings__list {
	margin-top: 30px;
}

.settings__list .is-nested {
	margin-left: 1rem;
}

@media (min-width: 992px) {
	.settings {
		grid-template-columns: 1fr 1fr;
	}
}

/* ------------------------------------------------------------------ Grilles de contenu (version UNIL) */

.cards {
	display: grid;
	gap: 30px;
	margin: 30px 0;
}

.card__icon {
	height: 32px;
	margin-bottom: 10px;
}

.card__title {
	margin: 0 0 .5rem;
}

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

@media (min-width: 768px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.cards--4 {
		grid-template-columns: repeat(4, 1fr);
	}

	.cards--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.pipeline {
	display: grid;
	gap: 30px;
	margin-top: 30px;
}

.pipeline__group {
	margin: 0;
}

.pipeline__title {
	margin-bottom: 1rem;
}

.pipeline__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step var(--start, 0);
}

.pipeline__steps li {
	position: relative;
	padding: 0 0 .75rem 2.5rem;
	counter-increment: step;
}

.pipeline__steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: .8rem;
	line-height: 1.6rem;
	text-align: center;
	opacity: .6;
}

.pipeline__steps strong {
	color: var(--color-white);
}

.tag {
	display: inline-block;
	margin-left: .35em;
	padding: 0 .4em;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: .75rem;
	letter-spacing: .04em;
	vertical-align: .1em;
	opacity: .8;
}

.pipeline__title .icon,
.card__icon {
	color: var(--color-white);
}

.tag--unil {
	color: var(--color-yellow);
	opacity: 1;
}

@media (min-width: 992px) {
	.pipeline {
		grid-template-columns: 1fr 1fr;
	}
}

/* ------------------------------------------------------------------ Équipe */

.team-grid {
	display: grid;
	gap: 0 30px;
}

.member {
	display: grid;
	grid-template-columns: 122px 1fr;
	gap: 20px;
	align-items: center;
	margin-top: 30px;
}

.member__photo {
	display: block;
	width: 122px;
	height: 122px;
	border-radius: 50%;
}

.member__name {
	margin: 10px 0 5px;
	color: var(--color-yellow);
}

.member p {
	margin: 0;
}

@media (min-width: 768px) {
	.team-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 575px) {
	.member {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
}

.team-note {
	font-style: italic;
}

.team-past {
	margin: 1.5rem 0;
	font-size: calc(1.325rem + .9vw);
	font-style: italic;
}

@media (min-width: 1200px) {
	.team-past {
		font-size: 2rem;
	}
}

/* ------------------------------------------------------------------ Partenaires et crédits */

.partners {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.partners li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 50px 20px;
	background: var(--color-charcoal) url("../img/texture-square.webp");
	background-size: 4px 4px;
}

.partners img {
	display: block;
	width: auto;
	max-height: 80px;
}

@media (min-width: 992px) {
	.partners {
		grid-template-columns: repeat(4, 1fr);
	}

	.partners li {
		min-height: 280px;
		padding: 100px 20px;
	}
}

.site-footer {
	padding: 1rem 20px;
	background: var(--color-dark);
	color: var(--text-on-dark);
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: rgba(255, 255, 255, .6);
}

.site-footer a:hover {
	color: var(--color-white);
}

/* ------------------------------------------------------------------ Retour en haut */

.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	width: 36px;
	height: 36px;
	padding: 5px;
	border: 0;
	border-radius: .25rem;
	background: rgba(0, 0, 0, .3);
	opacity: 0;
	cursor: pointer;
	pointer-events: none;
	transition: opacity .3s ease-in-out;
}

.scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.scroll-top svg {
	display: block;
	width: 100%;
	height: 100%;
}

.scroll-top path {
	fill: none;
	stroke: var(--color-white);
	stroke-width: 2px;
	stroke-linecap: round;
}

/* ------------------------------------------------------------------ Texte juridique (CGU) */

.legal {
	max-width: 800px;
}

.legal h2 {
	margin: 2rem 0 .75rem;
	color: rgba(0, 0, 0, .7);
	font-size: 1.5rem;
}

.legal .legal__date {
	font-style: italic;
}
