@charset "utf-8";

/*
Theme Name: CS4N Parent Theme
Theme URI: https://davewoodhall.com
Description: Thème parent WordPress pour les projets CS4N.
Author: Dave Woodhall
Author URI: https://davewoodhall.com
Version: 0.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cs4n-parent-theme
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, one-column, two-columns, right-sidebar, translation-ready

Copyright (C) 2026 Dave Woodhall
*/

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #005a87;
	text-decoration: underline;
}

a:hover,
a:focus {
	color: #003d5c;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 0.5em;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

ul, ol {
	margin-top: 0;
	margin-bottom: 1em;
	padding-left: 1.5em;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 999999;
}

.skip-link:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header,
.site-footer {
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
}

.site-footer {
	border-bottom: 0;
	border-top: 1px solid #ddd;
	margin-top: auto;
}

.site-header-inner,
.site-footer-inner,
.site-content-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #555;
}

.site-content {
	flex: 1;
}

.site-content-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.site-content-inner.has-sidebar {
		grid-template-columns: 1fr 280px;
	}
}

.site-main {
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.main-navigation a {
	text-decoration: none;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus {
	text-decoration: underline;
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.footer-navigation a {
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Posts & pages
   ------------------------------------------------------------------------- */

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	font-size: 1.75rem;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	text-decoration: underline;
}

.entry-meta {
	font-size: 0.875rem;
	color: #555;
	margin-bottom: 1rem;
}

.entry-content,
.entry-summary {
	margin-bottom: 1.5rem;
}

.entry-footer {
	font-size: 0.875rem;
	color: #555;
	border-top: 1px solid #eee;
	padding-top: 1rem;
	margin-top: 1.5rem;
}

.post-thumbnail {
	margin-bottom: 1.5rem;
}

.page-links {
	margin-top: 1.5rem;
	font-weight: 600;
}

.page-links a {
	margin: 0 0.25rem;
}

.post-navigation,
.posts-navigation {
	margin: 2rem 0;
	padding: 1rem 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Theme Check recommended classes */
.sticky {
}

.bypostauthor {
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1rem;
}

.wp-caption img {
	display: inline;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	color: #555;
	text-align: center;
	margin-top: 0.5rem;
}

/* Block editor */
.alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-embed {
	margin-bottom: 1.5rem;
}

.wp-block-embed iframe {
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Sidebar & widgets
   ------------------------------------------------------------------------- */

.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------
   Search
   ------------------------------------------------------------------------- */

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.search-form label {
	flex: 1;
}

.search-form input[type="search"] {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.search-form input[type="submit"] {
	padding: 0.5rem 1rem;
	background: #1a1a1a;
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */

.comments-area {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 1.5rem;
	padding-left: 0;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
}

.comment-author {
	font-weight: 600;
}

.comment-meta {
	font-size: 0.875rem;
	color: #555;
	margin-bottom: 0.5rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
	padding: 0.5rem 1.25rem;
	background: #1a1a1a;
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   404 & no results
   ------------------------------------------------------------------------- */

.page-header {
	margin-bottom: 2rem;
}

.page-title {
	font-size: 1.75rem;
}

.no-results {
	padding: 2rem 0;
}

.site-info {
	font-size: 0.875rem;
	color: #555;
	text-align: center;
}
