/*
Theme Name: Thème Sandco
Theme URI: https://s-and-co-solutions.digital (URL finale)
Author: S AND CO - Solutions digitales
Author URI: https://s-and-co-solutions.digital
Description: Thème personnalisé
Version: 1.0.0
License: Proprietary
License URI: License URI: https://s-and-co-solutions.digital/license-exclusive
Text Domain: sandco-theme
Copyright: (c) 2026 S AND CO - Solutions digitales. Tous droits réservés.
*/

/* All styles are now loaded via functions.php from the /css/ folder */
/* Accessibility helper: ensure elements using the `screen-reader-text` utility
   are visually hidden but still available to assistive technologies. This
   matches WordPress core behavior and prevents the site title/description
   from being visible when the theme uses that class to hide header text. */
.screen-reader-text {
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; /* Prevent the text from wrapping */
	border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus,
.screen-reader-text:hover {
	position: static !important;
	height: auto; width: auto; overflow: visible; clip: auto; white-space: normal;
}

/* ------------------------------------------------------------------
   Custom bullets: when the Customizer option `theme_custom_bullets`
   is enabled we add `has-custom-bullets` to <body> (see functions.php).
   These rules only affect unordered lists inside the primary content
   container(s) such as `.entry-content` so ordered lists keep numbers.
   ------------------------------------------------------------------ */

body.has-custom-bullets .entry-content,
body.has-custom-bullets .post .entry-content,
body.has-custom-bullets .page .entry-content {
	--custom-bullet-size: 0.6rem;
	--custom-bullet-color: var(--site-color-accent-primary);
}

/* Target ULs only when the body class is present (covers lists from
   shortcodes as long as they are inside the content container). */
body.has-custom-bullets .entry-content ul,
body.has-custom-bullets .post .entry-content ul,
body.has-custom-bullets .page .entry-content ul,
body.has-custom-bullets .entry-content ul.wp-block-list {
	list-style: none; /* remove the native marker for UL */
	margin-left: 0;
	padding-left: 0;
}

/* Ensure list items keep spacing for the pseudo bullet (UL only) */
body.has-custom-bullets .entry-content ul li,
body.has-custom-bullets .post .entry-content ul li,
body.has-custom-bullets .page .entry-content ul li {
	position: relative;
	padding-left: calc(var(--custom-bullet-size) + 0.9rem);
	margin-bottom: 0.6em;
}

/* The custom bullet rendered via ::before (UL only) */
body.has-custom-bullets .entry-content ul li::before,
body.has-custom-bullets .post .entry-content ul li::before,
body.has-custom-bullets .page .entry-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: var(--custom-bullet-size);
	height: var(--custom-bullet-size);
	background-color: var(--custom-bullet-color);
	border-radius: 50%;
	transform: translateY(-50%);
	display: inline-block;
}

/* Always keep ordered lists numeric and with enough left padding */
.entry-content ol {
	list-style: decimal;
	padding-left: 2.2em; /* ensure numbers are visible and not cut off */
	margin-left: 0;
}

/* More specific fallback for content inside posts/pages */
.post .entry-content ol,
.page .entry-content ol {
	list-style: decimal;
	padding-left: 2.2em;
}
