/*
Theme Name: Fondation SSF
Theme URI: https://fondationssf.com
Author: Halidou Soumaila Adamou
Author URI: https://halidou.dev
Description: Thème professionnel et moderne pour la Fondation SSF, construit avec Tailwind CSS et optimisé pour la performance.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fondation-ssf
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: responsive, tailwind, custom, light
*/

/* ================================
   Fondation SSF - Base Theme Styles
   ================================ */

:root {
	--ssf-color-text: #111827;
	--ssf-color-muted: #4b5563;
	--ssf-color-primary: #0E0F34;
	--ssf-color-accent: #d11616;
	--ssf-color-border: #e5e7eb;
	--ssf-color-surface: #ffffff;
	--ssf-radius-sm: 6px;
	--ssf-radius-md: 10px;
	--ssf-shadow-sm: 0 2px 12px rgba(17, 24, 39, 0.06);
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--ssf-color-text);
	background-color: var(--ssf-color-surface);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-underline-offset: 2px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

figure {
	margin: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	border: 1px solid var(--ssf-color-border);
	padding: 10px 12px;
	text-align: left;
}

/* Contenu WordPress */
.entry-content > * {
	max-width: 100%;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	line-height: 1.25;
	margin-top: 1.2em;
	margin-bottom: 0.55em;
}

.entry-content blockquote {
	border-left: 4px solid var(--ssf-color-accent);
	padding: 0.75em 1em;
	background: #f9fafb;
	color: var(--ssf-color-muted);
}

.entry-content pre {
	overflow-x: auto;
	border-radius: var(--ssf-radius-md);
	padding: 14px;
	background: #0f172a;
	color: #e5e7eb;
}

.entry-content code {
	border-radius: 4px;
	background: #f3f4f6;
	padding: 0.1em 0.35em;
	font-size: 0.92em;
}

.entry-content pre code {
	background: transparent;
	padding: 0;
	color: inherit;
}

/* Alignements WordPress */
.alignleft {
	float: left;
	margin-right: 1rem;
	margin-bottom: 0.75rem;
}

.alignright {
	float: right;
	margin-left: 1rem;
	margin-bottom: 0.75rem;
}

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

.wp-caption {
	max-width: 100%;
	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-sm);
	background: #fff;
	padding: 6px;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	margin: 8px 4px 2px;
	font-size: 0.875rem;
	color: var(--ssf-color-muted);
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

/* Formulaires front */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: var(--ssf-radius-sm);
	padding: 0.7rem 0.85rem;
	background: #fff;
	color: var(--ssf-color-text);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
	border-color: var(--ssf-color-primary);
	box-shadow: 0 0 0 3px rgba(14, 15, 52, 0.12);
	outline: none;
}

button,
.button,
input[type="submit"] {
	border-radius: var(--ssf-radius-sm);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
	transform: translateY(-1px);
}

/* Navigation & pagination */
.nav-links,
.pagination,
.post-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.page-numbers,
.nav-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-sm);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ssf-color-primary);
	color: #fff;
	border-color: var(--ssf-color-primary);
}

/* Widgets */
.widget {
	margin-bottom: 1.5rem;
}

.widget-title {
	margin-bottom: 0.75rem;
	color: var(--ssf-color-primary);
}

.widget ul {
	margin: 0;
	padding-left: 1.1rem;
}

/* Accessibilité */
.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 {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 10px 14px;
	top: 8px;
	left: 8px;
	z-index: 100000;
	background: #fff;
	color: #111;
	box-shadow: var(--ssf-shadow-sm);
}

:focus-visible {
	outline: 2px solid var(--ssf-color-accent);
	outline-offset: 2px;
}

/* Clearfix utilitaire */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 767px) {
	.alignleft,
	.alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}

	.entry-content pre {
		font-size: 0.9rem;
	}
}
