/*
Theme Name: Noveco
Theme URI: https://noveco.fr
Author: Noveco
Author URI: https://noveco.fr
Description: Thème WordPress WebApp pour Noveco avec authentification. Menu burger exclusif, design moderne aux couleurs de la charte Noveco (vert principal #8CC63F/#4E7A1E, bleu #29ABE2, orange #F36F21, magenta #EC008C), optimisé pour le plugin Lirius YearBook.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noveco-theme
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, translation-ready

Noveco Theme - WebApp, Copyright 2026 Noveco
Charte graphique Noveco: Vert principal #8CC63F (foncé #4E7A1E), Bleu #29ABE2, Orange #F36F21, Magenta #EC008C
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
0.0 - Color Variables
1.0 - Reset & Base
2.0 - Typography
3.0 - Layout & Grid
4.0 - Header
5.0 - Burger Menu
6.0 - Mobile Menu Overlay
7.0 - Footer
8.0 - Hero Section
9.0 - Components
10.0 - Utilities
11.0 - Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
0.0 - Color Variables (Charte Noveco)
--------------------------------------------------------------*/
:root {
	/* Couleur PRINCIPALE = vert Noveco.
	   NB : ces variables gardent le nom "blue" pour compatibilité avec les
	   règles existantes du thème, mais portent désormais le VERT (dominante du logo). */
	--noveco-blue: #4E7A1E;           /* Vert foncé - couleur principale (texte/boutons) */
	--noveco-blue-dark: #3C6317;      /* Vert très foncé - hover */
	--noveco-blue-light: #EEF7E0;     /* Vert très clair - backgrounds */

	/* Vert vif de marque (accents, surbrillances, état actif) */
	--noveco-green: #8CC63F;
	--noveco-green-dark: #6FA02D;     /* hover */
	--noveco-green-light: #F4FAEA;    /* backgrounds */

	/* Bleu Noveco (accent secondaire - le vrai bleu du logo) */
	--noveco-accent-blue: #29ABE2;
	--noveco-accent-blue-dark: #1B8FC0;
	--noveco-accent-blue-light: #E3F4FB;

	/* Orange (alertes / CTA) */
	--noveco-orange: #F36F21;
	--noveco-orange-dark: #C85A14;
	--noveco-orange-light: #FDEEE3;

	/* Magenta (états spéciaux) */
	--noveco-rose: #EC008C;
	--noveco-rose-dark: #B8006D;
	--noveco-rose-light: #FDE3F1;

	/* Couleurs neutres */
	--noveco-gray: #666666;
	--noveco-gray-light: #E8E8E8;
	--noveco-white: #FFFFFF;
	--noveco-black: #1A1A1A;
}

/*--------------------------------------------------------------
1.0 - Reset & Base
--------------------------------------------------------------*/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

a {
	color: var(--noveco-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--noveco-blue-dark);
}

/*--------------------------------------------------------------
2.0 - Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: #1a1a1a;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.75rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.25rem;
}

p {
	margin-bottom: 1rem;
}

/*--------------------------------------------------------------
3.0 - Layout & Grid
--------------------------------------------------------------*/
.noveco-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.noveco-container-wide {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

.noveco-container-full {
	width: 100%;
	padding: 0 1rem;
}

/*--------------------------------------------------------------
4.0 - Header
--------------------------------------------------------------*/
.noveco-header {
	background: var(--noveco-white);
	border-bottom: 1px solid var(--noveco-gray-light);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(78, 122, 30, 0.08);
}

.noveco-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.noveco-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--noveco-blue);
}

.noveco-logo a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: inherit;
}

.noveco-logo img {
	max-height: 48px;
	width: auto;
}

.noveco-header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.noveco-user-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--noveco-blue);
	display: none; /* Hidden on mobile */
}

/*--------------------------------------------------------------
5.0 - Burger Menu
--------------------------------------------------------------*/
.noveco-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 1100;
}

.noveco-menu-toggle .menu-bar {
	display: block;
	width: 28px;
	height: 3px;
	background: var(--noveco-blue);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.noveco-menu-toggle:hover .menu-bar {
	background: var(--noveco-blue-dark);
}

/* Burger animation when active */
.noveco-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.noveco-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
	opacity: 0;
}

.noveco-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
	transform: rotate(-45deg) translate(8px, -8px);
}

/*--------------------------------------------------------------
6.0 - Mobile Menu Overlay
--------------------------------------------------------------*/
.noveco-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1050;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.noveco-mobile-menu.is-active {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s 0s, opacity 0.3s ease;
}

.noveco-menu-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.noveco-menu-content {
	position: absolute;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: var(--noveco-white);
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.noveco-mobile-menu.is-active .noveco-menu-content {
	transform: translateX(0);
}

.noveco-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 2px solid var(--noveco-gray-light);
	background: linear-gradient(135deg, var(--noveco-blue-light) 0%, var(--noveco-green-light) 100%);
}

.noveco-menu-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--noveco-blue);
}

.noveco-menu-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--noveco-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}

.noveco-menu-close:hover {
	color: var(--noveco-blue-dark);
}

