/* La Maison, contact, legal pages, search and 404 (wireframes 6–10): the prototype's page-house.css
   (scripts/assets/page-house.css, ddf9b78), on top of batch-shell.css. WordPress adaptations are
   marked « WP: »; the prototype's lists (<ol>) are groups of blocks here, so editors can change each
   text. */

/* La Maison */
/* Hero (owner review 1, pattern house-hero-image); Notion 01: white canvas, the brand only in small
   elements (thin Bronze lines). No motion. Text left, a photo right in a frame offset by a thin
   Bronze line. (The other variant, with the three-books motif, was never used and was removed in
   October 2026.) */
.house-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; margin-bottom: var(--within-gap); }
.house-hero > *, .house-hero__text > * { margin: 0; }
.house-hero h1 { margin: 0 0 30px; font-family: var(--font-display); font-size: clamp(4rem, 8.2vw, 7.6rem); font-weight: 400; line-height: .96; letter-spacing: -.025em; }
.house-hero__lead { max-width: 640px; font-size: 1.28rem; line-height: 1.55; }
.house-hero--image { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.house-hero--image h1 { font-size: clamp(3.8rem, 6.6vw, 6.4rem); }
/* No photo chosen yet (page « La Maison », Image mise en avant): the text alone, no empty column. */
.house-hero--image:not(:has(.house-hero__photo)) { grid-template-columns: minmax(0, 1fr); }
.house-hero__photo { position: relative; margin: 0 18px 18px 0; }
.house-hero__photo::after { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border: 1px solid var(--color-accent); pointer-events: none; }
.house-hero__photo { isolation: isolate; }
.house-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--color-surface); }
@media (max-width: 1020px) {
  .house-hero { gap: 40px; }
}
@media (max-width: 700px) {
  .house-hero, .house-hero--image { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .house-hero h1 { font-size: clamp(3.4rem, 15vw, 4.7rem); }
  .house-hero__lead { font-size: 1.08rem; }
  .house-hero__photo { margin: 0 12px 12px 0; }
  .house-hero__photo::after { inset: 12px -12px -12px 12px; }
}
.house-chapter { margin-top: var(--chapter-gap); }
.house-chapter > h2 { max-width: 900px; margin: 0 0 var(--heading-gap); font-family: var(--font-body); font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.08; }

.house-history .process { margin-bottom: 0; }
@media (min-width: 701px) { .house-history .process { padding-left: 0; } }
.house-history .process-step > * { margin: 0; }
.house-history .process-step h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.house-history .process-step p:not(.house-year) { font-size: 1.05rem; font-weight: 400; }
.house-history .process-step .house-year { margin: 0 0 .6rem; color: var(--color-accent); font-family: var(--font-body); font-size: 2rem; font-weight: 400; line-height: 1; }

.house-shelf { display: flex; align-items: flex-end; gap: 6px; width: fit-content; height: 96px; margin: var(--heading-gap) 0 20px; padding: 0 10px; border-bottom: 1px solid var(--color-accent); }
.house-shelf__spine { display: block; width: 22px; height: 80px; background: var(--color-text); }
.house-shelf__spine:nth-child(2) { height: 70px; }
.house-shelf__spine:nth-child(3) { height: 88px; }
.house-shelf__spine:nth-child(4) { height: 74px; }
.house-shelf__spine:nth-child(5) { height: 84px; }
.house-shelf__spine:nth-child(6) { height: 66px; }
.house-shelf__spine--bronze { background: var(--color-accent); }
.house-shelf__spine--sable { border: 1px solid var(--color-text); background: var(--color-surface-alt); }

.house-team { margin: 0 0 var(--heading-gap); }
.house-team img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 540px; object-fit: cover; object-position: 50% 30%; }
.house-founders__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.house-founder > * { margin: 0; }
.house-role { margin: 0 0 8px !important; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.house-founders__grid h3 { margin: 0 0 14px; font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
.house-founders__grid p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.6; }

.house-lead { max-width: var(--reading-width); margin: 0 0 var(--heading-gap); font-size: 1.15rem; line-height: 1.6; }
.house-more { margin: 20px 0 0; }
.batch-article-list--continued { border-top: 0; }
/* WP: the press rows written in the page (links to other sites): the prototype's externalRow(). */
.house-press .batch-article-row > * { margin: 0; }
.house-press .batch-article-row h3 a { text-decoration: none; }

@media (max-width: 767px) {
  .house-founders__grid { grid-template-columns: minmax(0, 1fr); gap: var(--within-gap); }
}

/* Contact. WP: the details are groups (label, value) instead of the prototype’s <dl>, from Réglages → Coordonnées. */
.contact-layout-lea { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 120px; align-items: start; }
.contact-layout-lea > * { margin: 0; }
.contact-details-lea { margin: 0; padding-top: 28px; border-top: 1px solid var(--color-accent); }
/* Réglages → Coordonnées all empty: no lone rule, and the form keeps its column. */
.contact-details-lea:empty { display: none; }
.contact-layout-lea > :last-child { grid-column: -2; }
.contact-details-lea > .contact-detail { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
.contact-detail > * { margin: 0; }
.contact-detail__label { font-weight: 600; }
.contact-details-lea a { border-bottom: 1px solid var(--color-accent); text-decoration: none; }
.contact-details-lea a:hover { color: var(--color-accent); }
.contact-form-lea { padding-top: 28px; border-top: 1px solid var(--color-accent); }
.contact-required { margin: 0 0 20px; }
.contact-summary { margin: 0 0 24px; padding: 14px 0 14px 18px; border-left: 3px solid var(--color-text); font-weight: 500; }
.contact-summary p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.contact-field { display: grid; gap: 8px; }
.contact-field:nth-child(n+3) { grid-column: 1 / -1; }
.contact-field label { font-weight: 600; }
.contact-field input, .contact-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--color-text); border-radius: 0; background: var(--color-surface); color: var(--color-text); font: inherit; }
.contact-field textarea { min-height: 170px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible, .contact-consent input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.contact-field [aria-invalid="true"], .contact-consent [aria-invalid="true"] { border-width: 2px; }
/* Errors are words next to the field (CL-09, A11Y-07), never colour alone. */
.contact-error { margin: 0; font-weight: 600; }
.contact-error::before { content: "Erreur : "; }
.contact-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; align-items: start; margin: 26px 0; }
.contact-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-text); }
.contact-consent a { border-bottom: 1px solid var(--color-accent); text-decoration: none; }
.contact-consent .contact-error { grid-column: 2; }
.contact-status { margin: 22px 0 0; font-weight: 500; }
.contact-status:empty { display: none; }

