/* Immobilier Crosne — guide du Val d'Yerres */
:root {
  --green: #1f4d3a;
  --green-dark: #163a2b;
  --green-mid: #2f6b4f;
  --sage: #e8f0ea;
  --sage-2: #d6e5da;
  --sage-3: #f4f8f5;
  --terra: #c0603a;
  --terra-text: #a14a28;
  --terra-soft: #f7e6dc;
  --ink: #1b2a23;
  --text: #33443b;
  --muted: #56665d;
  --line: #dbe6de;
  --white: #ffffff;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 50, 35, .06), 0 10px 28px rgba(20, 50, 35, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.68 var(--sans);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.05rem, 6vw, 3.55rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1.05em; }
strong { color: var(--ink); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--green);
  font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.1;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-weight: 600; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.mainnav { display: none; align-items: center; gap: 4px; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem;
  padding: 8px 13px; border-radius: 999px;
}
.mainnav a:hover { background: var(--sage); color: var(--green); }
.mainnav a[aria-current="page"] { background: var(--sage); color: var(--green); }
.mainnav .nav-cta { background: var(--green); color: #fff; margin-left: 6px; }
.mainnav .nav-cta:hover, .mainnav .nav-cta[aria-current="page"] { background: var(--green-dark); color: #fff; }

.mobilenav summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--green); color: var(--green);
  border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .95rem;
}
.mobilenav summary::-webkit-details-marker { display: none; }
.mobilenav summary svg { width: 18px; height: 18px; }
.mobilenav-panel {
  position: absolute; left: 20px; right: 20px; top: 66px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px;
}
.mobilenav-panel a {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.mobilenav-panel a:hover, .mobilenav-panel a[aria-current="page"] { background: var(--sage); color: var(--green); }

@media (min-width: 900px) {
  .mainnav { display: flex; }
  .mobilenav { display: none; }
}

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s;
}
.button svg { width: 18px; height: 18px; }
.button-main { background: var(--green); color: #fff; }
.button-main:hover { background: var(--green-dark); color: #fff; }
.button-soft { background: #fff; color: var(--green); border-color: var(--green); }
.button-soft:hover { background: var(--sage); color: var(--green-dark); }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(180deg, var(--sage) 0%, #f2f7f3 62%, #ffffff 100%);
  padding-top: 52px;
  overflow: hidden;
}
.overline {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-mid); margin: 0 0 18px;
}
.overline::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); flex: none;
}
.hero h1 { max-width: 820px; color: var(--green); }
.hero h1 span { display: block; color: var(--green-mid); font-weight: 400; font-style: italic; }
.lead { font-size: 1.14rem; line-height: 1.65; max-width: 690px; color: var(--text); }
.hero-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 22px 0 0; font-size: .93rem; color: var(--muted); max-width: 640px;
}
.hero-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green-mid); }
.panorama {
  display: block; width: 100%; height: 150px; margin-top: 34px;
  pointer-events: none;
}
@media (min-width: 700px) { .panorama { height: 210px; } .hero { padding-top: 72px; } }
@media (min-width: 1200px) { .panorama { height: 250px; } }

/* ---------- Facts strip ---------- */
.facts { padding: 8px 0 18px; }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.facts li {
  background: var(--sage-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
}
.facts strong {
  display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--green); line-height: 1.15;
}
.facts span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, 1fr); gap: 18px; } .facts li { padding: 20px 22px 18px; } }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-tint { background: var(--sage-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.heading { max-width: 740px; margin-bottom: 30px; }
.heading p { color: var(--muted); font-size: 1.05rem; }
.kicker {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--terra-text); margin-bottom: 10px;
}
.kicker { display: block; }
.prose .kicker + h2, .kicker + h2 { margin-top: 0; }
sup { font-size: .68em; line-height: 0; vertical-align: super; }

.prose { max-width: 740px; }
.prose a, .heading a, .split a:not(.card):not(.button) {
  text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose h2 { margin-top: 1.9em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }

.split { display: grid; gap: 34px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 60px; align-items: start; }
}

/* ---------- Callout "À retenir" ---------- */
.callout {
  position: relative;
  background: var(--sage); border-radius: 18px;
  padding: 22px 22px 20px 24px; margin: 28px 0;
  border-left: 5px solid var(--terra);
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-text); margin-bottom: 8px;
}
.callout-label svg { width: 18px; height: 18px; }

