/* ============================================================
   VARIABLES
   ============================================================ */
:root {
	--bg:			#1A1A1A;
	--bg-section:		#222222;
	--text:			#F0F0F0;
	--text-muted:		#A0A0A0;
	--orange:		#D4622A;
	--orange-clair:		#F07840;
	--bleu:			#5B8FA8;
	--bleu-clair:		#7DB5D0;
	--vert:			#4A7C59;
	--vert-clair:		#6AAF82;
	--font-titre:		'Barlow Condensed', sans-serif;
	--font-corps:		'Inter', sans-serif;
	--max-width:		1200px;
	--header-height:	96px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-corps);
	font-size: 16px;
	line-height: 1.7;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: var(--bg);
	border-bottom: 1px solid #333;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	padding: 0 1.5rem;
	max-width: var(--max-width);
	margin: 0 auto;
}

.logo img {
	height: 80px;
	width: auto;
}

.nav-toggle {
	background: none;
	border: none;
	color: var(--text);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
}

.nav-toggle:hover {
	color: var(--orange);
}

/* NAV */
.main-nav {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background-color: var(--bg);
	border-top: 1px solid #2a2a2a;
}

.main-nav.is-open {
	max-height: 400px;
}

.main-nav ul {
	padding: 0.5rem 0 1rem;
	max-width: var(--max-width);
	margin: 0 auto;
}

.main-nav li a {
	display: block;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-titre);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: color 0.2s;
}

.main-nav li a:hover {
	color: var(--orange);
}

.main-nav li a[aria-current="page"] {
	color: var(--orange);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	padding-top: var(--header-height);
}

.hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	padding: 3rem 1.5rem;
	max-width: 860px;
}

@media (min-width: 768px) {
	.hero-content {
		padding: 3rem 4.5rem;
	}
}

.hero-content h1 {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: clamp(2.4rem, 6vw, 4.5rem);
	line-height: 1.05;
	margin-bottom: 1.25rem;
	text-transform: uppercase;
}

.hero-accroche {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: #d0d0d0;
	max-width: 600px;
	margin-bottom: 2rem;
}

/* ============================================================
   BOUTON
   ============================================================ */
.btn-primary {
	display: inline-block;
	background-color: var(--orange);
	color: #fff;
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.8rem 2rem;
	transition: background-color 0.2s;
}

.btn-primary:hover {
	background-color: #b8521f;
}

/* ============================================================
   PRÉSENTATION
   ============================================================ */
.section-presentation {
	padding: 5rem 0;
}

.presentation-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.presentation-text p {
	margin-bottom: 1.25rem;
	color: #d0d0d0;
}

.presentation-text p:last-child {
	margin-bottom: 0;
}

.presentation-portrait img {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 3/4;
	object-fit: cover;
	object-position: top;
}

@media (min-width: 768px) {
	.presentation-grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

/* ============================================================
   DOMAINES
   ============================================================ */
.section-domaines {
	padding: 5rem 0;
	background-color: var(--bg-section);
}

.domaines-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.domaine {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	display: flex;
	flex-direction: column;
}

.domaine-photo {
	position: absolute;
	inset: 0;
}

.domaine-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.domaine:hover .domaine-photo img {
	transform: scale(1.04);
}

.domaine-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 70%);
}

.domaine-content {
	position: relative;
	z-index: 1;
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: flex-end;
}

.domaine-icon {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	display: block;
}

.domaine-regie .domaine-icon,
.domaine-regie h2,
.domaine-regie .domaine-link {
	color: var(--orange-clair);
}

.domaine-conception .domaine-icon,
.domaine-conception h2,
.domaine-conception .domaine-link {
	color: var(--bleu-clair);
}

.domaine-formation .domaine-icon,
.domaine-formation h2,
.domaine-formation .domaine-link {
	color: var(--vert-clair);
}

.domaine-content h2 {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 1.6rem;
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 0.75rem;
}

.domaine-content p {
	color: #d0d0d0;
	font-size: 0.95rem;
	margin-bottom: 1rem;
	flex: 1;
}

.domaine-link {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.2s;
}

.domaine-link:hover {
	gap: 0.8rem;
}

