/* www/css/styles.css */
:root {
	--primary-color: #E86C14;      /* Orange du logo */
	--secondary-color: #8B4513;    /* Marron */
	--accent-color: #90B44B;       /* Vert */
	--text-color: #333333;
	--background-light: #F5F5F5;
	--spacing-unit: 1rem;
}

/* Reset et base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
}

/* Header et Navigation */
.main-header {
	background-color: white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.top-nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

/* Hero Section */
.hero {
	background-color: var(--background-light);
	padding: 4rem 1rem;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

/* Grilles et Cards */
.stats-grid, .category-grid, .benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.category-card {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}

.category-card:hover {
	transform: translateY(-5px);
}

/* Boutons */
.btn {
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

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

.btn-secondary {
	background-color: var(--secondary-color);
	color: white;
}

/* Formulaires */
.newsletter-form {
	max-width: 500px;
	margin: 0 auto;
	padding: 2rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

input, select {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
	.nav-links {
		display: none;
	}
	
	.stats-grid, .category-grid, .benefits-grid {
		grid-template-columns: 1fr;
	}
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hero, .category-card {
	animation: fadeIn 0.5s ease-in;
}





/* Ajout des styles manquants */

/* Header spécifique */
.header-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.main-nav ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	align-items: center;
}

.main-nav a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease;
}

.main-nav a:hover {
	color: var(--primary-color);
}

/* Sections communes */
section {
	padding: 4rem 2rem;
	margin: 0 auto;
}

section h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: var(--secondary-color);
}

/* Hero amélioré */
.hero {
	background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
				url('/images/hero-bg.jpg') center/cover;
	padding: 6rem 2rem;
}

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

.hero .subtitle {
	font-size: 1.5rem;
	color: var(--secondary-color);
	margin-bottom: 3rem;
}

.cta-buttons {
	display: flex;
	gap: 2rem;
	justify-content: center;
	margin-top: 3rem;
}

/* Stats améliorés */
.stat-item {
	text-align: center;
	padding: 2rem;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-item strong {
	display: block;
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.stat-item span {
	font-size: 1.1rem;
	color: var(--secondary-color);
}

/* Cards améliorées */
.category-card {
	text-align: center;
	background: white;
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card h3 {
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.category-card p {
	color: var(--text-color);
	line-height: 1.6;
}

/* Footer amélioré */
.main-footer {
	background-color: var(--secondary-color);
	color: white;
	padding: 4rem 2rem 2rem;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
}

.footer-section h3 {
	color: var(--accent-color);
	margin-bottom: 1.5rem;
	font-size: 1.2rem;
}

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

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

.footer-section a {
	color: white;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-section a:hover {
	color: var(--accent-color);
}

.social-links {
	display: flex;
	gap: 1rem;
}

.footer-bottom {
	text-align: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
}

/* Formulaire amélioré */
.newsletter {
	background-color: var(--background-light);
	border-radius: 12px;
	margin: 4rem auto;
	max-width: 800px;
}

.newsletter h2 {
	margin-bottom: 2rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--secondary-color);
	font-weight: 500;
}

.form-group input,
.form-group select {
	border: 2px solid #ddd;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
	border-color: var(--primary-color);
	outline: none;
}

/* Responsive amélioré */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		text-align: center;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 1rem;
		margin-top: 1rem;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero .subtitle {
		font-size: 1.2rem;
	}

	.cta-buttons {
		flex-direction: column;
		gap: 1rem;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.social-links {
		justify-content: center;
	}
}






/***** SUITE *****/

/* Styles améliorés pour la navigation principale */

.main-nav {
	margin-left: auto;
}

.main-nav ul {
	display: flex;
	gap: 1rem;
	list-style: none;
	align-items: center;
	margin: 0;
	padding: 0;
}

.main-nav li {
	position: relative;
}

.main-nav a {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.main-nav a:hover {
	color: var(--primary-color);
	background-color: rgba(232, 108, 20, 0.1); /* Version transparente de primary-color */
}

/* Style pour l'élément actif du menu */
.main-nav a.active {
	color: var(--primary-color);
	background-color: rgba(232, 108, 20, 0.1);
}

/* Effet de soulignement au survol */
.main-nav a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background-color: var(--primary-color);
	transition: all 0.3s ease;
}

.main-nav a:hover::after {
	width: 100%;
	left: 0;
}

/* Style spécial pour le bouton "Créer mon espace" */
.main-nav a.btn-primary {
	background-color: var(--primary-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 25px;
	margin-left: 1rem;
}

.main-nav a.btn-primary:hover {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive pour le menu */
@media (max-width: 968px) {
	.main-nav {
		margin: 1rem 0;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0.5rem;
		width: 100%;
	}

	.main-nav li {
		width: 100%;
		text-align: center;
	}

	.main-nav a {
		width: 100%;
		padding: 1rem;
	}

	.main-nav a.btn-primary {
		margin: 1rem 0;
	}

	/* Désactiver l'effet de soulignement sur mobile */
	.main-nav a::after {
		display: none;
	}
}

/* Ajustements pour le header */
.header-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo */
.logo {
	flex-shrink: 0;
}

.logo img {
	height: 60px;
	width: auto;
}

/* Ajouter un bouton burger pour mobile */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

@media (max-width: 968px) {
	.menu-toggle {
		display: block;
	}

	.main-nav {
		display: none;
	}

	.main-nav.active {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
		padding: 1rem;
	}
}



/***** Suite 2 *****/
/* Styles pour le header principal et la navigation */

.main-header {
	background-color: white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.top-nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-container {
	flex-shrink: 0;
}

.logo-container img {
	height: 60px;
	width: auto;
	display: block;
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links li {
	position: relative;
}

.nav-links a {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
	display: inline-block;
	position: relative;
}

.nav-links a:hover {
	color: var(--primary-color);
}

/* Effet de soulignement au survol */
.nav-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 50%;
	background-color: var(--primary-color);
	transition: all 0.3s ease;
}

.nav-links a:hover::after {
	width: 100%;
	left: 0;
}

.nav-links a.btn-primary {
	color: white;
}
/* Menu burger pour mobile */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.top-nav {
		padding: 1rem;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		flex-direction: column;
		gap: 0;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}

	.nav-links.active {
		display: flex;
	}

	.nav-links li {
		width: 100%;
	}

	.nav-links a {
		display: block;
		padding: 1rem;
		text-align: center;
		border-bottom: 1px solid rgba(0,0,0,0.1);
	}

	.nav-links a::after {
		display: none;
	}

	.logo-container img {
		height: 50px;
	}
}


/***** menu burger *****/
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	width: 30px;
	height: 30px;
	position: relative;
}

.burger-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--text-color);
	margin: 6px 0;
	transition: all 0.3s ease;
}

/* État actif du menu burger */
.menu-toggle.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .burger-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/**** formulaire consentement ****/
.consent-group {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.consent-group input[type="checkbox"] {
	width: auto;
	margin-top: 0.3rem;
}

.consent-group label {
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--text-color);
}