/* Contact Form 7 (owner decision): the forms use the prototype's classes (docs/forms/); CF7's own
   stylesheet is off, so what it needs is here. Errors are words next to the field, summarised under
   the form (CL-09, A11Y-07). */
.lea-cf7 .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lea-cf7 .hidden-fields-container { display: none; margin: 0; padding: 0; border: 0; }
.lea-cf7 .wpcf7-form-control-wrap { display: block; }
/* The prototype's fields are grid items (block boxes); inside CF7's wrapper they are made block too. */
.lea-cf7 .wpcf7-form-control-wrap > :is(input:not([type="checkbox"], [type="radio"]), textarea, select) { display: block; }
.lea-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 8px; font-weight: 600; }
.lea-cf7 .wpcf7-not-valid-tip::before { content: "Erreur : "; }
.lea-cf7 .wpcf7-not-valid { border-width: 2px !important; }
.lea-cf7 .wpcf7-response-output { margin: 22px 0 0; padding: 14px 0 14px 18px; border-left: 3px solid var(--color-text); font-weight: 500; }
.lea-cf7 .wpcf7-response-output:empty, .lea-cf7 .init .wpcf7-response-output { display: none; }
.lea-cf7 .invalid .wpcf7-response-output::before, .lea-cf7 .spam .wpcf7-response-output::before, .lea-cf7 .failed .wpcf7-response-output::before { content: "Erreur : "; font-weight: 600; }
.lea-cf7 .wpcf7-spinner { display: inline-block; width: 24px; height: 24px; margin: 0 0 0 16px; vertical-align: middle; visibility: hidden; }
.lea-cf7 .submitting .wpcf7-spinner { visibility: visible; }
.lea-cf7 .submitting .wpcf7-spinner::before { content: "…"; }
.lea-cf7 .wpcf7-submit:disabled { opacity: .45; cursor: not-allowed; }
.lea-cf7 .wpcf7-submit { border: 0; cursor: pointer; }
.lea-cf7 .wpcf7-submit::after { content: none; }
/* The consent checkbox: the box, then the sentence and its link. */
.contact-consent .wpcf7-form-control-wrap, .contact-consent .wpcf7-list-item { display: block; margin: 0; }
.contact-consent .wpcf7-list-item label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.contact-consent .wpcf7-list-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-text); }
.lea-cf7 .contact-consent { display: block; }
/* Choice (« Votre texte est écrit / reste à écrire ») and file. */
.contact-choice { margin: 0; padding: 0; border: 0; }
.contact-choice legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.contact-choice .wpcf7-list-item { display: flex; margin: 0 0 6px; }
.contact-choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-weight: 400; }
.contact-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-text); }
.contact-help { margin: -2px 0 4px; color: var(--color-text-muted); font-size: .92rem; }
.contact-field input[type="file"] { min-height: 0; padding: 12px 14px; }
/* The honeypot: out of sight and out of reach (not display: none, which some bots skip). */
.lea-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Dépôt de manuscrit: one column, as wide as the contact form. */
.manuscript-form { max-width: 820px; }
.manuscript-form .contact-form-lea { padding-top: 28px; }

