/* Fonds Yvonne Boël — base commune (jetons, en-tête, pied, bandeau de titre).
   Valeurs reprises du kit Elementor d'origine (couleurs, Public Sans, grille 1200 px). */

@font-face {
	font-family: 'Public Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/public-sans-latin.woff2) format('woff2');
}
@font-face {
	font-family: 'Public Sans';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/public-sans-latin-italic.woff2) format('woff2');
}

:root {
	--c-primary: #232021;      /* titres, texte fort */
	--c-text: #444343;         /* texte courant */
	--c-accent: #026891;       /* bleu Fonds */
	--c-accent-hover: #285d75;
	--c-accent-soft: #c2eeff;
	--c-border: #bcbcbc;
	--c-soft: #f9f9f9;
	--c-white: #fff;
	--c-footer: #232021;
	--c-footer-text: #dfdada;

	--font: 'Public Sans', Arial, sans-serif;
	--wrap: 1200px;
	--gutter: 20px;

	--fs-body: 16px;
	--fs-hero: 68px;
	--fs-h2: 50px;
}

@media (max-width: 1024px) {
	:root { --fs-body: 15px; --fs-hero: 64px; --fs-h2: 46px; }
}
@media (max-width: 767px) {
	:root { --fs-body: 14px; --fs-hero: 42px; --fs-h2: 32px; }
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-white);
	touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font);
	font-weight: 600;
	color: var(--c-primary);
	line-height: 1.2;
}

p { margin: 0 0 .9em; }
a { color: var(--c-primary); text-decoration: none; }
h3 { font-size: 24px; }
@media (max-width: 767px) { h3 { font-size: 22px; } }
img { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 700; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	padding: 10px 16px; background: var(--c-accent); color: #fff;
}
.skip-link:focus { top: 12px; }

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

/* ---------- En-tête (en surimpression sur le bandeau du haut) ---------- */
.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 90;
}
.site-header__bar {
	height: 30px;
	background: var(--c-accent);
}
.site-header__inner {
	/* Grille d'origine : colonnes 25 % / 49,33 % / 25,67 %, 10 px de marge interne */
	display: grid;
	grid-template-columns: 25fr 49.333fr 25.667fr;
	align-items: center;
	min-height: 159px;
	padding: 10px 30px;
	border-bottom: 1px solid var(--c-border);
}
.site-header__inner > * { padding: 0 10px; }
.site-header__logo img { width: 257px; }

.site-nav ul {
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	position: relative;
	display: block;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	color: var(--c-primary);
	transition: color .2s;
}
.site-nav a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transition: transform .25s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--c-accent); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__cta {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	padding-right: 18px;
}
.btn-header {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155.5px;
	height: 60px;
	padding: 0;
	white-space: nowrap;
	background: var(--c-accent);
	color: #fff;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .15em;
	text-transform: uppercase;
	text-align: center;
	transition: background .3s ease;
}
.btn-header:hover,
.btn-header:focus-visible { background: var(--c-accent-hover); color: #fff; }

.site-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, .06);
	color: var(--c-primary);
	cursor: pointer;
}

@media (max-width: 1024px) {
	.site-header__bar { height: 20px; }
	.site-header__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		padding: 20px;
		min-height: 0;
	}
	.site-header__inner > * { padding: 0; }
	.site-header__logo img { width: 160px; }
	.site-header__toggle { display: inline-flex; order: 3; margin-left: 14px; }
	.site-nav {
		order: 5;
		flex-basis: 100%;
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul {
		flex-direction: column;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	}
	.site-nav a { padding: 14px 20px; }
	.site-nav a::after { display: none; }
	.site-header__cta { order: 2; margin-left: auto; padding-right: 0; }
}
@media (max-width: 767px) {
	.site-header__bar { height: 10px; }
	.site-header__inner { padding: 21px 15px 30px; row-gap: 10px; }
	.site-header__logo img { width: 140px; }
	.site-header__cta {
		order: 4;
		flex-basis: 100%;
		justify-content: center;
		gap: 10px;
	}
	.btn-header {
		width: 100px;
		height: 60px;
		padding: 0 6px;
		font-size: 12px;
		font-weight: 400;
		letter-spacing: .08em;
		white-space: normal;
	}
	.site-nav { order: 5; }
	.site-header__cta { margin-left: 0; }
	.site-header__toggle { margin-left: auto; }
}

/* ---------- Bandeau de titre des pages intérieures ---------- */
.page-hero {
	position: relative;
	padding: 300px 10px 160px;
	margin-bottom: 10px; /* marge interne par défaut des blocs Elementor qui suivaient le bandeau */
	background:
		linear-gradient(to top left, rgba(247, 247, 247, .79), #fff),
		url(../img/hero-bg.webp) 0 100% / cover no-repeat;
	text-align: center;
}
.page-hero__title {
	font-size: var(--fs-hero);
	font-weight: 600;
	line-height: 1;
	color: var(--c-primary);
}
.page-hero__shape {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: 126px;
	pointer-events: none;
}
.page-hero__shape path { fill: #fff; }
@media (max-width: 1024px) {
	.page-hero { padding: 325px 10px 130px; }
	.page-hero__shape { height: 100px; }
}
@media (max-width: 767px) {
	.page-hero { padding: 267px 5px 110px; background-position: center; }
	.page-hero__shape { height: 45px; }
}

/* ---------- Contenu générique (politique de cookies, pages simples) ---------- */
.page-content {
	max-width: calc(900px + 2 * var(--gutter));
	margin: 0 auto;
	padding: 60px var(--gutter) 100px;
}
.page-content h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.page-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.legal a { color: var(--c-accent); text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-footer {
	background: var(--c-footer);
	color: var(--c-border);
	padding: 110px 10px 20px;
	font-weight: 300;
}
.site-footer a { color: var(--c-border); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__cols {
	display: grid;
	grid-template-columns: 38.4% 28.3% 1fr;
	max-width: 1180px;
	margin: 0 auto;
}
.site-footer__about { max-width: 343px; }
.site-footer__about img { width: 180px; margin-bottom: 20px; }
.site-footer__tagline {
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	color: #fff;
}
.site-footer__title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-bottom: 9px; }
.site-footer li + li { padding-top: 9px; }
.site-footer__bottom {
	max-width: 1180px;
	margin: 80px auto 0;
	padding-top: 30px;
	border-top: 1px solid #5a5758;
	text-align: center;
	color: #fff;
	font-size: 15px;
	font-weight: 400;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #fff; }
.site-footer__legal { margin-bottom: 8px !important; font-size: 14px; color: var(--c-border); }
.site-footer__legal a { color: var(--c-border); }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 1024px) {
	.site-footer { padding-top: 80px; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; padding: 0 10px; }
	.site-footer__about { grid-column: 1 / -1; max-width: none; text-align: center; }
	.site-footer__about img { margin-inline: auto; }
	.site-footer__bottom { margin-top: 60px; }
}
@media (max-width: 767px) {
	.site-footer { margin-top: 120px; padding: 110px 5px 20px; }
	.site-footer__bottom { font-size: 14px; }
	.site-footer__cols { grid-template-columns: 1fr; padding: 0 10px; }
	.site-footer__about { text-align: left; }
	.site-footer__about img { margin-inline: 0; }
	.site-footer__title { font-size: 22px; }
	.site-footer__bottom { margin-top: 40px; }
}

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