@media (min-width: 900px) {
	.domaines-grid {
		grid-template-columns: repeat(3, 1fr);
		align-items: stretch;
	}
}

/* ============================================================
   RÉFÉRENCES
   ============================================================ */
.section-references {
	padding: 5rem 0;
}

.section-references h2 {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 2rem;
	text-transform: uppercase;
	margin-bottom: 2rem;
	letter-spacing: 0.02em;
}

.references-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

.references-list li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #2a2a2a;
	color: #d0d0d0;
}

.references-list li i {
	color: var(--orange);
	font-size: 0.7rem;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.references-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta {
	padding: 6rem 0;
	background-color: var(--bg-section);
	text-align: center;
}

.cta-logo {
	height: 160px;
	width: auto;
	margin: 0 auto 2.5rem;
}

.cta-titre {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3.5rem);
	text-transform: uppercase;
	line-height: 1;
}

.cta-sous {
	font-family: var(--font-titre);
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--text-muted);
	margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	padding: 2rem 0;
	border-top: 1px solid #2a2a2a;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.875rem;
}

.site-footer a:hover {
	color: var(--orange);
}

@media (max-width: 480px) {
	.footer-sep {
		display: none;
	}
}

/* ============================================================
   SECTION TITRE
   ============================================================ */
.section-titre {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 2rem;
	text-transform: uppercase;
	margin-bottom: 2.5rem;
	letter-spacing: 0.02em;
}

/* ============================================================
   MISSIONS
   ============================================================ */
.section-missions {
	padding: 5rem 0;
	background-color: var(--bg-section);
}

.missions-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 640px) {
	.missions-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.missions-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mission-item {
	padding: 2rem;
	border-left: 3px solid var(--orange);
}

.mission-icon {
	font-size: 1.5rem;
	color: var(--orange);
	margin-bottom: 1rem;
	display: block;
}

.mission-item h3 {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 1.3rem;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.mission-item p {
	color: #d0d0d0;
	font-size: 0.95rem;
}

/* ============================================================
   PHOTO PLEINE LARGEUR
   ============================================================ */
.section-photo-large {
	width: 100%;
	max-height: 520px;
	overflow: hidden;
}

.section-photo-large img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	object-position: center;
}

/* Variantes couleur header par page service */
body.page-regie .site-header {
	background-color: #2a1508;
	border-bottom-color: var(--orange);
}

body.page-conception .site-header {
	background-color: #0d1e27;
	border-bottom-color: var(--bleu);
}

body.page-formation .site-header {
	background-color: #0d1a11;
	border-bottom-color: var(--vert);
}

body.page-regie .main-nav {
	background-color: #2a1508;
}

body.page-conception .main-nav {
	background-color: #0d1e27;
}

body.page-formation .main-nav {
	background-color: #0d1a11;
}
.section-missions-bleu {
	background-color: var(--bg-section);
}

.mission-item-bleu {
	border-left-color: var(--bleu);
}

.mission-icon-bleu {
	color: var(--bleu);
}

/* Variante verte pour la page qualifications */
.section-missions-vert {
	background-color: var(--bg-section);
}

.mission-item-vert {
	border-left-color: var(--vert);
}

.mission-icon-vert {
	color: var(--vert);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
	min-height: calc(100svh - var(--header-height));
	display: flex;
	align-items: center;
	padding: 5rem 0;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
}

@media (min-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

.contact-logo {
	height: 80px;
	width: auto;
	margin-bottom: 2rem;
}

.contact-intro h1 {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 1.25rem;
}

.contact-intro p {
	color: #d0d0d0;
	margin-bottom: 0.75rem;
}

.contact-infos {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem;
	border-left: 3px solid var(--orange);
	background-color: var(--bg-section);
	transition: border-color 0.2s;
	text-decoration: none;
	color: inherit;
}

.contact-item:hover {
	border-color: #F07840;
}

.contact-item-static {
	cursor: default;
}

.contact-item-static:hover {
	border-color: var(--orange);
}

.contact-icon {
	font-size: 1.5rem;
	color: var(--orange);
	flex-shrink: 0;
	width: 1.5rem;
	text-align: center;
}

.contact-item div {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.contact-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.contact-value {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 1.3rem;
}
