/*
Theme Name: Hugo Closier — photographe
Theme URI: https://hugoclosier.fr
Author: Hugo Closier
Description: Thème de blocs du site hugoclosier.fr — photographe à Annecy. Entièrement éditable dans Gutenberg (Full Site Editing) : pages métier, albums mosaïque, FAQ, contact.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: labo
*/

/* ================= Base ================= */
body {
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
::selection { background: #D8CFC0; color: #33302A; }
h1 em, h2 em { font-weight: 400; font-style: italic; }

/* ================= Barre de navigation fixe ================= */
.hc-topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: rgba(246, 242, 235, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(51, 48, 42, 0.07);
	padding: 18px 56px;
}
body.admin-bar .hc-topbar { top: 32px; }
.editor-styles-wrapper .hc-topbar { position: static; }
.hc-topbar .wp-block-site-title { margin: 0; }
.hc-topbar .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #33302A;
	text-decoration: none;
}
.hc-topbar .wp-block-site-tagline {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-style: italic;
	font-size: 22px;
	color: #8A8375;
	margin: 0;
}
.hc-topbar .wp-block-site-tagline::before { content: '— '; }
.hc-topbar .wp-block-navigation a {
	color: #5C574D;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-decoration: none;
}
.hc-topbar .wp-block-navigation a:hover,
.hc-topbar .wp-block-navigation .current-menu-item a {
	color: #33302A;
}
.hc-topbar .hc-bouton-nav a {
	display: inline-block;
	color: #F6F2EB !important;
	background: #4A463E;
	padding: 11px 24px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background 0.3s ease;
}
.hc-topbar .hc-bouton-nav a:hover { background: #33302A; }

/* overlay du menu mobile (bloc Navigation) */
.wp-block-navigation__responsive-container.is-menu-open {
	background: #F6F2EB !important;
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100dvh !important;
	padding: 90px 32px 32px !important;
	overflow: auto;
	z-index: 100000;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open a {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-size: 30px;
	color: #33302A !important;
	text-decoration: none;
	padding: 8px 0;
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	color: #33302A;
}
.wp-block-navigation__responsive-container.is-menu-open {
	box-sizing: border-box;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 22px;
	right: 22px;
	padding: 8px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: static;
}

/* ================= Utilitaires typographiques ================= */
.hc-kicker {
	color: #8A8375;
	font-size: 14px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 400;
}
.hc-kicker-clair { color: rgba(246, 242, 235, 0.85); }
.hc-numero {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-style: italic;
	font-size: 28px;
	color: #8A8375;
	margin-bottom: 12px !important;
}
.hc-doux, .hc-doux p { color: #5C574D; font-weight: 300; }

/* ================= Hero pleine hauteur (cover) ================= */
.hc-hero {
	min-height: 92vh;
	position: relative;
}
.hc-hero .wp-block-cover__background { display: none; }
.hc-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30,26,20,0.25) 0%, rgba(30,26,20,0.05) 40%, rgba(30,26,20,0.45) 100%);
	pointer-events: none;
}
.hc-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	padding: 0 56px 72px;
	max-width: none;
}
.hc-hero h1 {
	color: #F8F5EF;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 1.04;
	text-wrap: balance;
	margin: 0;
}
.hc-hero p { color: rgba(246, 242, 235, 0.88); }
.hc-hero .hc-hero-note { max-width: 300px; font-size: 16px; line-height: 1.65; font-weight: 300; }

/* Hero texte simple (pages métier) */
.hc-hero-page { padding: 170px 56px 60px; }
.hc-hero-page h1 { font-size: clamp(42px, 5.5vw, 64px); }

