body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*background-color: #f4f4f4;*/
    color: #333;
}

@media (min-width: 1024px) {
  body {
    display: grid;
    grid-template-rows: 70px 1fr; /* header + cadre1 + reste */
    height: 100vh;
  }
}

.site-header {
	display: flex;
	align-items: center;
	gap: 50px;
	padding: 0 20px;
	height: 70px;
}

.EM {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	height: 50px;
	width: auto;
	font-variant: small-caps;
}

.nav-menu {
  display: flex;
  gap: 20px;
  margin-left: auto; /* ⬅️ pousse le menu à droite */
}

.menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item {
	padding: 10px 15px;
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: background-color 0.3s, color 0.3s;
}

.nav-item:hover {
  background-color: #333;
  color: #fff;
}

@media (max-width: 780px) {
	.nav-menu {
		display: none;
	}
	.menu-toggle {
		display: block;
	}
	.mobile-page {
		display: block;
	}
}

.scroll-area {
	overflow: hidden;
  	max-height: calc(100vh - 70px);
}

.page {
    padding-left: 30px;
	padding-right: 30px;
	height: calc(100% - 30px);
}

.horizontal-wrapper {
    display: flex;
	gap : 30px;	
    height: 100%;
    width: max-content;
}

.panel {
	height: 100%;
	width: fit-content;
	flex-shrink: 0;
}

.presentation {
	width: 100%;
	max-width: 964px;
	display: grid;
	grid-template-columns: 1fr max-content;
	grid-template-rows: auto auto;
	gap: 16px;
}

.titre {
	grid-column: 1;
	grid-row: 1;
	height: fit-content;
}

.map {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.explications {
	grid-column: 1;
	grid-row: 2;
}

.titre h2 {
	margin-top: 0;
}
.titre h3 {
	margin: 0;
}

.map {
	width: 100%;
	max-width: 400px;
	height: 400px;
	aspect-ratio: 1/1;
}

.map img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

@media (max-width: 780px) {
	.page {
		padding-left: 10px;
		padding-right: 10px;
		max-height: none;
	}
	.horizontal-wrapper {
		gap : 10px;	
	}
	.presentation {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
	
	.titre,
	.map,
	.explications {
		grid-column: 1;
		grid-row: auto;
	}
	
	.map {
		height: auto;
		justify-self: center;
		max-width: 100%;
	}
}

.cadre {
  height: 100%;
}

.cadre img {
	height: 100%;
	width: auto;
	display: block;
}

@media (max-width: 1024px) {
	body {
		overflow: auto;
	}

	.scroll-area {
		max-height: none;
		overflow: visible;
	}

	.horizontal-wrapper {
		flex-direction: column;
		width: 100%;
		height: auto;
	}
	
	.panel {
		height: auto;
		width: 100%;
	}
	
	.cadre{
		width: 100%;
		height: auto;
		overflow: hidden;
	}
	
	.cadre img {
		width: 100%;
		height: auto;
		display: block;
		object-fit: contain;
	}
	
	.presentation {
		max-width: 100%;
	}
}
