/*
 * Alternate — base typographique et éléments de base.
 * Sobre et neutre : Elementor surcharge par-dessus. Police Inter auto-hébergée (OFL).
 */

/* -- Police : Inter variable (une seule ressource pour toutes les graisses). -- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Inter-Variable.woff2") format("woff2");
}

/* -- Jetons de base (surchargables). -- */
:root {
	--alt-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--alt-color-text: #1d2327;
	--alt-color-muted: #50575e;
	--alt-color-link: #2563eb;
	--alt-color-link-hover: #1d4ed8;
	--alt-color-bg: #ffffff;
	--alt-color-border: #e2e4e7;
	--alt-content-width: 1140px;
	--alt-content-narrow: 720px;
	--alt-space: 1.5rem;
}

/* -- Base. -- */
body {
	font-family: var(--alt-font-sans);
	font-size: 1rem;
	color: var(--alt-color-text);
	background-color: var(--alt-color-bg);
	text-rendering: optimizeLegibility;
}

/* Titres : graisses nettes, interligne resserré. */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
	margin-bottom: 1em;
}

a {
	color: var(--alt-color-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover,
a:focus {
	color: var(--alt-color-link-hover);
}

strong, b { font-weight: 700; }

hr {
	border: 0;
	border-top: 1px solid var(--alt-color-border);
	margin: var(--alt-space) 0;
}

/* -- Politique de focus homogène (accessibilité). -- */
:focus-visible {
	outline: 2px solid var(--alt-color-link);
	outline-offset: 2px;
}

/* -- Lien d'évitement + texte réservé aux lecteurs d'écran (motif WordPress standard). -- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--alt-color-text);
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* -- Mise en page des gabarits de repli du thème. --
 * IMPORTANT : la largeur de contenu n'est imposée que sur les pages NON construites avec Elementor.
 * Sur une page Elementor (body.elementor-page-*), c'est Elementor qui gère la largeur.
 * En-tête/pied de repli : seulement rendus si Elementor ne fournit pas header/footer. */
.site-header__inner,
.site-footer__inner {
	max-width: var(--alt-content-width);
	margin-inline: auto;
	padding-inline: var(--alt-space);
}
body:not([class*="elementor-page-"]) .site-main {
	max-width: var(--alt-content-width);
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--alt-space);
	padding-block: calc(var(--alt-space) * 2);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--alt-space);
	padding-block: 1rem;
}
.site-title {
	font-size: 1.25rem;
	font-weight: 700;
}
.site-title a { text-decoration: none; }
.site-description {
	color: var(--alt-color-muted);
	font-size: 0.9rem;
}
.site-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
}
.site-navigation a { text-decoration: none; }
.site-footer {
	border-top: 1px solid var(--alt-color-border);
	margin-top: calc(var(--alt-space) * 2);
}
.site-footer__inner {
	padding-block: var(--alt-space);
	color: var(--alt-color-muted);
	font-size: 0.9rem;
}

/* Contenu éditorial : largeur de lecture confortable — uniquement hors pages Elementor. */
body:not([class*="elementor-page-"]) :where( .entry-content, .archive-header, .posts-list ) {
	max-width: var(--alt-content-narrow);
}
.entry-content > * + * {
	margin-top: 1em;
}
.post-summary { margin-bottom: var(--alt-space); }
