/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

/* Style de base et variables */
:root {
	--color-primary: #1e3a8a; /* Bleu foncé pour le titre et les accents */
	--color-secondary: #3b82f6; /* Bleu plus clair pour les liens et les titres de section */
	--color-tertiary: #f59e0b; /* Jaune-orange pour les boutons et les mises en évidence */
	--color-background-light: #f1f5f9; /* Arrière-plan clair pour les sections */
	--color-background-dark: #e2e8f0; /* Arrière-plan plus foncé pour les sections alternées */
	--color-text-dark: #1f2937; /* Texte sombre pour les titres et le corps */
	--color-text-light: #4b5563; /* Texte plus clair */
	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Playfair Display', serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	font-family: var(--font-primary);
	line-height: 1.6;
	background-color: var(--color-background-light);
	color: var(--color-text-light);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.header {
	background-image: linear-gradient(135deg, var(--color-primary) 0%, #172a51 100%);
	color: #fff;
	padding: 60px 0;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 10;
}

.header-title {
	font-family: var(--font-secondary);
	font-size: 3em;
	margin-bottom: 5px;
}

.header-subtitle {
	font-size: 1.2em;
	opacity: 0.9;
	margin-bottom: 25px;
}

.header-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}

.header-nav a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9em;
	padding: 8px 15px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-nav a:hover {
	background-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

/* Sections */
.section {
	padding: 80px 0;
}

h2 {
	font-family: var(--font-secondary);
	font-size: 2.5em;
	text-align: center;
	margin-bottom: 50px;
	color: var(--color-text-dark);
}

h3 {
	font-family: var(--font-secondary);
	font-size: 1.8em;
	margin-top: 0;
	margin-bottom: 15px;
	color: var(--color-primary);
}

p,
li {
	font-size: 1.1em;
	margin-bottom: 20px;
}

strong {
	color: var(--color-text-dark);
}

.content-block {
	background-color: #fff;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-intro .content-block {
	border-left: 5px solid var(--color-tertiary);
}

.section-principles {
	background-color: var(--color-background-dark);
}

.principles-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (max-width: 768px) {
	.header {
		padding: 35px 0;
	}

	.header-title {
		font-size: 2.4rem;
	}
	.header-subtitle {
		font-size: 20px;
	}
	h2 {
		font-size: 28px;
	}
	h3 {
		font-size: 20px;
	}
	.content-block,
	.contact-block {
		padding: 20px 15px;
	}
	.section {
		padding: 40px 0;
	}
}
@media (max-width: 620px) {
	.header-nav {
		flex-direction: column;
	}
}

@media (min-width: 768px) {
	.principles-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

.section-minimum .content-block {
	border-right: 5px solid var(--color-secondary);
}

.section-benefits {
	background-color: var(--color-background-light);
}

.benefits-block {
	text-align: center;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.benefit-item {
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	border-bottom: 4px solid var(--color-tertiary);
	transition: transform 0.3s ease;
}

.benefit-item:hover {
	transform: translateY(-5px);
}

.section-how-to .content-block {
	border-left: 5px solid var(--color-primary);
}

ol {
	list-style: none;
	padding-left: 0;
}

ol li {
	background-color: var(--color-background-light);
	padding: 20px 25px;
	margin-bottom: 15px;
	border-radius: 8px;
	border-left: 4px solid var(--color-secondary);
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-comparison {
	background-color: var(--color-background-dark);
}

.comparison-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.comparison-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.comparison-item {
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	border-top: 5px solid var(--color-primary);
}

.section-reviews .content-block {
	border-right: 5px solid var(--color-tertiary);
}

.reviews-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.reviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.review-item {
	background-color: var(--color-background-light);
	padding: 30px;
	border-radius: 8px;
}

.section-risks .content-block {
	border-left: 5px solid var(--color-secondary);
}

.section-faq .content-block {
	border-right: 5px solid var(--color-primary);
}

.faq-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.faq-item {
	background-color: var(--color-background-dark);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
	font-size: 1.2em;
	margin-bottom: 10px;
	color: var(--color-text-dark);
}

/* Formulaire de contact */
.section-contact {
	background-color: var(--color-background-dark);
}

.contact-block {
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-bottom: 5px solid var(--color-tertiary);
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	max-width: 600px;
	margin: 0 auto;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	color: var(--color-text-dark);
}

.form-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1em;
}

.submit-button {
	background-color: var(--color-tertiary);
	color: #fff;
	border: none;
	padding: 15px 30px;
	font-size: 1.1em;
	font-weight: 700;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
	background-color: #d8890e;
	transform: translateY(-2px);
}

/* Tableau responsif */
.table-container {
	overflow-x: auto;
	margin-top: 30px;
	margin-bottom: 20px;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 500px;
}

th,
td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

th {
	background-color: var(--color-secondary);
	color: #fff;
	font-weight: 700;
}

tbody tr:nth-child(odd) {
	background-color: var(--color-background-light);
}

tbody tr:nth-child(even) {
	background-color: #fff;
}

/* Adaptation du tableau sur mobile */
@media (max-width: 768px) {
	table,
	thead,
	tbody,
	th,
	td,
	tr {
		display: block;
	}

	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	tr {
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 8px;
	}

	td {
		border: none;
		position: relative;
		padding-left: 50%;
		text-align: right;
	}

	td:before {
		content: attr(data-label);
		position: absolute;
		left: 10px;
		width: 45%;
		text-align: left;
		font-weight: 700;
		color: var(--color-primary);
	}
}

/* Footer */
.footer {
	text-align: center;
	padding: 25px 0;
	background-color: var(--color-text-dark);
	color: #fff;
	font-size: 0.9em;
}

.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #ffcc00;
	color: #000;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	display: none; /* по умолчанию скрыта */
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: opacity 0.3s ease;
}
.back-to-top.show {
	display: flex;
	opacity: 1;
}
