/* ==========================================================
   ECLAIRAGISTE.PRO — feuille de style
   ========================================================== */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/OpenSans-400.woff2') format('woff2');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/OpenSans-600.woff2') format('woff2');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/OpenSans-700.woff2') format('woff2');
}

:root {
	--color-accent: #f79007;
	--color-header-bg: #7f7f7f;
	--color-dark: #000000;
	--color-white: #ffffff;
	--wide-width: 1200px;
	--content-width: 900px;
	--band-height: 640px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	line-height: 1.5;
	color: var(--color-white);
	background: var(--color-dark);
}

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

a {
	color: inherit;
}

.container {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- En-tête (page d'accueil) ---------- */

.profile-header {
	--content-gap: 40px;           /* espace entre le bloc texte et la photo */
	--content-align: center;       /* flex-start (haut) | center | flex-end (bas) */
	--content-justify: space-between; /* space-between | center | flex-start | flex-end */
	--content-padding-left: 24px;
	--content-padding-right: 24px;
	--name-font-size: 3.375rem;    /* taille du nom */
	--tagline-font-size: 1.6875rem;/* taille de la fonction */
	--contact-font-size: 2.25rem;  /* taille de l'e-mail / téléphone */

	position: relative;
	height: var(--band-height);
	padding: 0 var(--content-padding-right) 0 var(--content-padding-left);
	overflow: hidden;
	display: flex;
	align-items: center;
}

.profile-header-video,
.profile-header-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.profile-header-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 1;
}

.profile-header-inner {
	position: relative;
	z-index: 2;
	max-width: var(--wide-width);
	margin: 0 auto;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--content-justify);
	align-items: var(--content-align);
	gap: var(--content-gap);
}

.profile-name {
	font-size: var(--name-font-size);
	font-weight: 300;
	margin: 0;
}

.profile-tagline {
	font-size: var(--tagline-font-size);
	font-weight: 300;
	margin: 6px 0 24px;
}

.profile-contact p {
	margin: 4px 0;
	font-size: var(--contact-font-size);
	font-weight: 400;
}

.profile-contact a {
	text-decoration: none;
}

.profile-photo-wrap {
	position: relative;
	flex-shrink: 0;
	--photo-size: 220px;
	--photo-frame-offset-x: 24px;
	--photo-frame-offset-y: 24px;
}

.profile-photo-frame {
	position: absolute;
	top: var(--photo-frame-offset-y);
	left: var(--photo-frame-offset-x);
	width: 100%;
	height: 100%;
	background-color: var(--color-accent);
	z-index: 0;
}

.profile-photo-wrap img {
	position: relative;
	z-index: 1;
	width: var(--photo-size);
	height: var(--photo-size);
	object-fit: cover;
}

/* ---------- Sections de services ---------- */

/* Réglages par défaut — peuvent être surchargés section par section
   directement dans index.php via style="--variable: valeur" sur la balise <section> */
.service-section {
	--gallery-width: 340px;      /* largeur du bloc des 2 photos */
	--frame-offset-x: 16px;      /* décalage horizontal du cadre orange */
	--frame-offset-y: 16px;      /* décalage vertical du cadre orange */
	--text-max-width: 480px;     /* largeur max du bloc de texte */
	--content-gap: 40px;         /* espace entre le texte et les photos */
	--content-align: center;     /* alignement vertical : flex-start | center | flex-end */
	--content-padding-left: 24px;/* marge depuis le bord gauche */
	--content-padding-right: 24px;/* marge depuis le bord droit */

	position: relative;
	height: var(--band-height);
	overflow: hidden;
}

.service-bg-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: var(--content-align);
}

.service-inner-container {
	width: 100%;
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 var(--content-padding-right) 0 var(--content-padding-left);
	display: flex;
	flex-wrap: wrap;
	gap: var(--content-gap);
	align-items: center;
}

.service-text {
	flex: 1 1 320px;
	max-width: var(--text-max-width);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.service-text h2 {
	color: var(--color-accent);
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 16px;
}

.service-text p {
	font-size: 2.25rem;
	font-weight: 400;
	margin: 0;
}

.service-gallery {
	position: relative;
	flex: 0 0 auto;
	width: var(--gallery-width);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.service-gallery-frame {
	position: absolute;
	top: calc(-1 * var(--frame-offset-y));
	right: calc(-1 * var(--frame-offset-x));
	width: 100%;
	height: calc(50% - 8px);
	background-color: var(--color-accent);
	z-index: 0;
}

.service-gallery img {
	position: relative;
	z-index: 1;
	width: 100%;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ---------- Responsive : sections en pile sur petit écran ---------- */

@media (max-width: 900px) {
	.service-inner {
		position: relative;
		inset: auto;
		background-color: rgba(0, 0, 0, 0.55);
		padding: 40px 0;
	}
}

/* ---------- Pied de page ---------- */

.site-footer {
	background-color: var(--color-dark);
	padding: 50px 24px 30px;
	font-size: 0.95rem;
	font-weight: 300;
}

.footer-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
}

.footer-inner p {
	margin: 4px 0;
}

.footer-contact {
	margin-bottom: 24px;
}

.footer-meta {
	margin-bottom: 20px;
}

.footer-links a {
	display: inline-block;
	margin-right: 24px;
	text-decoration: none;
	color: var(--color-white);
}

.footer-links a:hover {
	text-decoration: underline;
}

/* ---------- Pages légales ---------- */

.legal-page {
	--hero-height: 340px;        /* hauteur du bandeau titre en haut */
	--hero-align: flex-end;      /* position du titre : flex-start (haut) | center | flex-end (bas) */
	--title-font-size: 2.2rem;   /* taille du titre (Mentions légales / Politique...) */
	--content-max-width: 900px;  /* largeur de la colonne de texte */
	--content-padding-top: 20px;
	--content-padding-bottom: 60px;
	--body-font-size: 1rem;      /* taille du texte courant */

	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: scroll;
	min-height: 100vh;
}

.legal-hero {
	position: relative;
	z-index: 1;
	min-height: var(--hero-height);
	display: flex;
	align-items: var(--hero-align);
	padding: 40px 24px;
}

.legal-hero h1 {
	max-width: var(--wide-width);
	margin: 0 auto;
	width: 100%;
	font-size: var(--title-font-size);
	font-weight: 400;
}

.legal-content {
	position: relative;
	z-index: 1;
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: var(--content-padding-top) 24px var(--content-padding-bottom);
}

.legal-content h3 {
	color: var(--color-accent);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 30px 0 4px;
}

.legal-content h3:first-child {
	margin-top: 0;
}

.legal-content p {
	font-size: var(--body-font-size);
	font-weight: 300;
	margin: 6px 0;
}

.btn-retour {
	display: inline-block;
	margin-top: 30px;
	padding: 12px 28px;
	background-color: var(--color-accent);
	color: var(--color-dark);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
	.profile-header-inner {
		flex-direction: column;
		text-align: center;
	}
	.profile-photo-frame {
		top: 16px;
		left: 16px;
	}
	.service-text h2 {
		font-size: 2rem;
	}
}
