/*
Theme Name:   Hamilton — Emmanuel du Bourg
Description:  Thème enfant de Hamilton pour emmanueldubourg.com : accueil Branding, menu Branding · Photographie, mise en page des images de projet.
Template:     hamilton
Version:      1.0.0
Text Domain:  hamilton-edb
*/

/* ---------- Navigation : Branding · Photographie ---------- */
.show-alt-nav .alt-nav > li { margin-left: 2.5rem; }
.alt-nav a { color: rgba(0, 0, 0, 0.45); }
.alt-nav .current-menu-item > a,
.alt-nav a:hover { color: #000; }

/* ---------- Pages projet : catégories sans « Dans » ---------- */
.page-header .meta { font-size: 0; }
.page-header .meta a { font-size: 18px; }
@media (max-width: 620px) { .page-header .meta a { font-size: 16px; } }
.page-header .meta a + a { margin-left: 1.2em; position: relative; }
.page-header .meta a + a::before { content: "·"; position: absolute; left: -0.75em; color: rgba(0, 0, 0, 0.55); }

/* ---------- Pages projet (desktop) : images à la largeur de l'image d'en-tête.
   Paysage : largeur = en-tête. Portrait : hauteur = largeur de l'en-tête. ---------- */
@media (min-width: 1000px) {
	.single .entry-content img:not(.wp-smiley):not(.emoji) {
		display: block;
		width: min(1240px, 90vw) !important;
		max-width: none !important;
		height: auto !important;
		max-height: min(1240px, 90vw);
		object-fit: contain;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		margin-top: 0;
		margin-bottom: 40px;
	}
	.single .entry-content figure.wp-block-image,
	.single .entry-content .wp-block-image figure { margin-bottom: 0; }
}

/* ---------- Page Contact ---------- */
.page .entry-content .edb-accroche { font-size: 2.2rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1.2em; color: #000; }
@media (max-width: 620px) { .page .entry-content .edb-accroche { font-size: 1.8rem; } }
.page .entry-content .edb-mail { font-size: 1.3rem; color: #000; border-bottom: 1.5px solid #000; text-decoration: none; }

/* ---------- Bouton Contact en bas de page ---------- */
.edb-cta { text-align: center; padding: 60px 0 20px; }
.edb-cta-button {
	display: inline-block;
	padding: 18px 48px;
	border: 1px solid #000;
	color: #000;
	font-size: 0.9rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.edb-cta-button:hover,
.edb-cta-button:focus { background-color: #000; color: #edebe8; }
@media (max-width: 620px) { .edb-cta { padding-top: 40px; } .edb-cta-button { padding: 15px 36px; font-size: 0.85rem; } }

/* ---------- Fin des pages projet : pas de date ni d'étiquettes ---------- */
.single .meta.bottom { display: none; }

/* ---------- Pied de page : le bouton Contact passe devant, le copyright s'efface ---------- */
.edb-cta { padding-bottom: 0; }
.site-footer { padding-top: 30px; }
.site-footer p,
.site-footer p a.site-name {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: rgba(0, 0, 0, 0.4);
	text-decoration: none;
	border: none;
}
