/* ==========================================================
   SON LIMITE — feuille de style
   ========================================================== */

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: fallback;
	src: url('../fonts/Manrope-Variable.woff2') format('woff2');
}

@font-face {
	font-family: 'Fira Code';
	font-style: normal;
	font-weight: 300 700;
	font-display: fallback;
	src: url('../fonts/FiraCode-Variable.woff2') format('woff2');
}

:root {
	--color-text: #111111;
	--color-white: #ffffff;
	--color-accent-3: #503AA8;
	--color-header-bg: #515151;
	--color-footer-bg: #c2c2c2;
	--color-btn: #ff9259;
	--color-section-1: #bba0a0;
	--color-section-2: #a0baa9;
	--color-section-3: #a0a9ba;
	--color-section-4: #bab8a0;

	--font-size-small: 0.875rem;
	--font-size-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.196), 1.125rem);
	--font-size-large: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
	--font-size-x-large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.392), 2rem);
	--font-size-xx-large: clamp(2.15rem, 2.15rem + ((1vw - 0.2rem) * 1.333), 3rem);

	--content-width: 1024px;
	--wide-width: 1200px;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: var(--font-size-large);
	font-weight: 300;
	letter-spacing: -0.1px;
	line-height: 1.4;
	color: var(--color-text);
	background-color: var(--color-white);
	background-image: url('../img/fond-gris-clair.png');
	background-position: 50% 0;
	background-size: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	letter-spacing: -0.1px;
	line-height: 1.125;
	margin: 0;
}

h1 { font-size: var(--font-size-xx-large); }
h2 { font-size: var(--font-size-x-large); }
h3 { font-size: var(--font-size-large); }
h4 { font-size: var(--font-size-medium); }

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .1em;
}

.container {
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.container-wide {
	max-width: var(--wide-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Header ---------- */

.site-header {
	background-color: var(--color-header-bg);
	color: var(--color-white);
	padding: 20px;
}

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

.site-header-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-branding img {
	width: 144px;
	height: 144px;
}

.site-title {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -.5px;
	margin: 0;
}

.site-title a {
	text-decoration: none;
}

.site-tagline {
	margin: 4px 0 0;
	font-size: calc(var(--font-size-medium) * 2);
	font-weight: 400;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	font-size: var(--font-size-medium);
}

.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.main-nav a {
	text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
	text-decoration: underline;
}

.btn-contact,
.site-header a.btn-contact {
	display: inline-block;
	background-color: var(--color-btn);
	color: #111111;
	font-weight: 700;
	padding: .667em 1.333em;
	border-radius: 9999px;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- Main content ---------- */

main {
	margin-top: clamp(30px, 7vw, 70px);
	margin-bottom: clamp(30px, 7vw, 70px);
}

.page-title {
	text-align: center;
	line-height: 1.5;
	margin: 0 0 30px;
	font-size: var(--font-size-xx-large);
}

.entry-content {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 20px;
}

.entry-content > * + * {
	margin-top: 20px;
}

.entry-content p {
	font-size: var(--font-size-medium);
	margin: 0;
}

.entry-content h3 {
	margin: 30px 0 0;
}

.entry-content h2 {
	margin: 30px 0 0;
}

/* terme repris en intro, aligné sur la taille des h3 */
.term-highlight {
	font-size: var(--font-size-large);
}

/* espace généreux après une image, avant le texte qui suit */
.entry-content figure + * {
	margin-top: 40px;
}

/* espace généreux avant une image qui suit un paragraphe */
.entry-content p + figure {
	margin-top: 40px;
}

/* espacement renforcé pour les sections qu'on veut détacher davantage */
.section-spaced {
	margin-top: 50px !important;
	margin-bottom: 50px !important;
}

.entry-content ul,
.entry-content ol {
	font-size: var(--font-size-medium);
	padding-left: 1.3em;
}

.entry-content li {
	margin-top: .5em;
}

.entry-content hr {
	border: none;
	border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	margin: 30px 0;
}

.entry-content figure {
	margin: 0;
}

.section-heading {
	padding: 1.25em 2.375em;
	font-size: var(--font-size-large);
	font-weight: 700;
	margin: 0;
	border-radius: 4px;
}

.section-heading.c1 { background-color: var(--color-section-1); }
.section-heading.c2 { background-color: var(--color-section-2); }
.section-heading.c3 { background-color: var(--color-section-3); }
.section-heading.c4 { background-color: var(--color-section-4); }

.text-center {
	text-align: center;
}

.text-hero {
	font-size: calc(var(--font-size-xx-large) * 2);
}

.btn-outline {
	display: inline-block;
	border: 2px solid currentColor;
	background: transparent;
	color: inherit;
	font-weight: 700;
	padding: .667em 1.333em;
	border-radius: 9999px;
	text-decoration: none;
}

.btn-outline:hover {
	background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.btn-fill {
	display: inline-block;
	background-color: var(--color-btn);
	color: var(--color-white);
	font-weight: 700;
	padding: .667em 1.333em;
	border-radius: 9999px;
	text-decoration: none;
	border: 2px solid var(--color-btn);
}

.btn-plain {
	display: inline-block;
	background-color: #111111;
	color: var(--color-white);
	padding: .667em 1.333em;
	border-radius: 9999px;
	text-decoration: none;
	font-weight: 700;
}

.file-embed {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-white);
}

.file-embed-preview {
	display: block;
	width: 100%;
	height: 600px;
	border: none;
}

.file-embed-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid #ddd;
}

.file-embed-footer a:first-child {
	font-weight: 600;
	text-decoration: none;
}

.file-embed-footer a:first-child:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
	background-color: var(--color-footer-bg);
	padding: clamp(30px, 5vw, 50px) 20px;
}

.footer-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
}

.footer-logo {
	width: 240px;
	height: 240px;
	margin-bottom: 20px;
}

.footer-title {
	margin: 0;
	font-size: 3rem;
	font-weight: 700;
}

.footer-title a {
	text-decoration: none;
}

.footer-tagline {
	margin: 4px 0 24px;
	font-size: calc(var(--font-size-medium) * 2);
	font-weight: 400;
}

.footer-email {
	display: inline-block;
	font-weight: 700;
	font-size: var(--font-size-large);
	margin: 20px 0;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
}

.footer-social h2 {
	font-size: var(--font-size-medium);
	font-weight: 400;
	margin: 0;
}

.footer-social ul {
	list-style: none;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.footer-social a {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.footer-sep {
	border: none;
	border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	margin: 20px 0;
}

.footer-meta p {
	font-size: var(--font-size-small);
	font-weight: 400;
	margin: 0 0 10px;
}

.footer-links {
	font-size: var(--font-size-small);
}

.footer-links a {
	display: block;
	text-decoration: none;
	margin-top: 4px;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
	.site-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.main-nav {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}
	.main-nav ul {
		flex-direction: column;
		gap: 10px;
	}
}
