/*
Theme Name:   Novatis
Theme URI:    https://novatis.tn
Author:       Novatis Agency
Author URI:   https://novatis.tn
Description:  Thème officiel Novatis Agency — socle léger optimisé Elementor, avec header/footer configurables et tableau de bord dédié. Conçu pour fonctionner avec le plugin Novatis Importer.
Version:      1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  novatis
*/

/* ==== Reset léger ==== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--nv-font-body, system-ui, sans-serif); color: #1a1a1a; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

:root {
	--nv-header-bg: #ffffff;
	--nv-header-text: #0B1F3A;
	--nv-accent: #FF6B35;
	--nv-footer-bg: #0B1F3A;
	--nv-footer-text: #B9C7DA;
	--nv-container: 1200px;
}

/* ==== Topbar ==== */
.nv-topbar { background: var(--nv-footer-bg); color: #fff; font-size: 12.5px; }
.nv-topbar-inner {
	max-width: var(--nv-container);
	margin: 0 auto;
	padding: 7px 20px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 20px;
}
.nv-topbar a { color: #fff; text-decoration: none; margin-right: 18px; opacity: .92; }
.nv-topbar a:hover { opacity: 1; }
.nv-topbar-right { opacity: .85; }
@media (max-width: 700px) { .nv-topbar-right { display: none; } }

/* ==== Header ==== */
.nv-header {
	background: var(--nv-header-bg);
	color: var(--nv-header-text);
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
	position: relative;
	z-index: 999;
}
.nv-header.nv-sticky { position: sticky; top: 0; }
body.admin-bar .nv-header.nv-sticky { top: 32px; }

.nv-header-inner {
	max-width: var(--nv-container);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
}

.nv-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nv-logo img { max-height: 52px; width: auto; }
.nv-logo .nv-site-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--nv-header-text); }

.nv-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nv-nav a {
	display: block;
	padding: 9px 11px;
	text-decoration: none;
	font-weight: 500;
	font-size: 14.5px;
	white-space: nowrap;
	color: var(--nv-header-text);
	border-radius: 6px;
	transition: color .15s, background .15s;
}
.nv-nav li.current-menu-item > a,
.nv-nav a:hover { color: var(--nv-accent); }
.nv-nav .sub-menu {
	display: none;
	position: absolute;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	border-radius: 8px;
	padding: 6px;
	min-width: 210px;
}
.nv-nav li { position: relative; }
.nv-nav li:hover > .sub-menu { display: block; }

.nv-cta {
	background: var(--nv-accent);
	color: #fff !important;
	padding: 11px 22px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	transition: opacity .15s;
}
.nv-cta:hover { opacity: .88; }

.nv-burger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nv-burger span { display: block; width: 24px; height: 2px; background: var(--nv-header-text); margin: 5px 0; transition: .2s; }

@media (max-width: 980px) {
	.nv-burger { display: block; }
	.nv-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--nv-header-bg);
		box-shadow: 0 12px 20px rgba(0,0,0,.1);
		padding: 12px 20px 20px;
	}
	.nv-nav.open { display: block; }
	.nv-nav ul { flex-direction: column; gap: 0; }
	.nv-nav .sub-menu { display: block; position: static; box-shadow: none; padding-left: 14px; }
	.nv-header-cta { display: none; }
}

/* ==== Contenu (pages non-Elementor) ==== */
.nv-content { max-width: var(--nv-container); margin: 0 auto; padding: 50px 20px; }
.nv-content h1 { font-size: 38px; }

/* ==== Footer ==== */
.nv-footer { background: var(--nv-footer-bg); color: var(--nv-footer-text); }
.nv-footer-inner {
	max-width: var(--nv-container);
	margin: 0 auto;
	padding: 44px 20px 20px;
}
.nv-footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
	padding-bottom: 26px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.nv-footer-text { max-width: 480px; font-size: 14px; line-height: 1.7; }
.nv-footer-contact { font-size: 14px; line-height: 2; }
.nv-footer-contact a { color: #fff; text-decoration: none; }
.nv-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nv-footer-menu a { color: var(--nv-footer-text); text-decoration: none; font-size: 14px; }
.nv-footer-menu a:hover { color: #fff; }
.nv-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-top: 18px;
	font-size: 13px;
	opacity: .85;
}
.nv-footer-bottom a { color: #fff; text-decoration: none; }
