/* =========================================================
   Bandeau commun à toutes les pages : vue aérienne du lycée,
   onglets du menu (autre_php/menu.php), titre et sous-titre.
   Couleurs reprises du logo du lycée Isaac Newton.
   ========================================================= */

:root {
	--bleu: #0b2a6f;
	--bleu-fonce: #071c4a;
	--rouge: #c1121f;
}

/* ---------- Bandeau ---------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 360px;
	margin: 0 0 20px;
	background: var(--bleu-fonce) url("../images_newton/DJI_0118_DxO.jpg") center 55% / cover no-repeat;
	color: #fff;
	font-family: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
	border-bottom: 4px solid var(--rouge);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 28, 74, 0.75) 0%, rgba(7, 28, 74, 0.35) 35%, rgba(7, 28, 74, 0.88) 100%);
}

.hero_contenu {
	position: relative;
	width: min(1150px, 100% - 32px);
	margin: auto auto 0;
	padding: 30px 0 32px;
}

.hero .hero_contenu h1 {
	margin: 0 0 8px;
	color: #fff;
	font-family: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 3.6vw, 2.5rem);
	line-height: 1.2;
	max-width: 32ch;
}

.hero_sous_titre {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.5;
	max-width: 65ch;
	opacity: 0.95;
}

.hero .boutons {
	margin-top: 20px;
}

/* ---------- Onglets ---------- */
#MENU {
	position: relative;
	z-index: 10;
}

.onglets {
	width: min(1300px, 100% - 32px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
}

.onglets .onglets_marque,
.onglets .onglets_marque:hover {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
	white-space: nowrap;
}

.onglets_marque img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #fff;
	padding: 2px;
	box-sizing: border-box;
}

.onglets_liste {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.onglets .onglets_liste a {
	display: block;
	padding: 7px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.onglets .onglets_liste a:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.onglets .onglets_liste a.active {
	background: #fff;
	color: var(--bleu);
}

.onglets_bouton {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.onglets_bouton span,
.onglets_bouton span::before,
.onglets_bouton span::after {
	display: block;
	width: 18px;
	height: 2px;
	background: #fff;
	position: relative;
}

.onglets_bouton span::before,
.onglets_bouton span::after {
	content: "";
	position: absolute;
	left: 0;
}

.onglets_bouton span::before { top: -6px; }
.onglets_bouton span::after { top: 6px; }

/* Écrans moyens : les onglets passent sous le nom du site */
@media (max-width: 1340px) {
	.onglets {
		flex-wrap: wrap;
	}
	.onglets {
		width: min(1150px, 100% - 32px);
	}
	.onglets_liste {
		width: 100%;
		justify-content: flex-start;
	}
}

/* Petits écrans : menu déroulant derrière un bouton */
@media (max-width: 960px) {
	.onglets_bouton {
		display: inline-flex;
	}
	.onglets_liste {
		display: none;
		flex-direction: column;
		background: rgba(7, 28, 74, 0.96);
		border-radius: 10px;
		padding: 8px;
	}
	.onglets.ouvert .onglets_liste {
		display: flex;
	}
	.onglets .onglets_liste a {
		border-radius: 8px;
		padding: 10px 12px;
	}
	.hero {
		min-height: 300px;
	}
	.hero_sous_titre {
		font-size: 1rem;
	}
}

body {
	margin: 0;
}
