/* CONTACT 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 {
	display: flex;
	flex-direction: column;
	gap: 3em;
}

.contact-section {
	max-width: 600px;
	margin: auto;
	padding: 1em 1.5em;
	text-align: center;
}

.contact-section h1 {
	font-size: 2.2em;
	margin-bottom: 0.3em;
}

.contact-subtitle {
	color: #aaa;
	margin-bottom: 2em;
}

.contact-form {
	background: #161b22;
	padding: 2em;
	border-radius: 12px;
	border: 1px solid rgba(79,140,255,0.2);
	box-shadow: 0 0 25px rgba(79,140,255,0.2);
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.form-group label {
	font-size: 0.9em;
	color: #aaa;
}

.form-group input,
.form-group textarea {
	background: #0d1117;
	border: 1px solid #222;
	border-radius: 8px;
	padding: 0.8em;
	color: #fff;
	font-size: 0.95em;
	outline: none;
	transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: #4f8cff;
	box-shadow: 0 0 10px rgba(79,140,255,0.3);
}

.form-group textarea {
	resize: none;
}

.contact-button {
	background: linear-gradient(135deg, #4f8cff, #7a5cff);
	color: white;
	padding: 1em;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0 0 15px rgba(79,140,255,0.4);
}

.contact-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 25px rgba(79,140,255,0.6);
}

#form-message {
	margin-top: 20px;
	text-align: center;
	font-weight: 500;
}

.success {
	background: rgba(0, 200, 100, 0.1);
	color: #00c864;
	padding: 12px;
	border-radius: 8px;
	animation: fadeIn 0.3s ease;
}

.error {
	background: rgba(255, 50, 50, 0.1);
	color: #ff4d4d;
	padding: 12px;
	border-radius: 8px;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* POP-UP CONFIRMATION */
.popup-confirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* invisible par défaut */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #161b22;
  padding: 2em 2.5em;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(79,140,255,0.4);
  animation: popupFade 0.3s ease;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 0.5em;
  color: #00c864;
}

.popup-content p {
  font-size: 1em;
  color: #aaa;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #fff;
}

@keyframes popupFade {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* =========================
   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 */
	}
}