/*
Theme Name: Patrimoine Authier
Theme URI: https://www.mccc-authier.fr/
Author: Patrimoine Authier
Description: Thème sur mesure pour Patrimoine Authier — menuiserie, charpente, ébénisterie et ferronnerie du patrimoine. Thème à blocs, modifiable dans l'éditeur de site de WordPress.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patrimoine-authier
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
:where(a):focus-visible, :where(button):focus-visible, .wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--bronze);
	outline-offset: 3px;
}
img { height: auto; }

/* ---------- En-tête ---------- */
.pa-topbar { font-size: 0.8125rem; letter-spacing: 0.01em; }
.pa-topbar a { color: inherit; text-decoration: none; }
.pa-topbar a:hover { text-decoration: underline; }
.pa-header { border-bottom: 1px solid var(--wp--preset--color--filet); }
.pa-brand-text .wp-block-site-title { margin: 0; line-height: 1; }
.pa-brand-text .wp-block-site-title a { text-decoration: none; color: inherit; }
.pa-brand-tagline { margin: 4px 0 0; font-size: 0.75rem; color: var(--wp--preset--color--texte-doux); letter-spacing: 0.04em; }
.wp-custom-logo .pa-brand-text { display: none; }
.pa-header .wp-block-navigation a { text-decoration: none; }
.pa-header .wp-block-navigation a:hover { color: var(--wp--preset--color--bronze); }
@media (max-width: 781px) { .pa-topbar-extra { display: none; } }

/* ---------- Sections ---------- */
.pa-section { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.pa-section-tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.pa-eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--bronze); margin-bottom: 0.75rem !important; }
.pa-dark .pa-eyebrow { color: var(--wp--preset--color--ocre-clair); }
.pa-lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--wp--preset--color--texte); max-width: 36em; }
.pa-muted { color: var(--wp--preset--color--texte-doux); }
.pa-head-row { align-items: flex-end !important; gap: 2rem 4rem !important; }

/* ---------- Héros ---------- */
.pa-hero { align-items: stretch !important; gap: clamp(32px, 5vw, 64px) !important; }
.pa-hero .wp-block-column:first-child { display: flex; flex-direction: column; justify-content: center; }
.pa-hero h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 1.5rem; }
.pa-hero-figure { margin: 0; position: relative; height: 100%; }
.pa-hero-figure img { width: 100%; height: 100%; min-height: 420px; max-height: 720px; object-fit: cover; object-position: center 40%; display: block; }
.pa-hero-figure figcaption, .pa-cap-overlay figcaption {
	position: absolute; left: 20px; bottom: 20px; margin: 0; padding: 8px 12px;
	background: rgba(35, 28, 22, 0.82); color: #EDE6DA; font-size: 0.8125rem;
}
.pa-cap-overlay { position: relative; }

/* ---------- Repères ---------- */
.pa-reperes { border-top: 1px solid var(--wp--preset--color--filet); border-bottom: 1px solid var(--wp--preset--color--filet); gap: 0 !important; }
.pa-reperes > .wp-block-column { padding: 32px 28px; }
.pa-reperes > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--filet); }
.pa-reperes .pa-chiffre { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 600; line-height: 1; margin: 0 0 6px; }
.pa-reperes p:last-child { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--texte-doux); }
@media (max-width: 781px) {
	.pa-reperes > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--wp--preset--color--filet); }
}

/* ---------- Cartes ---------- */
.pa-cards { gap: 24px !important; }
.pa-card .wp-block-image { margin: 0 0 18px; }
.pa-card .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.pa-card h3 { font-size: clamp(1.625rem, 2.2vw, 2rem); margin: 0 0 8px; }
.pa-card p { margin: 0 0 8px; font-size: 1rem; }
.pa-card .pa-meta { font-size: 0.8125rem; color: var(--wp--preset--color--texte-doux); margin-bottom: 6px; }
.pa-card a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 782px) and (max-width: 1100px) {
	.pa-cards { flex-wrap: wrap !important; }
	.pa-cards > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; }
}

