/* ===================================================================
   Sérénité — feuille de styles

   Parti pris : fond clair uniquement, grands caractères, contrastes
   élevés. Aucune règle prefers-color-scheme: dark — le thème ne bascule
   jamais en sombre, y compris si le système du visiteur le demande.
   =================================================================== */

/* --- Police embarquée (SIL OFL 1.1, voir assets/fonts/OFL.txt) --- */

@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/AtkinsonHyperlegible-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* --- Variables --- */

:root {
	--se-principale: #1f3a63;
	--se-principale-sombre: #17304f;
	--se-accent: #2d7d8a;        /* graphismes */
	--se-accent-texte: #276c77;  /* texte : recalculé en PHP pour rester ≥ 4.5:1 */

	--se-encre: #15202e;          /* 15.8:1 sur blanc  */
	--se-encre-douce: #46566a;    /*  7.4:1 sur blanc  */
	--se-blanc: #ffffff;
	--se-fond-doux: #f5f8fa;
	--se-bordure: #dde4ea;

	--se-rayon: 16px;
	--se-rayon-s: 10px;
	--se-ombre: 0 2px 4px rgba(21, 32, 46, .04), 0 12px 28px rgba(21, 32, 46, .06);

	--se-largeur: 1180px;
	--se-mesure: 62ch;

	color-scheme: light;
}

/* --- Base --- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--se-blanc);
	color: var(--se-encre);
	font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	font-size: 1.25rem;        /* 20 px : socle de lecture confortable */
	line-height: 1.7;
	letter-spacing: .005em;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--se-principale-sombre);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

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

/* Un contour de focus large et toujours visible : c'est la boussole des
   personnes qui naviguent au clavier. */
:focus-visible {
	outline: 3px solid var(--se-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--se-accent);
	color: #fff;
}

/* --- Lien d'évitement --- */

.se-saut {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 16px 24px;
	background: var(--se-principale);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--se-rayon-s) 0;
}

.se-saut:focus {
	left: 0;
	color: #fff;
}

/* --- Mise en page --- */

.se-conteneur {
	width: 100%;
	max-width: var(--se-largeur);
	margin: 0 auto;
	padding: 0 24px;
}

.se-section {
	padding: clamp(56px, 7vw, 104px) 0;
}

.se-section--doux {
	background: var(--se-fond-doux);
}

.se-principal {
	display: block;
}

/* --- Titres --- */

.se-titre-xl,
.se-titre-l,
.se-titre-s {
	margin: 0 0 .5em;
	line-height: 1.2;
	color: var(--se-encre);
	text-wrap: balance;
	font-weight: 700;
}

.se-titre-xl {
	font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
	letter-spacing: -.015em;
}

.se-titre-l {
	font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
	letter-spacing: -.01em;
}

.se-titre-s {
	font-size: 1.3rem;
	line-height: 1.35;
	margin-bottom: .35em;
}

.se-surtitre {
	margin: 0 0 .75em;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--se-accent-texte);
}

.se-intro,
.se-chapeau {
	margin: 0 0 1.5em;
	max-width: var(--se-mesure);
	font-size: 1.3rem;
	line-height: 1.65;
	color: var(--se-encre-douce);
}

.se-entete-section {
	max-width: 760px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	text-align: center;
}

.se-entete-section .se-intro,
.se-entete-section .se-chapeau {
	margin-left: auto;
	margin-right: auto;
}

.se-entete-section--gauche {
	margin-left: 0;
	text-align: left;
}

.se-mention {
	margin: 20px 0 0;
	text-align: center;
	font-size: 1rem;
	color: var(--se-encre-douce);
}

/* --- En-tête du site --- */

.se-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--se-bordure);
}

.se-entete__interieur {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 84px;
	flex-wrap: wrap;
}

.se-marque__lien {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--se-encre);
	padding: 8px 0;
}

.se-marque__signe {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 9px;
	background: linear-gradient(140deg, var(--se-principale), var(--se-accent));
}

.se-marque__nom {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -.01em;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

/* --- Navigation --- */

.se-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.se-menu li {
	margin: 0;
}

.se-menu a {
	display: flex;
	align-items: center;
	min-height: 48px;          /* cible tactile confortable */
	padding: 0 16px;
	border-radius: var(--se-rayon-s);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--se-encre);
	text-decoration: none;
}

.se-menu a:hover,
.se-menu .current-menu-item > a {
	background: var(--se-fond-doux);
	color: var(--se-principale-sombre);
}

.se-bascule {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 16px;
	border: 2px solid var(--se-bordure);
	border-radius: var(--se-rayon-s);
	background: #fff;
	color: var(--se-encre);
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}

