/* =========================
   MENU BURGER
========================= */
.menu-toggle-checkbox {
	display: none;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: #e6edf3;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Animation croix */
.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(2) {
	opacity: 0;
}

.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   NAVIGATION
========================= */

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1em;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo */
.logo-title {
	display: flex;
	align-items: center;
}

.logo-title img {
	height: 60px;
	width: auto;
	display: block;
}

/* Navigation */
nav {
	display: flex;
	gap: 2em;
	align-items: center;
}

nav a {
	color: #e6edf3;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

nav a:hover {
	color: #4f8cff;
}

/* =========================
   HERO
========================= */
.hero {
	background: radial-gradient(circle at top, #1f2a48, #0d1117);
	text-align: center;
	padding: 3em 2em;
}

.hero h2 {
	font-size: 2.7em;
	margin-bottom: 0.5em;
	line-height: 1.3;
}

.hero p {
	max-width: 650px;
	margin: auto;
	margin-bottom: 2em;
	color: #aaa;
}

.hero-cta {
	background: linear-gradient(135deg, #4f8cff, #7a5cff);
	padding: 1em 2em;
	border-radius: 8px;
	font-weight: 600;
	display: inline-block;
	text-decoration: none;
	color: white;
}

.hero-cta:hover {
	transform: translateY(-5px);
	box-shadow: 0 0 25px rgba(79,140,255,0.3);
}

/* =========================
   SECTIONS
========================= */
main {
	max-width: 1100px;
	margin: auto;
	padding: 2em;
}

.section {
	margin-bottom: 4em;
	text-align: center;
}

.problem {
	background: #161b22;
	padding: 2em;
	border-radius: 12px;
}

.problem ul { 
	margin-top: 1em; 
	text-align: left; 
	display: inline-block; 
}

/* =========================
   TRUST
========================= */
.trust-stats {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	margin-top: 2em;
}

.stat-number {
	font-size: 2em;
	font-weight: bold;
	color: #4f8cff;
}

/* =========================
   BOOK CARD
========================= */
.book-card {
	background: #161b22;
	border-radius: 12px;
	margin-bottom: 2em;
	display: flex;
	border: 1px solid #222;
	overflow: hidden;
	transition: 0.3s;
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0 25px rgba(79,140,255,0.3);
}

/* LEFT */
.book-left {
	width: 320px;
	padding: 2em 1.5em;
	text-align: center;
	border-right: 2px solid #222;
}

.book-left h2 {
	line-height: 1.3;
	margin-bottom: 10px;
}

.book-left img {
	width: 100%;
	margin: 1em 0;
	padding-right: 12%;
	width: 130%;
}

/* RIGHT */
.book-content {
	flex: 1;
	padding: 2em;
	text-align: left;
}

/* =========================
   CTA
========================= */
.cta-group {
	display: flex;
	gap: 1em;
	justify-content: center;
	margin-top: 2em;
	flex-wrap: wrap;
}

.cta-group > div {
	text-align: center;
}

.badge-group {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.badge {
	background: #1f2a48;
	padding: 0.4em 1em;
	border-radius: 6px;
	color: #4f8cff;
}

/* DETAILS */
.details {
	background: #1f2a48;
	padding: 0.4em 1em;
	border-radius: 6px;
	display: inline-block;
	color: #4f8cff;
	margin-top: 10px;
}

.details a {
	text-decoration: none;
	color: inherit;
}

.details:hover {
	transform: translateY(-3px);
	/* box-shadow: 0 0 25px rgba(79,140,255,0.3); */
}

/* PRICE */
.price {
	font-size: 1.6em;
	color: #4f8cff;
	font-weight: bold;
}

.type {
	font-size: 1em;
	color: #4f8cff;
	font-style: italic;
}

/* CTA BUTTON */
.cta-primary {
	background: linear-gradient(135deg, #4f8cff, #7a5cff);
	color: white;
	padding: 1em 1.8em;
	border-radius: 8px;
	display: inline-block;
	margin-top: 1.2em;
	font-weight: 600;
	box-shadow: 0 0 15px rgba(79,140,255,0.5);
	transition: 0.3s;
	text-decoration: none; 
	color: inherit; 
}

.cta-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 0 25px rgba(79,140,255,0.3);
}

/* =========================
   REVIEWS
========================= */
.book-reviews {
	margin-top: 1.5em;
	border-top: 2px solid #222;
	padding-top: 2em;
}

.book-review {
	background: #0d1117;
	padding: 1em;
	border-radius: 8px;
	margin-bottom: 0.8em;
	border: 1px solid #222;
}

.book-review p {
	margin-top: 5px;
	color: #aaa;
	font-style: italic;
}

/* =========================
   FINAL CTA
========================= */
.final-cta {
	background: radial-gradient(circle, #1f2a48, #0d1117);
	padding: 4em 2em;
	text-align: center;
}

footer {
	border-top: 1px solid #222;
	text-align: center;
	padding: 2em;
	color: #777;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

	.menu-toggle {
		display: flex;
		position: relative;
		z-index: 1100;
	}

	/* MENU LATÉRAL */
	nav {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 200px;

		background: #0d1117;
		border-right: 1px solid rgba(79, 140, 255, 0.2);

		display: flex;
		flex-direction: column;
		padding-top: 70px;

		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 1000;
	}

	/* MENU OUVERT */
	.menu-toggle-checkbox:checked ~ nav {
		transform: translateX(0);
	}
	
	/* LIENS */
	nav a {
		padding: 1.2em;
		border-bottom: 1px solid rgba(79, 140, 255, 0.1);
		text-align: left;
	}

	.menu-toggle-checkbox:checked ~ .overlay {
		opacity: 1;
		pointer-events: auto;
	}

	/* Logo à droite */
	.logo-title {
		margin-left: auto;
	}

	.logo-title img {
		height: 50px; /* même taille que burger */
	}

	/* BOOK */
	.book-card {
		flex-direction: column;
	}

	.book-left,
	.book-content {
		display: contents;
	}

	.book-left img {
		order: 1;
	}

	.badge-group {
		order: 2;
		justify-content: center;
		margin-bottom: 20px;
	}

	.book-left h2,
	.book-left p {
		order: 3;
	}

	.details {
		order: 4;
		margin: auto;
		margin-top: 1em;
	}

	.cta-group {
		order: 5;
	}

	.cta-primary {
		order: 6;
		margin: auto;
		margin-top: 1em;
	}

	.book-reviews {
		order: 7;
		margin-top: 2em;
		padding: 2em 1em 2em 1em;
	}
}