/* Global Resets and Base Styles */
:root {
	--primary-color: #007bff; /* Bleu primaire */
	--primary-hover-color: #0056b3;
	--secondary-color: #6c757d; /* Gris secondaire */
	--light-bg-color: #f8f9fa; /* Fond clair */
	--dark-text-color: #343a40; /* Texte sombre */
	--light-text-color: #f8f9fa; /* Texte clair */
	--border-color: #dee2e6;
	--link-color: #007bff;
	--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
	scroll-behavior: smooth;
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font-family-sans-serif);
	line-height: 1.6;
	color: var(--dark-text-color);
	background-color: #fff;
	font-size: 16px;
}

/* Container */
.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}
.container-flex {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Typography */
h1, h2, h3, h4 {
	color: var(--dark-text-color);
	margin-top: 0;
	margin-bottom: 0.8rem;
	line-height: 1.3;
}
h1 { font-size: 2.2rem; font-weight: 600;}
h2 { font-size: 1.8rem; font-weight: 600;}
h3.section-title {
	font-size: 1.6rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 10px;
}
h3.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--primary-color);
}

h4 { font-size: 1.2rem; font-weight: 500; }

p { margin-bottom: 1rem; }
a {
	color: var(--link-color);
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}
a:hover {
	color: var(--primary-hover-color);
	text-decoration: underline;
}

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

ul {
	padding-left: 20px;
}

/* Header */
header {
	background-color: #fff;
	padding: 1rem 0;
	box-shadow: var(--box-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

header .logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}
header .logo-img {
	height: 40px;
	margin-right: 10px;
}
header h1 {
	font-size: 1.5rem;
	margin: 0;
	color: var(--dark-text-color);
}

header nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
}
header nav ul li {
	margin-left: 20px;
}
header nav ul li a {
	color: var(--dark-text-color);
	font-weight: 500;
	text-decoration: none;
}
header nav ul li a:hover,
header nav ul li a.active-nav-link { /* Classe pour lien actif de la page courante */
	color: var(--primary-color);
}

/* Buttons */
.cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--light-text-color) !important; /* Important pour surcharger la couleur de lien standard */
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.2s ease-in-out, transform 0.2s ease;
	border: none;
	cursor: pointer;
}
.cta-button:hover {
	background-color: var(--primary-hover-color);
	text-decoration: none; /* S'assurer qu'il n'y a pas de soulignement au survol */
	transform: translateY(-2px);
}
.nav-cta {
	padding: 8px 18px;
	font-size: 0.9rem;
}
.hero-cta {
	font-size: 1.1rem;
	padding: 15px 30px;
}

/* Hero Section */
#hero {
	background-color: var(--light-bg-color);
	color: var(--dark-text-color);
	padding: 60px 0;
	text-align: center;
}
#hero h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}
#hero .subtitle {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto 30px auto;
	line-height: 1.7;
}
#hero .small-text {
	font-size: 0.9rem;
	margin-top: 15px;
	color: var(--secondary-color);
}

/* Sections */
.section-padding {
	padding: 50px 0;
}
.bg-light {
	background-color: var(--light-bg-color);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

/* Features Grid */
.features-grid, .steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.feature-item, .step-item {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.07);
	border: 1px solid var(--border-color);
}
.feature-item .feature-icon {
	width: 50px;
	height: 50px;
	margin-bottom: 15px;
}
.feature-item h4, .step-item h4 {
	margin-bottom: 10px;
}

/* Security Section */
#security .security-content {
	display: flex;
	align-items: center;
	gap: 30px;
}
#security .security-badge {
	width: 120px;
	height: auto;
	flex-shrink: 0;
}
#security ul li {
	margin-bottom: 0.5rem;
}

/* How it Works - Steps */
.step-item {
	text-align: left;
	position: relative;
	padding-left: 50px; /* Espace pour le numéro */
}
.step-item span { /* Style du numéro */
	position: absolute;
	left: 10px; /* Positionnement du numéro */
	top: 20px; /* Ajuster pour alignement vertical */
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--primary-color);
	line-height: 1;
}

/* Advanced Users Section */
#advanced ul {
	list-style: disc;
	padding-left: 20px;
}
#advanced ul ul {
	list-style: circle;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
#advanced ul li {
	margin-bottom: 0.7rem;
}