/* ---------- Ticks list ---------- */
.ticks { list-style: none; padding: 0 !important; margin: 0 0 1.3em; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: .85em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid var(--sage-2);
}
.section-tint .ticks li::before { background-color: #fff; }

/* ---------- Criteria (home) ---------- */
.criteria { display: grid; gap: 16px; margin: 6px 0 0; }
.criterion {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.criterion .icon { margin: 0; }
.criterion h3 { font-size: 1.1rem; margin-bottom: .3em; }
.criterion p { margin: 0; font-size: .98rem; }
@media (min-width: 760px) { .criteria { grid-template-columns: 1fr 1fr; } }

/* ---------- Icons ---------- */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--sage); color: var(--green); margin-bottom: 16px; flex: none;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--green-mid); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 650; color: var(--green); display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: transform .15s; }
a.card:hover .more::after { transform: translateX(3px); }
.card .tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--terra-text); background: var(--terra-soft); border-radius: 999px; padding: 4px 11px; margin-bottom: 14px;
}
.card .date { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- Towns ---------- */
.towns { display: grid; gap: 16px; }
@media (min-width: 640px) { .towns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .towns { grid-template-columns: repeat(4, 1fr); } }
.town {
  background: #fff; border-radius: 16px; padding: 22px 20px 18px;
  border: 1px solid var(--line); border-top: 4px solid var(--green-mid);
}
.town h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.town h3 svg { width: 20px; height: 20px; color: var(--terra); flex: none; }
.town p { font-size: .96rem; margin: 0; }

/* ---------- Page head (inner pages) ---------- */
.pagehead {
  background: linear-gradient(180deg, var(--sage) 0%, #f3f8f4 70%, #ffffff 100%);
  padding-top: 34px; overflow: hidden;
}
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 6px; color: var(--terra); }
.pagehead h1 { font-size: clamp(1.95rem, 5vw, 3.05rem); color: var(--green); max-width: 860px; }
.pagehead .lead { margin-bottom: 0; }
.article-meta { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.pagehead-art { display: block; width: 100%; height: 70px; margin-top: 28px; pointer-events: none; }
@media (min-width: 700px) { .pagehead { padding-top: 48px; } .pagehead-art { height: 96px; } }

/* ---------- Guide layout with table of contents ---------- */
.guide { display: grid; gap: 30px; padding-top: 26px; padding-bottom: 70px; }
@media (min-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding-top: 40px; }
  .guide .toc { order: 2; position: sticky; top: 96px; align-self: start; }
}
.toc {
  background: var(--sage-3); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
}
.toc h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--terra-text); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.15em; font-size: .95rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--green); }
.toc a:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1.1em; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* ---------- Diagnostics list ---------- */
.diag { margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.diag div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.diag dt { font-weight: 700; color: var(--green); }
.diag dd { margin: 2px 0 0; }
@media (min-width: 700px) {
  .diag div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; }
  .diag dd { margin: 0; }
}

/* ---------- Compare (two boxes) ---------- */
.compare { display: grid; gap: 16px; margin: 6px 0 1.4em; }
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare section {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 8px; background: #fff;
}
.compare h3 { margin-top: 0 !important; font-size: 1.12rem; display: flex; gap: 10px; align-items: center; }
.compare h3 svg { width: 22px; height: 22px; color: var(--green-mid); flex: none; }
.compare ul { padding-left: 1.1em; font-size: .97rem; }

/* ---------- See also ---------- */
.seealso { margin-top: 2.4em; padding-top: 24px; border-top: 1px solid var(--line); }
.seealso h2 { font-size: 1.3rem; }

/* ---------- Contact ---------- */
.contact-box {
  display: grid; gap: 14px; justify-items: start;
  background: var(--sage); border-radius: var(--radius); padding: 28px 24px; margin: 8px 0 32px;
}
.contact-box .icon { background: #fff; margin: 0; }
.contact-email {
  font-family: var(--serif); font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 700; color: var(--green);
  overflow-wrap: anywhere;
}
.contact-box p { margin: 0; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer-wave { display: block; width: 100%; height: 36px; color: var(--green); pointer-events: none; margin-top: -1px; }
.footer { background: var(--green); color: #dfeae2; padding: 34px 0 26px; font-size: .95rem; }
.footer a { color: #ffffff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer-cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; } }
.footer .brand { color: #fff; }
.footer .brand small { color: #b9d3c1; }
.footer-cols p { margin: 14px 0 0; max-width: 340px; color: #dfeae2; }
.footer h2 {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: #b9d3c1; margin-bottom: 12px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-base {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: #b9d3c1; font-size: .88rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