.se-bascule__barres {
	display: grid;
	gap: 4px;
}

.se-bascule__barres span {
	display: block;
	width: 22px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--se-encre);
}

/* --- Boutons --- */

.se-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--se-rayon-s);
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.se-bouton--principal {
	background: var(--se-principale);
	border-color: var(--se-principale);
	color: #fff;
}

.se-bouton--principal:hover {
	background: var(--se-principale-sombre);
	border-color: var(--se-principale-sombre);
	color: #fff;
}

.se-bouton--second {
	background: #fff;
	border-color: var(--se-bordure);
	color: var(--se-encre);
}

.se-bouton--second:hover {
	border-color: var(--se-principale);
	color: var(--se-principale-sombre);
}

.se-bouton .se-icone {
	width: 24px;
	height: 24px;
	flex: none;
}

.se-boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}

/* --- En-tête de la page d'accueil --- */

.se-hero {
	padding-top: clamp(48px, 6vw, 88px);
}

.se-hero__grille {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.se-hero__texte .se-intro {
	font-size: 1.35rem;
}

.se-illustration {
	width: 100%;
	height: auto;
	display: block;
}

/* --- Grilles de cartes --- */

.se-grille {
	display: grid;
	gap: 24px;
}

.se-grille--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.se-carte {
	padding: 32px 28px;
	background: #fff;
	border: 1px solid var(--se-bordure);
	border-radius: var(--se-rayon);
	box-shadow: var(--se-ombre);
}

.se-section--doux .se-carte {
	box-shadow: none;
}

.se-carte p {
	margin: 0;
	color: var(--se-encre-douce);
	font-size: 1.1rem;
}

.se-carte--sobre {
	padding: 28px 24px;
}

.se-carte__icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--se-fond-doux);
	color: var(--se-principale);
}

.se-section--doux .se-carte__icone {
	background: #fff;
	border: 1px solid var(--se-bordure);
}

.se-carte--article .se-carte__image {
	display: block;
	margin: -32px -28px 20px;
	overflow: hidden;
	border-radius: var(--se-rayon) var(--se-rayon) 0 0;
}

.se-carte--article .se-titre-s a {
	text-decoration: none;
	color: var(--se-encre);
}

.se-carte--article .se-titre-s a:hover {
	color: var(--se-principale-sombre);
	text-decoration: underline;
}

.se-date {
	margin: 0 0 .5em;
	font-size: 1rem;
	color: var(--se-encre-douce);
}

/* --- Section en deux colonnes --- */

.se-duo {
	display: grid;
	grid-template-columns: .95fr 1.05fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.se-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.se-liste li {
	position: relative;
	padding-left: 40px;
	font-size: 1.15rem;
	color: var(--se-encre);
}

/* La coche est décorative : chaque élément se lit sans elle. */
.se-liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--se-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* --- Démonstration --- */

.se-section--demo {
	background: linear-gradient(180deg, #fff 0%, var(--se-fond-doux) 100%);
}

.se-demo {
	border: 1px solid var(--se-bordure);
	border-radius: var(--se-rayon);
	background: #fff;
	box-shadow: var(--se-ombre);
	overflow: hidden;
}

.se-demo__barre {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: var(--se-fond-doux);
	border-bottom: 1px solid var(--se-bordure);
}

.se-demo__point {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--se-bordure);
}

.se-demo__adresse {
	margin-left: 14px;
	padding: 4px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--se-bordure);
	font-size: .95rem;
	color: var(--se-encre-douce);
}

.se-demo__ecran {
	padding: clamp(24px, 4vw, 48px);
}

.se-demo__avis {
	margin: 0;
	padding: 20px 24px;
	border-radius: var(--se-rayon-s);
	background: #fdf6e7;
	border: 1px solid #efd9a8;
	font-size: 1.05rem;
}

/* --- Étapes --- */

.se-etapes {
	counter-reset: etape;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 840px;
	display: grid;
	gap: 20px;
}

.se-etape {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--se-bordure);
	border-radius: var(--se-rayon);
}

.se-etape__numero {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--se-principale);
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
}

.se-etape p {
	margin: 0;
	color: var(--se-encre-douce);
	font-size: 1.1rem;
}

/* --- Contact --- */

.se-section--contact {
	background: var(--se-fond-doux);
}

.se-contact {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(36px, 5vw, 64px);
	background: #fff;
	border: 1px solid var(--se-bordure);
	border-radius: var(--se-rayon);
	text-align: center;
	box-shadow: var(--se-ombre);
}