/* Call to Action Final */
#cta-final {
	text-align: center;
}
#cta-final p {
	max-width: 600px;
	margin: 0 auto 30px auto;
}

/* Footer */
footer {
	background-color: var(--dark-text-color);
	color: var(--light-text-color);
	padding: 1.5rem 0;
	font-size: 0.9rem;
}
footer .container-flex {
	flex-wrap: wrap;
	gap: 10px;
}
footer nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
}
footer nav ul li {
	margin-left: 15px;
}
footer nav ul li:first-child {
	margin-left: 0;
}
footer nav ul li a {
	color: #adb5bd;
	text-decoration: none;
}
footer nav ul li a:hover {
	color: var(--light-text-color);
	text-decoration: underline;
}
footer p {
	margin: 0;
}

/* Language Selector */
.language-selector {
	margin-left: 15px; /* Ajusté pour moins d'espace */
	display: flex;
	align-items: center;
}
.language-selector .lang-link,
.language-selector-footer .lang-link {
	color: var(--dark-text-color); /* Pour le header */
	text-decoration: none;
	padding: 0 4px; /* Ajusté pour moins d'espace */
	font-weight: 500;
	font-size: 0.85rem; /* Légèrement plus petit */
}
.language-selector-footer .lang-link {
	color: #adb5bd; /* Pour le footer */
}

.language-selector .lang-link.active,
.language-selector-footer .lang-link.active {
	font-weight: bold;
	color: var(--primary-color) !important; /* Pour s'assurer qu'il surclasse la couleur de base */
}
.language-selector .lang-link:hover,
.language-selector-footer .lang-link:hover {
	text-decoration: underline;
}

/* Utility Classes */
.center-text { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Contact Page Specifics */
.contact-info {
	margin-bottom: 30px;
}
.contact-info h3 {
	margin-bottom: 10px;
}
.email-link {
	font-weight: bold;
	font-size: 1.1rem;
}
.contact-form div {
	margin-bottom: 15px;
}
.contact-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-family: var(--font-family-sans-serif);
	font-size: 1rem;
}
.contact-form textarea {
	resize: vertical;
}
#formMessage {
	font-weight: bold;
}


/* Responsive Design */
@media (max-width: 992px) { /* Breakpoint où le sélecteur de langue peut devenir un problème */
	header .container-flex {
		flex-wrap: wrap;
	}
	header nav {
		order: 3; /* Nav vient après logo et sélecteur de langue */
		width: 100%;
		margin-top: 10px;
	}
	header nav ul {
		justify-content: center; /* Centre la nav quand elle est en dessous */
	}
	.language-selector {
		order: 2; /* Sélecteur après le logo */
		margin-left: auto; /* Pousse à droite si de la place */
	}
}

@media (max-width: 768px) {
	header .container-flex {
		flex-direction: column;
		align-items: center; /* Centre tout en colonne */
	}
	header .logo-link {
		margin-bottom: 10px;
	}
	header nav {
		order: 2; /* Nav vient après le logo */
		margin-top: 0;
	}
	.language-selector {
		order: 3; /* Sélecteur après la nav */
		margin-left: 0; /* Reset margin pour centrage */
		margin-top: 10px;
	}
	#hero h2 {
		font-size: 2rem;
	}
	#hero .subtitle {
		font-size: 1rem;
	}
	#security .security-content {
		flex-direction: column;
		text-align: center;
	}
	#security .security-badge {
		margin-bottom: 20px;
	}
	footer .container-flex {
		flex-direction: column;
		text-align: center;
	}
	footer nav ul {
		justify-content: center;
		margin-top: 10px;
	}
	footer nav ul li {
		margin: 5px 10px;
	}
	.language-selector-footer {
		margin-top: 10px;
		margin-left: 0; /* Centre aussi dans le footer */
	}
}

@media (max-width: 480px) {
	header nav ul {
		flex-direction: column;
	}
	header nav ul li {
		margin: 8px 0;
	}
	.nav-cta {
		display: block;
		text-align: center;
		margin-top: 10px;
		width: auto; /* Reset width de .cta-button */
	}
	.cta-button { /* S'applique à tous les cta-button sur mobile, y compris le nav-cta s'il n'est pas surchargé */
		width: 90%; /* Ajuste pour ne pas toucher les bords */
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		padding: 12px 15px;
	}
	.hero-cta {
		font-size: 1rem;
		padding: 15px 20px;
	}
}