/*
Theme Name: Rue des Clés
Description: Thème immobilier français avec catalogue de vente, recherche et formulaire de contact.
Version: 1.1.3
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maison-de-ligne
Tags: custom-logo, custom-menu, featured-images, theme-options
*/
:root {
	--ink: #20352e;
	--muted: #52605a;
	--paper: #f7f4ed;
	--white: #fffdfa;
	--line: #d9d9cc;
	--accent: #a96b47;
	--display: Georgia, "Times New Roman", serif;
	--body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #98531f; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font: 400 2.5rem/1.05 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4vw, 4rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
p { margin: 0 0 1rem; }
main { min-height: 55vh; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6.5vw, 6rem); }
.eyebrow, .card-kicker { font-size: .73rem; line-height: 1.4; letter-spacing: .15em; font-weight: 730; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 1.65rem; height: 2px; margin-right: .75rem; vertical-align: .25em; background: var(--accent); }
.lede { margin-top: 1rem; color: var(--muted); }
.skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus, .screen-reader-text:focus { z-index: 99; width: auto; height: auto; clip-path: none; background: white; padding: .8rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { min-height: 5.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 400 1.65rem/1.12 var(--display); letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 3.15rem; object-fit: contain; }
.site-header ul, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.75rem, 3vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .55rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-header .current-menu-item > a { text-decoration: underline; }
.site-header .nav-contact { border: 1px solid var(--ink); padding-inline: 1rem; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); background: var(--ink); color: var(--white); }
.hero-copy { padding: clamp(4rem, 7.4vw, 8rem) clamp(1.5rem, 6.4vw, 7rem) clamp(5rem, 8.5vw, 9rem) max(1.5rem, calc((100vw - 76rem) / 2)); }
.hero h1 { max-width: 10ch; font-size: clamp(3.45rem, 7.1vw, 7.5rem); }
.hero-intro { max-width: 32ch; color: #ecebe1; margin-block: 1.4rem 1.65rem; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.hero-image { position: relative; min-width: 0; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% center; }
.image-caption { position: absolute; bottom: 4.3rem; right: 1rem; color: white; background: #20352eea; padding: .35rem .55rem; font-size: .69rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .8rem; min-height: 3rem; padding: .65rem 1.15rem; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: white; font: 650 .86rem/1.3 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: #385548; }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { background: #e8e3d7; }
.home-filter { position: relative; margin-top: -3rem; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); }
.filters-compact { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; padding: 1.4rem; box-shadow: 0 10px 30px #20352e12; }
label { display: block; font-size: .82rem; font-weight: 650; }
input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"]), select, textarea {
	display: block; width: 100%; min-width: 0; min-height: 3rem; margin-top: .32rem; padding: .55rem .65rem;
	border: 1px solid #8b978d; border-radius: 0; color: var(--ink); background: var(--white); font: 400 1rem/1.35 var(--body);
}
textarea { resize: vertical; }
.section-head, .results-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.results-head { align-items: baseline; margin-block: 1.5rem; }
.results-head p { margin: 0; }
.text-link { font-size: .9rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.property-card { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.card-link { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.card-image, .detail-image { position: relative; overflow: hidden; background: #e7e8de; }
.card-image { aspect-ratio: 1.48; }
.card-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image img { transition: transform .3s ease; }
.card-link:hover .card-image img { transform: scale(1.035); }
.card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.placeholder { display: grid; place-items: center; height: 100%; font-size: 4rem; color: var(--muted); }
.badge { position: absolute; top: .8rem; left: .8rem; padding: .25rem .6rem; background: var(--white); color: var(--ink); font-size: .7rem; font-weight: 700; }
.card-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(.9rem, 2vw, 1.35rem); }
.card-kicker { color: var(--muted); margin-bottom: .6rem; overflow-wrap: anywhere; }
.card-spec { color: var(--muted); font-size: .87rem; margin: .65rem 0 0; }
.card-bottom { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.card-bottom strong { font-size: 1.02rem; }
.card-arrow { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 2.25rem; height: 2.25rem; }
.empty { padding: 2rem; border: 1px dashed #8b978d; }
.contact-band { padding-block: clamp(3rem, 7vw, 6.5rem); color: var(--white); background: var(--ink); }
.contact-band :focus-visible, .hero :focus-visible { outline-color: #efb784; }
.contact-layout, .detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 6vw, 5rem); align-items: start; }
.contact-layout h2 + p { margin-top: 1rem; }
.contact-form { padding: clamp(1rem, 3vw, 2rem); background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.contact-form :focus-visible { outline-color: #98531f; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: .9rem; }
.trap { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.privacy-note, .form-notice { margin: .9rem 0; font-size: .85rem; }
.form-notice { padding: .65rem .8rem; border: 1px solid var(--line); background: var(--paper); }
.site-footer { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.footer-row { min-height: 3.3rem; }
.footer-links { font-size: .85rem; }
.site-footer small { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 2rem; }
.detail-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.detail-title h1 { font-size: clamp(2.55rem, 5vw, 4.8rem); }
.detail-title > p { margin: 0; font-size: 1.4rem; font-weight: 650; }
.demo-notice { background: #eee6d8; border-inline-start: .25rem solid var(--accent); padding: .65rem .9rem; }
.detail-image { aspect-ratio: 2.15; }
.detail-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr); padding-block: 2.8rem; }
.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-block: 1.3rem .9rem; }
.prose > article + article { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.facts, .property-contact { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts h2 { font-size: 2rem; }
.facts dl > div { display: flex; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: .55rem; }
.facts dd { margin: 0; font-weight: 650; }
.navigation.pagination { margin-top: 2rem; }
.page-numbers { display: inline-block; padding: .35rem .65rem; }
.page-numbers.current { background: var(--ink); color: white; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .35rem 1.2rem .7rem 0; }
.alignright { float: right; margin: .35rem 0 .7rem 1.2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); }
@media (max-width: 66rem) {
	.archive-page .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero-copy { padding-right: 2rem; }
}
@media (max-width: 48rem) {
	.wrap { width: calc(100% - 2rem); }
	.header-row { padding-block: .6rem; gap: .3rem 1rem; }
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-copy { padding: 2.9rem 1rem 2.45rem; }
	.hero h1 { max-width: none; }
	.hero-image { aspect-ratio: 1.8; }
	.image-caption { bottom: .65rem; right: .65rem; }
	.home-filter { margin-top: 1rem; }
	.filters, .archive-page .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .9rem; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
	.detail-image { aspect-ratio: 1.48; }
}
@media (max-width: 31rem) {
	.cards, .contact-fields { grid-template-columns: minmax(0, 1fr); }
	.brand { font-size: 1.45rem; }
	.site-header .nav-contact { padding-inline: .55rem; }
}
@media (max-width: 22rem) {
	.filters, .archive-page .filters { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.card-image img { transition: none; }
}

.journal-preview { border-top: 1px solid var(--line); }
.journal-page .lede { margin-bottom: 2rem; }
.article-card h2, .article-card h3 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { text-decoration: underline; }
.journal-article { max-width: 52rem; margin-inline: auto; }
.journal-article h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.journal-cover, .journal-body { margin-top: 1.8rem; }
.journal-cover img { width: 100%; max-height: 34rem; object-fit: cover; }
.journal-taxonomy { font-size: .88rem; margin-top: 1.75rem; }
.valuation-band { border-top: 1px solid var(--line); }
.contact-form .valuation-fields { margin-bottom: .9rem; }
.booking { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.1rem; margin-top: 1.25rem; }
.booking-qr { max-width: 9.5rem; margin: 0; }
.booking-qr img { width: 8rem; aspect-ratio: 1; object-fit: contain; }
.booking-qr figcaption { margin-top: .3rem; font-size: .72rem; color: var(--muted); }

.brand-group { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; padding-block: .4rem; }
.brand-signature { font-size: .72rem; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.site-header .brand:has(.mark) + .brand-signature { margin-inline-start: 3.35rem; margin-top: -.35rem; }
@media (max-width: 31rem) {
	.site-header nav ul { column-gap: .75rem; }
}

.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: center; border-top: 1px solid var(--line); }
.profile-image { justify-self: center; width: min(100%, 18rem); padding: .4rem; border: 1px solid var(--line); background: var(--white); }
.profile-image img { width: 100%; }
.profile-copy h2 + p { margin-top: 1rem; }
.profile-copy p { max-width: 42ch; }
@media (max-width: 48rem) {
	.profile { grid-template-columns: minmax(0, 1fr); }
	.profile-image { justify-self: start; width: min(72%, 15rem); }
}
