/* aliw.fr — listing T3 Meuniers
   Visual thesis: 1970s Paris modernism as a contemporary architecture feature.
   Cool plaster light, iron-green ink, one verdigris accent.
   Source Serif 4 display / Source Sans 3 UI. Sharp crops, structure over shadow.
*/

:root {
  --plaster: #eef1ee;
  --plaster-deep: #e2e7e2;
  --ink: #1a221f;
  --stone: #5a655e;
  --rule: #c5cbc6;
  --surface: #f7f8f6;
  --verdigris: #2b564c;
  --verdigris-hover: #1f4038;
  --verdigris-tint: color-mix(in srgb, var(--verdigris) 12%, transparent);
  --warn: #7a4e0e;
  --warn-bg: #f3e8c8;
  --ok: #1f5c3a;
  --ok-bg: #e4f0e8;
  --err: #8b1e1e;
  --err-bg: #f8e8e8;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --wrap: 72rem;
  --narrow: 40rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid-line: color-mix(in srgb, var(--ink) 8%, transparent);
  color-scheme: light;
  accent-color: var(--verdigris);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--ink);
  background: var(--plaster);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--verdigris);
  text-underline-offset: 0.18em;
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
}

a:hover { color: var(--verdigris-hover); }

:focus-visible {
  outline: 2px solid var(--verdigris);
  outline-offset: 3px;
}

::selection {
  background: var(--verdigris);
  color: var(--plaster);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  inset-block-start: -100%;
  z-index: 1000;
  background: var(--verdigris);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: var(--space-4);
  color: #fff;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--plaster);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--stone);
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-5);
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-list a:hover { color: var(--verdigris); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--verdigris);
  color: #fff !important;
}

.nav-cta:hover { background: var(--verdigris-hover); }

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.nav-drawer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.nav-drawer[hidden] { display: none; }

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.nav-drawer a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.85rem 0;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 880px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--verdigris);
  color: #fff;
}

.btn-primary:hover {
  background: var(--verdigris-hover);
  color: #fff;
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--rule);
}

.text-link:hover { color: var(--verdigris); }

/* Hero */
.hero {
  padding-block: var(--space-5) var(--space-8);
}

@media (min-width: 900px) {
  .hero { padding-block: var(--space-7) var(--space-8); }
}

.hero-grid {
  display: grid;
  gap: var(--space-4) var(--space-6);
}

.hero-place {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--stone);
}

.hero-context {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--stone);
  max-width: 36rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 4.05rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  max-width: 12.5em;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas:
      "place media"
      "context media"
      "title media"
      "after media";
    gap: 0.65rem clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
  }
  .hero-place { grid-area: place; }
  .hero-context { grid-area: context; }
  .hero h1 { grid-area: title; margin-top: var(--space-4); }
  .hero-media { grid-area: media; }
  .hero-after { grid-area: after; align-self: end; }
}

.lead {
  margin: var(--space-5) 0 var(--space-6);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 38rem;
  text-wrap: pretty;
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin: 0 0 var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--verdigris);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price-note {
  font-size: 0.9375rem;
  color: var(--stone);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: 0;
}

.hero-media {
  margin: var(--space-2) 0 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  min-height: 12rem;
}

@media (min-width: 960px) {
  .hero-media {
    margin: 0;
    aspect-ratio: 4 / 5;
    min-height: 28rem;
    align-self: stretch;
  }
}

/* Placeholders — modular facade grid, honest slots */
.placeholder-block {
  background-color: var(--plaster-deep);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.placeholder-inner {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-5);
  color: var(--stone);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.placeholder-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--warn);
  background: var(--warn-bg);
  padding: 0.22rem 0.45rem;
  letter-spacing: 0.02em;
}

.placeholder-hint {
  font-size: 0.875rem;
  line-height: 1.4;
}

.tag-todo {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--warn);
  background: var(--warn-bg);
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
}

/* Sections */
.section {
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .section { padding-block: var(--space-8); }
}

.section-mineral { background: var(--plaster-deep); }

.section-head {
  margin-bottom: var(--space-6);
  max-width: 38rem;
}