/* Legal pages. WP: the text is the page content (headings and paragraphs); the table of contents is
   built from its level-2 headings. */
.legal { width: min(100%, var(--reading-width)); margin: 0 auto; }
.legal > * { margin: 0; }
.legal h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 5.4vw, 4.6rem); font-weight: 400; line-height: 1.02; }
.legal .batch-label { margin-bottom: 22px; }
.legal-updated { margin: 16px 0 0 !important; color: var(--color-text-muted); }
.legal-toc { margin-top: var(--heading-gap) !important; padding: 20px 0; border-top: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent); }
.legal-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: inline-block; padding: 3px 0; border-bottom: 1px solid var(--color-accent); line-height: 1.35; text-decoration: none; }
.legal-toc a:hover { color: var(--color-accent); }
.legal-copy { margin-top: var(--within-gap) !important; font-size: 20px; line-height: 1.7; overflow-wrap: break-word; }
.legal-copy > * { margin: 0 0 1.1em; }
.legal-copy h2 { margin: 2.2em 0 .7em; font-family: var(--font-body); font-size: clamp(1.8rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.15; scroll-margin-top: 110px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 1.6em 0 .5em; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }

/* Search */
.search-page .batch-intro { margin-bottom: var(--heading-gap); }
.search-form-lea { display: flex; align-items: flex-end; gap: 16px; max-width: 960px; }
.search-form-lea input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 2px solid var(--color-text); border-radius: 0; background: none; color: var(--color-text); font: inherit; font-size: 1.6rem; }
.search-form-lea input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.search-form-lea .wp-element-button { flex: none; }
.search-count { max-width: 960px; margin: var(--heading-gap) 0 0; font-weight: 500; }
.search-count:empty { display: none; }
.search-results { max-width: 960px; margin-top: 20px; }
.search-results:empty { display: none; }
.search-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-accent); }
.search-row a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--color-accent); text-decoration: none; }
.search-row__type { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.search-row__title { font-family: var(--font-body); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; font-weight: 600; }
.search-row a:hover .search-row__title, .search-row a:focus-visible .search-row__title { color: var(--color-accent); }

/* 404 */
.error-404 { display: grid; justify-items: center; max-width: 820px; margin: 0 auto; padding-top: var(--within-gap); text-align: center; }
.error-404 > * { margin: 0; }
.error-404 .eclipse-sign { width: min(640px, 100%); margin-bottom: var(--heading-gap); }
.error-404__label { margin: 0 0 18px !important; font-size: .86rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.error-404 h1 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.05; }
.error-404 > p:not(.error-404__label) { margin: 0; font-size: 1.2rem; }
.error-404__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: var(--heading-gap) !important; }
.error-404__actions > * { margin: 0; }

@media (max-width: 1020px) {
  .contact-layout-lea { grid-template-columns: minmax(0, 1fr); gap: var(--within-gap); }
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-details-lea > .contact-detail { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-copy { font-size: 18px; }
  .search-form-lea { flex-direction: column; align-items: stretch; }
  .search-form-lea input { font-size: 1.3rem; }
  .search-form-lea .wp-element-button { align-self: flex-start; }
  .search-row a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .search-row__type { grid-column: 1 / -1; }
}


/* La Maison: reference sequence, existing white canvas and native editable elements. */
.house-conviction { margin-top: var(--chapter-gap); padding-block: 32px; border-block: 1px solid var(--color-accent); }
.house-conviction > p:not(.batch-label) { max-width: 780px; }
.house-conviction h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.1; }
.house-conviction .wp-block-columns { gap: 36px; margin-block: 36px 24px; }
.house-conviction .wp-block-column { padding-top: 20px; border-top: 1px solid var(--color-accent); }
.house-conviction h3 { font-size: 1.35rem; }
.house-pages .house-founders.lea-element .house-founders__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.house-pages .house-founders.lea-element .house-founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: none; }
.house-pages .house-founders.lea-element .house-founders__grid h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
@media (max-width: 767px) {
 .house-pages .house-founders.lea-element .house-founders__grid { grid-template-columns: minmax(0, 1fr); }
 .house-pages .house-founders.lea-element .house-founder__photo img { max-width: 400px; }
}