/* Menu Items */
.noveco-main-nav {
	list-style: none;
	padding: 1rem 0;
	flex: 1;
}

.noveco-main-nav li {
	border-bottom: 1px solid var(--noveco-gray-light);
}

.noveco-main-nav a {
	display: flex;
	align-items: center;
	padding: 1rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--noveco-black);
	transition: all 0.2s;
}

.noveco-main-nav a:hover,
.noveco-main-nav a:focus {
	background: var(--noveco-blue-light);
	color: var(--noveco-blue);
	padding-left: 2rem;
}

.noveco-main-nav .current-menu-item a {
	background: var(--noveco-green-light);
	color: var(--noveco-green);
	border-left: 4px solid var(--noveco-green);
	padding-left: calc(1.5rem - 4px);
}

/* Menu Footer */
.noveco-menu-footer {
	padding: 1.5rem;
	border-top: 2px solid var(--noveco-gray-light);
	background: var(--noveco-blue-light);
}

.noveco-logout-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 1rem;
	background: var(--noveco-orange);
	color: var(--noveco-white);
	border-radius: 12px;
	font-weight: 600;
	text-align: center;
	justify-content: center;
	transition: all 0.2s;
}

.noveco-logout-btn:hover {
	background: var(--noveco-orange-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(212, 129, 73, 0.3);
	color: var(--noveco-white);
}

/*--------------------------------------------------------------
7.0 - Footer
--------------------------------------------------------------*/
.noveco-footer {
	background: linear-gradient(135deg, var(--noveco-blue) 0%, var(--noveco-blue-dark) 100%);
	color: var(--noveco-white);
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

.noveco-footer a {
	color: var(--noveco-blue-light);
	transition: color 0.2s;
}

.noveco-footer a:hover {
	color: var(--noveco-white);
}

.noveco-footer-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.noveco-footer-section h3 {
	color: var(--noveco-white);
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.noveco-footer-section ul {
	list-style: none;
	padding: 0;
}

.noveco-footer-section ul li {
	margin-bottom: 0.5rem;
}

.noveco-footer-bottom {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
	font-size: 0.875rem;
	color: var(--noveco-blue-light);
}

/*--------------------------------------------------------------
8.0 - Hero Section
--------------------------------------------------------------*/
.noveco-hero {
	background: linear-gradient(135deg, var(--noveco-blue-light) 0%, var(--noveco-green-light) 100%);
	padding: 3rem 0;
	position: relative;
	overflow: hidden;
}

.noveco-hero-content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.noveco-hero h1 {
	font-size: 2rem;
	color: var(--noveco-blue);
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.noveco-hero p {
	font-size: 1.125rem;
	color: var(--noveco-gray);
	margin-bottom: 2rem;
}

.noveco-hero-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Hero Pattern Background */
.noveco-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(78, 122, 30, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	z-index: 1;
}

.noveco-hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(157, 190, 82, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	z-index: 1;
}

/*--------------------------------------------------------------
9.0 - Components
--------------------------------------------------------------*/

/* Buttons */
.noveco-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 24px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	gap: 0.5rem;
}

.noveco-btn-primary {
	background: var(--noveco-blue);
	color: var(--noveco-white);
}

.noveco-btn-primary:hover {
	background: var(--noveco-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(78, 122, 30, 0.3);
	color: var(--noveco-white);
}

.noveco-btn-secondary {
	background: transparent;
	color: var(--noveco-green);
	border: 2px solid var(--noveco-green);
}

.noveco-btn-secondary:hover {
	background: var(--noveco-green);
	color: var(--noveco-white);
	transform: translateY(-2px);
}

/* Cards */
.noveco-card {
	background: var(--noveco-white);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.noveco-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(78, 122, 30, 0.2);
}

/* Stats */
.noveco-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	padding: 2rem 0;
}

.noveco-stat {
	text-align: center;
	background: var(--noveco-white);
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.noveco-stat-number {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--noveco-blue);
	display: block;
	margin-bottom: 0.5rem;
}

.noveco-stat-label {
	font-size: 0.875rem;
	color: var(--noveco-gray);
}

/*--------------------------------------------------------------
10.0 - Utilities
--------------------------------------------------------------*/
.text-center {
	text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/*--------------------------------------------------------------
11.0 - Responsive
--------------------------------------------------------------*/

/* Tablet (768px+) */
@media (min-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.noveco-hero {
		padding: 4rem 0;
	}

	.noveco-hero h1 {
		font-size: 3rem;
	}

	.noveco-user-name {
		display: block; /* Show user name on tablet+ */
	}

	.noveco-stats {
		grid-template-columns: repeat(4, 1fr);
	}

	.noveco-stat-number {
		font-size: 3rem;
	}

	.noveco-stat-label {
		font-size: 1rem;
	}

	.noveco-footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Menu content wider on larger screens */
	.noveco-menu-content {
		max-width: 380px;
	}
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
	.noveco-container {
		padding: 0 2rem;
	}

	.noveco-hero::before {
		width: 600px;
		height: 600px;
	}

	.noveco-hero::after {
		width: 500px;
		height: 500px;
	}

	.noveco-footer-content {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*--------------------------------------------------------------
11.0 - Dashboard (WebApp)
--------------------------------------------------------------*/
.noveco-dashboard {
	padding: 2rem 0 4rem;
	min-height: calc(100vh - 200px);
}

.noveco-dashboard-welcome {
	text-align: left;
	margin-bottom: 2rem;
	padding: 1rem 0;
}

.noveco-dashboard-welcome h1 {
	font-size: 1.75rem;
	color: var(--noveco-dark);
	margin: 0;
	font-weight: 600;
}

.noveco-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.noveco-dashboard-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--noveco-blue-light) 0%, var(--noveco-white) 100%);
	border-radius: 16px;
	padding: 2rem 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	min-height: 160px;
	position: relative;
	overflow: hidden;
}

.noveco-dashboard-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(78, 122, 30, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.noveco-dashboard-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(78, 122, 30, 0.25);
}

.noveco-dashboard-card:hover::before {
	top: -30%;
	right: -10%;
	width: 200px;
	height: 200px;
}

.noveco-dashboard-icon {
	color: var(--noveco-blue);
	margin-bottom: 0.75rem;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
}

.noveco-dashboard-card:hover .noveco-dashboard-icon {
	transform: scale(1.1) rotate(5deg);
}

.noveco-dashboard-card h2 {
	font-size: 1.125rem;
	color: var(--noveco-dark);
	margin: 0;
	font-weight: 600;
	position: relative;
	z-index: 2;
}

/* Specific colors for each card */
.noveco-dashboard-card:nth-child(1) {
	background: linear-gradient(135deg, var(--noveco-blue-light) 0%, var(--noveco-white) 100%);
}

.noveco-dashboard-card:nth-child(1) .noveco-dashboard-icon {
	color: var(--noveco-blue);
}

.noveco-dashboard-card:nth-child(2) {
	background: linear-gradient(135deg, var(--noveco-green-light) 0%, var(--noveco-white) 100%);
}

.noveco-dashboard-card:nth-child(2) .noveco-dashboard-icon {
	color: var(--noveco-green);
}

.noveco-dashboard-card:nth-child(3) {
	background: linear-gradient(135deg, #FFE8E5 0%, var(--noveco-white) 100%);
}

.noveco-dashboard-card:nth-child(3) .noveco-dashboard-icon {
	color: var(--noveco-orange);
}

.noveco-dashboard-card:nth-child(4) {
	background: linear-gradient(135deg, #FFE8F5 0%, var(--noveco-white) 100%);
}

.noveco-dashboard-card:nth-child(4) .noveco-dashboard-icon {
	color: var(--noveco-rose);
}

/* Dashboard Notifications */
.noveco-dashboard-notifications {
	background: var(--noveco-white);
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-top: 2rem;
	position: relative;
	border-left: 4px solid var(--noveco-orange);
}

.noveco-notification-badge {
	position: absolute;
	top: -10px;
	right: 1rem;
	background: var(--noveco-orange);
	color: var(--noveco-white);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.noveco-dashboard-notifications p {
	margin: 0;
	color: var(--noveco-dark);
	font-size: 0.9375rem;
}

/* Tablet adjustments */
@media (min-width: 768px) {
	.noveco-dashboard-welcome h1 {
		font-size: 2.25rem;
	}

	.noveco-dashboard-grid {
		gap: 1.5rem;
	}

	.noveco-dashboard-card {
		padding: 2.5rem 1.5rem;
		min-height: 180px;
	}

	.noveco-dashboard-card h2 {
		font-size: 1.25rem;
	}
}

/*--------------------------------------------------------------
12.0 - Bottom Navigation Bar (WebApp)
--------------------------------------------------------------*/
.noveco-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--noveco-white);
	border-top: 1px solid var(--noveco-blue-light);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.5rem 0;
	z-index: 1000;
	height: 70px;
}

.noveco-bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	text-decoration: none;
	color: var(--noveco-gray);
	transition: all 0.2s ease;
	padding: 0.5rem;
	position: relative;
}

.noveco-bottom-nav-item svg {
	width: 24px;
	height: 24px;
	margin-bottom: 0.25rem;
	transition: all 0.2s ease;
}

.noveco-bottom-nav-item span {
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
}

/* Active state */
.noveco-bottom-nav-item.is-active {
	color: var(--noveco-blue);
}

.noveco-bottom-nav-item.is-active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	background: var(--noveco-blue);
	border-radius: 3px 3px 0 0;
}

/* Hover state */
.noveco-bottom-nav-item:hover {
	color: var(--noveco-blue);
	transform: scale(1.05);
}

.noveco-bottom-nav-item:hover svg {
	transform: translateY(-2px);
}

/* Add bottom padding to body when bottom nav is visible */
body.logged-in .noveco-main {
	padding-bottom: 90px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
	.noveco-bottom-nav {
		height: 75px;
		padding: 0.75rem 0;
	}

	.noveco-bottom-nav-item svg {
		width: 28px;
		height: 28px;
	}

	.noveco-bottom-nav-item span {
		font-size: 0.875rem;
	}
}

/* Prevent body scroll when menu is open */
body.menu-open {
	overflow: hidden;
}
