/* ======================================================
   PAGE PROJET — /css/projet.css du thème enfant
====================================================== */

/* ---------- Typo ---------- */
@font-face {
	font-family: 'Simplon BP Mono';
	src: url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.eot');
	src: url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.eot?#iefix') format('embedded-opentype'),
	     url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.woff2') format('woff2'),
	     url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.woff') format('woff'),
	     url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.ttf') format('truetype'),
	     url('https://adrienconstans.com/wp-content/uploads/2026/01/SimplonBPMono-Light.svg#SimplonBPMono-Light') format('svg');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

.projet {
	--header-h: 110px;         /* hauteur du header fixe : ajuste si besoin */
	--col-texte: 32vw;         /* largeur de la colonne texte */
	--gouttiere: 20px;
	--projet-txt: #fff;

	/* Tailles de typo : ajuste ici */
	--taille-titre: clamp(1.2rem, 1.8vw, 1.8rem);
	--taille-meta:  .75rem;
	--taille-desc:  clamp(.8rem, .95vw, .95rem);

	background: var(--projet-bg, #ec706d);
	color: var(--projet-txt);
	min-height: 100vh;
}

.projet,
.projet-titre,
.projet-meta,
.projet-desc {
	font-family: 'Simplon BP Mono', monospace;
	font-weight: 300;
}

/* Masque la languette du header sur les pages projet */
body.single-post .languette-bg,
body.single-post .languette-wrap {
	display: none !important;
}

/* ---------- Colonne texte (fixe) ---------- */
.projet-texte {
	position: fixed;
	top: var(--header-h);
	left: 0;
	bottom: 0;
	width: var(--col-texte);
	padding: 0 var(--gouttiere) var(--gouttiere);
	display: flex;
	flex-direction: column;
	z-index: 2;
}
.projet-texte__scroll {
	flex: 1;
	overflow-y: auto;
	scrollbar-width: none;
}
.projet-texte__scroll::-webkit-scrollbar { display: none; }

.projet-titre {
	font-size: var(--taille-titre);
	line-height: 1.1;
	margin: 0 0 1.2em;
	color: inherit;
    	font-family: 'Simplon BP Mono', monospace!important;
}
.projet-meta {
	margin: 0 0 1.6em;
	font-size: var(--taille-meta);
	text-transform: uppercase;
	line-height: 1.6;
}
.projet-meta span { display: block; }

.projet-desc {
	font-size: var(--taille-desc);

	line-height: 1.4;
}
.projet-desc p { margin: 0 0 1em; }

/* ---------- Flèches haut / bas ---------- */
.projet-nav {
	display: flex;
	justify-content: center;
	gap: 30px;
	padding-top: var(--gouttiere);
}
.projet-nav a { display: block; line-height: 0; }
.projet-nav img {
	width: 60px;
	height: auto;
	transition: transform .25s ease;
}
.projet-nav a[rel="prev"]:hover img { transform: translateY(-6px); }
.projet-nav a[rel="next"]:hover img { transform: translateY(6px); }

/* ---------- Colonne images ---------- */
.projet-images {
	--img-radius: 12px;   /* arrondi des images */
	--img-espace: 20px;   /* espace entre les images */

	position: fixed;
	top: var(--header-h);
	bottom: 0;
	left: var(--col-texte);
	right: var(--gouttiere);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: transparent;
	z-index: 1;
	scrollbar-width: none;

	display: flex;
	flex-direction: column;
	gap: var(--img-espace);
	padding-bottom: var(--img-espace);
}
.projet-images::-webkit-scrollbar { display: none; }

.projet-image {
	margin: 0;
	flex-shrink: 0;
	border-radius: var(--img-radius);
	overflow: hidden;
}
.projet-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--img-radius);
}

/* ---------- Vidéos ---------- */
.projet-video iframe,
.projet-video video {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--img-radius);
	background: #000;
}
.projet-video--file video { aspect-ratio: auto; }

/* ---------- Languette retour ---------- */
.projet-back {
	position: fixed !important;
	top: 20px;
	left: -60px;
	z-index: 2147483647 !important;   /* au-dessus du header Elementor */
	pointer-events: auto !important;
	display: block;
	width: 100px;
	line-height: 0;
	cursor: pointer;
	transition: transform .25s ease;
}
.projet-back img { width: 100%; height: auto; }
.projet-back:hover { transform: translateX(40px); }

/* Footer "Tous droits réservés" masqué sur les projets */
body.single-post .site-footer { display: none; }

/* ---------- Mobile / tablette ---------- */
@media (max-width: 899px) {
	.projet { --header-h: 70px; }

	body.single-post,
	html:has(body.single-post) { overflow-y: auto !important; height: auto !important; }

	/* Colonne texte : juste le titre */
	.projet-texte {
		position: static;
		width: auto;
		padding: calc(var(--header-h) + 10px) 16px 16px !important;
	}
	.projet-texte__scroll { overflow: visible; }
	.projet-meta,
	.projet-desc { display: none; }
	.projet-titre { margin: 0; font-size: 1.25rem; }

	/* Flèches fixes en bas à droite */
	.projet-nav {
		position: fixed;
		right: 12px;
		bottom: 12px;
		flex-direction: column;
		gap: 10px;
		padding: 0;
		z-index: 10;
	}
	.projet-nav img { width: 44px; }

	/* Images bord à bord (avec marges) */
	.projet-images {
		position: static;
		overflow: visible;
		display: flex;
		margin: 0 15px;
		padding: 0;
		--img-espace: 15px;
		--img-radius: 10px;
	}
	.projet-image { flex-shrink: 0; }
	.projet-image img { width: 100vw; max-width: 100%; }

	.projet-back { width: 44px; }
}