.section-head h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  color: var(--stone);
  max-width: 42rem;
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 var(--space-4);
  max-width: 42rem;
  text-wrap: pretty;
}

/* Atouts — divider list, no cards */
.atouts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.atouts-list li {
  display: grid;
  gap: 0.3rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .atouts-list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-7);
  }
}

.atouts-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.atouts-list span { color: var(--stone); }

/* Specs */
.surfaces-layout {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 880px) {
  .surfaces-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-7);
    align-items: end;
  }
}

.spec-table {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--rule);
}

.spec-table > div {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) 1fr;
  gap: var(--space-3);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.spec-table dt {
  margin: 0;
  color: var(--stone);
  font-size: 0.9375rem;
}

.spec-table dd {
  margin: 0;
  font-weight: 500;
}

.monument {
  margin: 0;
  display: grid;
  gap: var(--space-3);
  padding-bottom: 0.4rem;
}

.monument-figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 10vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--verdigris);
  font-variant-numeric: tabular-nums;
}

.monument-unit {
  font-size: 0.28em;
  margin-inline-start: 0.15em;
  letter-spacing: -0.02em;
}

.monument-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.monument-note {
  color: var(--stone);
  max-width: 22rem;
  text-wrap: pretty;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}

.gallery-item .placeholder-inner { min-height: 0; }

.plan-block {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.placeholder-plan { min-height: 16rem; }

/* DPE — official sheet, highly visible */
.dpe-sheet {
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: var(--space-6);
}

.dpe-banner {
  display: inline-block;
  margin: 0 0 var(--space-5);
}

.dpe-grid {
  display: grid;
  gap: var(--space-5);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}

@media (min-width: 720px) {
  .dpe-grid { grid-template-columns: 1fr 1fr; }
  .dpe-item-wide { grid-column: 1 / -1; }
}

.dpe-item h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone);
}

.dpe-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dpe-hint {
  margin: var(--space-2) 0 0;
  font-size: 0.875rem;
  color: var(--stone);
}

.dpe-foot {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--stone);
  max-width: 42rem;
  text-wrap: pretty;
}

/* Contact */
.section-contact {
  background: var(--plaster-deep);
}

.contact-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 920px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-7);
    align-items: start;
  }
}

.contact-facts {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--stone);
}

.contact-facts strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: var(--space-6);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { margin-bottom: var(--space-4); }

.field-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}

.field legend { padding: 0; }

.field abbr {
  text-decoration: none;
  color: var(--err);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--plaster);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--verdigris);
  box-shadow: 0 0 0 3px var(--verdigris-tint);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--err);
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--stone);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--err);
}

.choice-list {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--plaster);
  font-weight: 500;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--verdigris);
  background: color-mix(in srgb, var(--verdigris) 7%, var(--surface));
}

.choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.choice-consent {
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
}

.choice-consent span {
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--stone);
}

.form-status {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  font-weight: 500;
}

.form-status.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.form-status.is-err {
  background: var(--err-bg);
  color: var(--err);
}

.form-legal {
  margin: var(--space-4) 0 0;
  font-size: 0.8125rem;
  color: var(--stone);
  text-align: start;
}

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--plaster) 20%, transparent);
  background: var(--ink);
  color: #cdd3ce;
  padding-block: var(--space-7);
}

.site-footer a { color: #fff; }

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 0.7fr;
  }
}

.footer-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 0 0 var(--space-4);
  font-size: 0.9375rem;
  max-width: 46rem;
  text-wrap: pretty;
}

.footer-meta p { margin-bottom: var(--space-2); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Motion: one quiet entrance, opacity only — no per-card slide */
@media (prefers-reduced-motion: no-preference) {
  .hero-place,
  .hero-context,
  .hero h1,
  .hero-after {
    animation: fade-in 0.7s var(--ease) both;
  }

  .hero-media {
    animation: fade-in 0.85s var(--ease) 0.1s both;
  }

  .reveal {
    opacity: 0;
    transition: opacity 0.55s var(--ease);
  }

  .reveal.is-in { opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
