/* BOOK PAGE */

/* =========================
   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;
}

/* .dropdown { */
	/* position: relative; */
/* } */

/* .dropdown-content { */
	/* display: none; */
	/* position: absolute; */
	/* background: #161b22; */
	/* border: 1px solid rgba(79, 140, 255, 0.2); */
	/* border-radius: 8px; */
	/* top: 100%; */
	/* left: 0; */
	/* min-width: 200px; */
	/* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); */
	/* z-index: 200; */
	/* overflow: hidden; */
/* } */

/* .dropdown:hover .dropdown-content { */
	/* display: flex; */
	/* flex-direction: column; */
/* } */

/* .dropdown-content a { */
	/* padding: 0.8em 1.2em; */
	/* display: block; */
	/* border-bottom: 1px solid rgba(79, 140, 255, 0.1); */
/* } */

/* .dropdown-content a:last-child { */
	/* border-bottom: none; */
/* } */

/* .dropdown-content a:hover { */
	/* background: rgba(79, 140, 255, 0.1); */
	/* color: #4f8cff; */
/* } */

/* BOOK */
main {
	max-width: 1100px;
	margin: auto;
	padding: 2em;
}

.book-card {
	background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
	border-radius: 16px;
	border: 1px solid rgba(79, 140, 255, 0.15);
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2em;
	padding: 2.5em;
	box-shadow: 0 0 40px rgba(79, 140, 255, 0.2);
	transition: all 0.4s ease;
}

.book-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 0 60px rgba(79, 140, 255, 0.35);
	border-color: rgba(79, 140, 255, 0.3);
}

.book-card img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
	padding-left: 10%;
}

.book-card img:hover {
	transform: scale(1.03);
}

.book-content {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
	grid-row: 1;
	grid-column: 2;
}

.badge-group {
	display: flex;
	gap: 1.5em;
	align-items: center;
}

.badge {
	display: inline-block;
	background: rgba(79, 140, 255, 0.15);
	border: 1px solid rgba(79, 140, 255, 0.3);
	color: #4f8cff;
	padding: 0.6em 1.2em;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
}

.book-content h2 {
	font-size: 1.4em;
	color: #fff;
	line-height: 1.4;
	margin: 0;
}

.book-content p {
	color: #aaa;
	font-size: 0.95em;
	line-height: 1.6;
	margin: 0;
}

.book-video {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	grid-column: 1 / -1;
	grid-row: 2;
}

.book-video video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

.cta-section {
	grid-column: 1 / -1;
	grid-row: 3;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2em;
	align-items: center;
}

.prices {
	display: flex;
	flex-direction: row;
	gap: 2em;
	background: rgba(79, 140, 255, 0.08);
	padding: 1.5em;
	border-radius: 10px;
	border: 1px solid rgba(79, 140, 255, 0.15);
}

.prices > div {
	text-align: center;
	flex: 1;
}

.book-price {
	font-size: 1.6em;
	font-weight: 700;
	color: #4f8cff;
	margin-bottom: 0.3em;
}

.book-type {
	font-size: 0.85em;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cta {
	display: block;
	background: linear-gradient(135deg, #4f8cff 0%, #357abd 100%);
	color: #fff;
	padding: 1em 2em;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(79, 140, 255, 0.3);
	text-align: center;
	width: 100%;
}

.cta:hover {
	background: linear-gradient(135deg, #357abd 0%, #4f8cff 100%);
	transform: translateY(-3px);
	box-shadow: 0 6px 25px rgba(79, 140, 255, 0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.book-card {
		grid-template-columns: 1fr;
		padding: 2em;
		gap: 1.5em;
	}

	.book-left {
		grid-column: 1;
		grid-row: 1;
	}

	.book-content {
		grid-column: 1;
		grid-row: 2;
	}

	.book-video {
		grid-column: 1;
		grid-row: 3;
	}

	.cta-section {
		grid-column: 1;
		grid-row: 4;
		grid-template-columns: 1fr;
	}

	.badge-group {
		justify-content: center;
	}

	.book-content {
		text-align: center;
	}
}

@media (max-width: 600px) {
	
	.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-card {
		padding: 1.5em;
		gap: 1.2em;
	}

	.book-left h2 {
		font-size: 1.1em;
	}

	.book-left p {
		font-size: 0.9em;
	}

	.prices {
		flex-direction: column;
		gap: 1em;
	}

	.cta {
		padding: 0.8em 1.2em;
		font-size: 0.95em;
	}

	.book-price {
		font-size: 1.4em;
	}

	.badge {
		font-size: 0.8em;
	}

	.badge-group {
		flex-direction: column;
		gap: 0.8em;
	}
}

@media (max-width: 400px) {
	
	.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-left h2 {
		font-size: 1em;
	}

	.book-price {
		font-size: 1.2em;
	}
	
}
