/*
Theme Name: ONOWO
Theme URI: https://onowo.fr
Author: ONOWO Communication
Author URI: https://onowo.fr
Description: Thème WordPress optimisé pour Elementor. Toutes les pages, articles, archives et la 404 sont éditables visuellement. React disponible en option via modèle de page ou shortcode.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onowo
Tags: elementor, custom-logo, custom-menu, featured-images, translation-ready, full-width-template
*/

/* Base minimale — Elementor contrôle le design */
html {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	padding: 0;
}

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

/* En-tête / pied de page de secours (si Theme Builder non configuré) */
.onowo-fallback-header,
.onowo-fallback-footer {
	padding: 1rem 1.5rem;
}

.site-header-inner,
.site-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}

.site-menu {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

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

.onowo-fallback-footer {
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.site-footer-copy {
	margin: 0;
	font-size: 0.875rem;
}

/* Contenu WordPress / Elementor */
.site-main {
	width: 100%;
}

.onowo-page-content {
	width: 100%;
}

.entry-header {
	max-width: 1140px;
	margin: 2rem auto 1rem;
	padding: 0 1.5rem;
}

.entry-content {
	width: 100%;
}

/* Modèles Elementor pleine page */
body.elementor-template-canvas .site-main,
body.elementor-template-full-width .site-main,
body.elementor-page .site-main {
	max-width: none;
	padding: 0;
}

/* Mode React (optionnel) */
#root {
	min-height: 100vh;
}

.onowo-elementor-page #root {
	min-height: 60vh;
}

.onowo-build-missing {
	max-width: 42rem;
	margin: 4rem auto;
	padding: 2rem;
	font-family: system-ui, -apple-system, sans-serif;
	color: #1f2937;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
}

.onowo-build-missing h1 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	color: #0f766e;
}

.onowo-build-missing code {
	background: #e5e7eb;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
}

.onowo-build-missing ol {
	padding-left: 1.25rem;
}

.onowo-build-missing li {
	margin-bottom: 0.5rem;
}
