/*
Theme Name:        Editoria
Theme URI:         https://example.com/editoria
Author:            Axel Morel
Author URI:        https://axelmorel.com
Description:       Thème WordPress FSE natif, léger et orienté SEO/EEAT, entièrement modifiable via l'éditeur de site. Socle de présentation industrialisable pensé pour plusieurs blogs éditoriaux, enrichi par des plugins compagnons (éditorial, auteurs EEAT, webperf, RGAA, schema.org).
Requires at least: 6.6
Tested up to:      6.8
Requires PHP:      8.0
Version:           0.1.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       editoria
Tags:              full-site-editing, block-patterns, block-styles, blog, news, editorial, accessibility-ready, translation-ready, threaded-comments, sticky-post, custom-colors, wide-blocks
*/

/*
 * Le style global du thème est piloté par theme.json (design system).
 * Ce fichier ne contient que le strict nécessaire que theme.json ne couvre pas :
 * skip-link, accessibilité du focus, mesure de lecture, prefers-reduced-motion.
 * Tout le reste (couleurs, typo, espacements, styles de blocs) vit dans theme.json.
 */

/* Skip link — masqué jusqu'au focus clavier (RGAA 12.x) */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	z-index: 100000;
	padding: 0.75em 1.25em;
	background: var(--wp--preset--color--contrast, #16151A);
	color: var(--wp--preset--color--base, #fff);
	text-decoration: none;
	border-radius: 0 0 6px 0;
}
.skip-link.screen-reader-text:focus {
	left: 0;
	top: 0;
	outline: 3px solid var(--wp--preset--color--link, #0B5FCC);
	outline-offset: 2px;
}

/* screen-reader-text helper (au cas où le core ne le fournit pas dans un contexte) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

/* Mesure de lecture confortable pour le contenu d'article (lecture longue) */
.is-reading-measure,
.entry-content > p,
.wp-block-post-content > p {
	max-width: var(--wp--custom--reading-measure, 68ch);
}

/* Focus visible homogène et accessible sur tous les éléments interactifs */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--link, #0B5FCC);
	outline-offset: 2px;
}

/* Respect de prefers-reduced-motion (RGAA / WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