.se-contact__liens {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* --- Contenu rédigé --- */

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

.se-prose > * + * {
	margin-top: 1.1em;
}

.se-prose h2 {
	font-size: 1.9rem;
	line-height: 1.25;
	margin-top: 1.8em;
}

.se-prose h3 {
	font-size: 1.4rem;
	line-height: 1.3;
	margin-top: 1.6em;
}

.se-prose ul,
.se-prose ol {
	padding-left: 1.4em;
}

.se-prose li + li {
	margin-top: .5em;
}

.se-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 28px;
	border-left: 5px solid var(--se-accent);
	color: var(--se-encre-douce);
	font-style: italic;
}

.se-prose code {
	padding: 3px 7px;
	border-radius: 6px;
	background: var(--se-fond-doux);
	font-size: .95em;
}

.se-image-large {
	margin: 0 0 40px;
	border-radius: var(--se-rayon);
	overflow: hidden;
}

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

/* --- Pagination et navigation d'articles --- */

.pagination,
.se-navigation-article {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 48px;
}

.pagination .page-numbers,
.se-navigation-article a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid var(--se-bordure);
	border-radius: var(--se-rayon-s);
	font-weight: 700;
	text-decoration: none;
	color: var(--se-encre);
}

.pagination .page-numbers.current {
	background: var(--se-principale);
	border-color: var(--se-principale);
	color: #fff;
}

/* --- Pied de page --- */

.se-pied {
	border-top: 1px solid var(--se-bordure);
	background: #fff;
}

.se-pied__interieur {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	padding-top: 56px;
	padding-bottom: 40px;
}

.se-pied__nom {
	margin: 0 0 .3em;
	font-size: 1.25rem;
	font-weight: 700;
}

.se-pied__desc,
.se-pied__intitule {
	margin: 0 0 .5em;
	color: var(--se-encre-douce);
	font-size: 1.05rem;
}

.se-pied__intitule {
	font-weight: 700;
	color: var(--se-encre);
}

.se-pied__liste {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.se-pied__liste a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 1.1rem;
}

.se-pied__bas {
	padding-bottom: 40px;
	border-top: 1px solid var(--se-bordure);
	padding-top: 24px;
}

.se-pied__bas p {
	margin: 0;
	font-size: 1rem;
	color: var(--se-encre-douce);
}

.se-pied__annee {
	margin-left: 8px;
}

/* ===================================================================
   Adaptations
   =================================================================== */

@media (max-width: 980px) {
	.se-hero__grille,
	.se-duo {
		grid-template-columns: 1fr;
	}

	.se-hero__visuel,
	.se-duo__visuel {
		order: 2;
		max-width: 560px;
	}

	.se-duo__texte {
		order: 1;
	}

	.se-grille--3,
	.se-grille--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body {
		font-size: 1.2rem;
	}

	.se-conteneur {
		padding: 0 16px;
	}

	.se-grille--3,
	.se-grille--4 {
		grid-template-columns: 1fr;
	}

	.se-entete__interieur {
		min-height: 72px;
	}

	/* Menu replié : il s'ouvre au clic, et reste accessible sans script
	   si celui-ci ne se charge pas (voir .se-navigation par défaut). */
	.se-bascule {
		display: inline-flex;
		order: 2;
	}

	.se-navigation {
		order: 3;
		width: 100%;
		display: none;
	}

	.se-navigation.est-ouvert {
		display: block;
		padding-bottom: 16px;
	}

	.se-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.se-menu a {
		min-height: 54px;
		padding: 0 14px;
		font-size: 1.15rem;
	}

	.se-bouton {
		width: 100%;
	}

	.se-contact__liens .se-bouton {
		width: 100%;
	}

	.se-etape {
		flex-direction: column;
		gap: 16px;
		padding: 24px;
	}

	.se-entete-section {
		text-align: left;
	}

	.se-entete-section .se-intro,
	.se-entete-section .se-chapeau {
		margin-left: 0;
	}
}

/* Si JavaScript est indisponible, le menu reste déployé plutôt que
   inaccessible. */
.no-js .se-navigation {
	display: block;
}

.no-js .se-bascule {
	display: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* Contraste renforcé : on épaissit les séparations plutôt que de
   changer les couleurs. */
@media (prefers-contrast: more) {
	:root {
		--se-encre-douce: #2b3a4c;
		--se-bordure: #9aa7b4;
	}

	.se-carte,
	.se-etape,
	.se-demo {
		border-width: 2px;
	}
}

@media print {
	.se-entete,
	.se-pied,
	.se-saut,
	.se-boutons {
		display: none;
	}
}