/* ---------- Méthode (fond sombre) ---------- */
.pa-steps { gap: 32px !important; }
.pa-steps > .wp-block-column { border-top: 1px solid #4A4038; padding-top: 24px; }
.pa-step-num { font-family: var(--wp--preset--font-family--cormorant); font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--ocre-clair); margin: 0 0 12px; }
.pa-steps h3 { font-family: var(--wp--preset--font-family--instrument); font-size: 1.25rem; font-weight: 600; margin: 0 0 8px; }
.pa-dark p { color: #C9BEAE; }
.pa-dark h2, .pa-dark h3 { color: #F6F1E8; }

/* ---------- Mosaïque ---------- */
.pa-mosaic { gap: 24px !important; }
.pa-mosaic .wp-block-image { margin: 0; }
.pa-mosaic .wp-block-image img { width: 100%; object-fit: cover; display: block; }
.pa-mosaic .pa-tall img { aspect-ratio: 1 / 1; height: 100%; }
.pa-mosaic .pa-wide img { aspect-ratio: 2 / 1; }
.pa-mosaic .pa-small img { aspect-ratio: 1 / 1; }
.pa-mosaic-inner { gap: 24px !important; margin-top: 24px !important; }

/* ---------- Entreprise ---------- */
.pa-split { gap: clamp(32px, 6vw, 80px) !important; align-items: center !important; }
.pa-split .wp-block-image { margin: 0; }
.pa-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pa-quote { border-left: 2px solid var(--wp--preset--color--bronze) !important; padding: 4px 0 4px 24px !important; margin: 1.5rem 0 !important; }
.pa-quote p { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; }
.pa-quote cite { font-style: normal; font-size: 0.875rem; color: var(--wp--preset--color--texte-doux); }
.pa-badges { gap: 12px !important; }
.pa-badge { border: 1px solid var(--wp--preset--color--bronze); padding: 10px 16px; font-weight: 600; font-size: 0.9375rem; margin: 0 !important; }

/* ---------- Recrutement ---------- */
.pa-band { padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px) !important; }
.pa-band h2 { color: #fff; margin: 0 0 8px; }
.pa-band p { color: #F6EADF; margin: 0; }
.pa-band .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--encre) !important; }

/* ---------- Contact ---------- */
.pa-contact-lines p { margin: 0 0 6px; }
.pa-contact-lines .pa-phone { font-size: 1.5rem; font-weight: 600; }
.pa-contact-lines a { color: var(--wp--preset--color--encre); }

/* ---------- Pied de page ---------- */
.pa-footer a { color: #EDE6DA; text-decoration: none; }
.pa-footer a:hover { text-decoration: underline; }
.pa-footer p { margin: 0 0 6px; font-size: 0.875rem; color: #C9BEAE; }
.pa-footer .pa-footer-brand { font-family: var(--wp--preset--font-family--cormorant); font-size: 1.75rem; font-weight: 600; color: #F6F1E8; line-height: 1; margin-bottom: 10px; }

/* ---------- Pages intérieures ---------- */
.pa-page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.05; margin: 0 0 1rem; }
.pa-feature { gap: clamp(32px, 5vw, 64px) !important; align-items: center !important; }
.pa-feature .wp-block-image { margin: 0; }
.pa-feature .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pa-feature + .pa-feature { margin-top: clamp(48px, 6vw, 96px) !important; }
.pa-gallery.wp-block-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }
.pa-divider { border-top: 1px solid var(--wp--preset--color--filet); margin: clamp(48px, 6vw, 96px) 0 !important; }

/* ---------- Fonds et utilitaires ---------- */
.pa-topbar { background: var(--wp--preset--color--encre); color: #D9CFBF; padding-top: 10px; padding-bottom: 10px; }
.pa-topbar p { margin: 0; }
.pa-header { padding-top: 20px; padding-bottom: 20px; background: var(--wp--preset--color--pierre); }
.pa-header-row { gap: 24px !important; }
.pa-header-actions { gap: 28px !important; }
.pa-bg-papier { background: var(--wp--preset--color--papier); }
.pa-dark { background: var(--wp--preset--color--nuit); color: #EDE6DA; }
.pa-dark a { color: var(--wp--preset--color--ocre-clair); }
.pa-band { background: var(--wp--preset--color--bronze); color: #fff; }
.pa-band a:not(.wp-block-button__link) { color: #fff; }
.pa-align-end { text-align: right; }
@media (max-width: 781px) { .pa-align-end { text-align: left; } }
.pa-h-small { font-family: var(--wp--preset--font-family--instrument) !important; font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.4 !important; }
.pa-light-steps > .wp-block-column { border-top-color: var(--wp--preset--color--filet) !important; }
.pa-light-steps h2 { font-size: 2rem; }
.pa-sq { margin: 0; }
.pa-sq img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pa-sq figcaption { font-size: 0.875rem; color: var(--wp--preset--color--texte-doux); margin-top: 8px; }
.pa-gallery-cols { gap: 16px !important; margin-top: 24px !important; }
.pa-feature .pa-gallery-cols { margin-top: 20px !important; }
.pa-footer { background: var(--wp--preset--color--encre); padding-top: 56px; padding-bottom: 56px; }
.pa-footer-cols { gap: 48px !important; }
.pa-footer-cols h3 { font-family: var(--wp--preset--font-family--instrument); font-size: 0.875rem; font-weight: 600; color: #F6F1E8; margin: 0 0 10px; }
.wp-block-post-content > .alignfull:first-child { margin-top: 0; }

/* ---------- En-tête mobile ---------- */
.pa-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 960px) {
	.pa-header-actions .wp-block-buttons { display: none; }
}
@media (max-width: 781px) {
	.pa-brand-tagline { display: none; }
	.pa-brand-text .wp-block-site-title { font-size: 1.625rem !important; }
	.wp-block-site-logo img { max-width: 150px; height: auto; }
}
@media (max-width: 1100px) {
	.pa-brand-tagline { display: none; }
	.pa-header .wp-block-navigation { gap: 1.1rem; font-size: 0.875rem; }
	.pa-header .wp-block-navigation__container { flex-wrap: nowrap; }
}
.wp-block-separator.pa-divider { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; border: 0; border-top: 1px solid var(--wp--preset--color--filet); opacity: 1; height: 0; }