/* ================= Sections ================= */
.hc-section { padding: 110px 56px; }
.hc-beige { background: #EFE9DF; }
.hc-sombre-note { color: rgba(246,242,235,0.88); }

/* image en arche (accueil) */
.hc-arche img { border-radius: 200px 200px 16px 16px; }

/* images arrondies génériques */
.hc-r16 img { border-radius: 16px; }
.hc-r14 img { border-radius: 14px; }

/* cartes services */
.hc-carte { transition: transform 0.4s ease; }
.hc-carte:hover { transform: translateY(-6px); }
.hc-carte img { border-radius: 14px; width: 100%; height: 340px; object-fit: cover; }
.hc-carte h3 { margin: 20px 0 6px; font-size: 26px; }
.hc-carte h3 a { text-decoration: none; }
.hc-carte p { margin: 0; color: #5C574D; font-size: 15px; line-height: 1.6; font-weight: 300; }

/* tuiles galerie (une par shooting) */
.hc-tuile-date {
	color: #8A8375;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 400;
	margin: 14px 0 4px !important;
}
.hc-carte .hc-tuile-date + h3 { margin-top: 0; }

/* signature manuscrite (à propos) */
.hc-signature {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-style: italic;
	font-size: 34px;
	color: #8A8375;
	margin-top: 10px !important;
}

/* carte bon cadeau */
.hc-cadeau {
	background: #F4EFE6;
	border: 1px solid rgba(51, 48, 42, 0.08);
	border-radius: 20px;
	padding: 70px 56px;
	text-align: center;
}
.hc-cadeau h2 { margin-top: 0; }

/* formules prestations */
.hc-formule {
	background: #F6F2EB;
	border-radius: 16px;
	padding: 40px 36px;
	height: 100%;
}
.hc-formule h3 { margin-top: 0; font-size: 28px; }
.hc-formule .hc-prix {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-style: italic;
	font-size: 22px;
	color: #8A8375;
	margin: 4px 0 14px !important;
}

/* colonnes images hauteur fixe */
.hc-h560 img { height: 560px; width: 100%; object-fit: cover; }
.hc-h540 img { height: 540px; width: 100%; object-fit: cover; }
.hc-h520 img { height: 520px; width: 100%; object-fit: cover; }
.hc-h440 img { height: 440px; width: 100%; object-fit: cover; }
.hc-h580 img { height: 580px; width: 100%; object-fit: cover; }
.hc-h300 img { height: 300px; width: 100%; object-fit: cover; }

/* ================= FAQ (blocs détails) ================= */
.hc-faq .wp-block-details {
	border-bottom: 1px solid rgba(51, 48, 42, 0.12);
	padding: 6px 0;
	background: none;
}
.hc-faq summary {
	cursor: pointer;
	padding: 20px 0;
	font-size: 18px;
	font-weight: 500;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after {
	content: '+';
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-size: 26px;
	color: #8A8375;
	font-weight: 400;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.hc-faq details[open] summary::after { transform: rotate(45deg); }
.hc-faq details > p, .hc-faq details .wp-block-paragraph {
	margin: 0 0 22px;
	color: #5C574D;
	font-size: 16px;
	line-height: 1.75;
	font-weight: 300;
	max-width: 720px;
}

/* ================= Boutons ================= */
.hc-bouton .wp-block-button__link {
	background: #4A463E;
	color: #F6F2EB;
	padding: 18px 44px;
	border-radius: 999px;
	font-size: 16px;
	letter-spacing: 0.04em;
	transition: background 0.3s ease;
}
.hc-bouton .wp-block-button__link:hover { background: #33302A; color: #F6F2EB; }

/* ================= Pied de page ================= */
.hc-footer {
	background: #33302A;
	color: #B8B1A3;
	padding: 70px 56px 40px;
}
.hc-footer p { color: #B8B1A3; font-size: 15px; line-height: 1.7; font-weight: 300; }
.hc-footer a { color: #B8B1A3; text-decoration: none; font-size: 15px; }
.hc-footer a:hover { color: #F6F2EB; }
.hc-footer .hc-footer-titre {
	color: #F6F2EB;
	font-size: 14px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 400;
	margin-bottom: 6px;
}
.hc-footer .hc-footer-marque {
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-size: 24px;
	font-weight: 600;
	color: #F6F2EB;
	margin-bottom: 14px;
}
.hc-footer .hc-footer-copyright {
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid rgba(246, 242, 235, 0.12);
	font-size: 13px;
	color: #7C766B;
}

/* ================= Album mosaïque ================= */
.mosa-entete { padding: 160px 56px 60px; }
.mosa {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	grid-auto-flow: dense;
	gap: 18px;
}
.mosa > * { margin: 0 !important; min-height: 0; }
.mosa .wp-block-image, .mosa figure { height: 100%; }
.mosa .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	cursor: zoom-in;
	transition: opacity 0.3s ease;
}
.mosa .wp-block-image:hover img { opacity: 0.93; }
.mosa-2x2 { grid-column: span 2; grid-row: span 2; }
.mosa-1x2 { grid-row: span 2; }
.mosa-2x1 { grid-column: span 2; }
.mosa-cit {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 6px;
}
.mosa-cit .mosa-citation {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond, 'Cormorant Garamond', serif);
	font-style: italic;
	font-size: 23px;
	line-height: 1.4;
	color: #4A463E;
	font-weight: 400;
}
.mosa-cit .mosa-auteur {
	margin: 10px 0 0;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8A8375;
	font-weight: 400;
}
/* recadrages fins */
.mosa-haut img { object-position: center 20%; }
.mosa-bas img { object-position: center 70%; }
.mosa-droite img { object-position: 70% center; }

/* ================= Lightbox native ================= */
.wp-lightbox-overlay .scrim { background-color: #1C1914 !important; opacity: 0.88 !important; }

/* ================= Animation d'apparition ================= */
@media (prefers-reduced-motion: no-preference) {
	.hc-hero-page > *, .hc-hero .wp-block-cover__inner-container > * { animation: hcRise 0.9s ease both; }
	.hc-hero-page > *:nth-child(2), .hc-hero .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: 0.15s; }
}
@keyframes hcRise {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
	.hc-topbar { padding: 12px 20px; }
	.hc-topbar .wp-block-site-tagline { display: none; }
	.hc-section { padding: 70px 24px; }
	.hc-hero .wp-block-cover__inner-container { padding: 0 24px 48px; }
	.hc-hero .wp-block-cover__inner-container > .wp-block-group { flex-wrap: wrap !important; }
	.hc-hero .hc-hero-note { max-width: none; }
	.hc-hero-page { padding: 130px 24px 40px; }
	.mosa { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 12px; }
	.mosa-entete { padding: 120px 24px 40px; }
	.hc-carte img { height: 280px; }
	.hc-h560 img, .hc-h540 img, .hc-h520 img, .hc-h580 img { height: 380px; }
	.hc-h440 img, .hc-h300 img { height: 300px; }
	.hc-footer { padding: 50px 24px 30px; }
}
