/* ==========================================================================
   YIELDO — Cabinet d'expertise économique, résidences de tourisme
   Palette : papier / encre bouteille / oxblood (rare) / laiton (filets)
   ========================================================================== */

:root {
  --ink: #14201a;          /* quasi-noir vert bouteille — textes forts, sections sombres */
  --paper: #f3f0e6;        /* papier ivoire — fond principal */
  --paper-alt: #eae5d6;    /* papier plus soutenu — cartes, sections alternées */
  --green: #2f4a3c;        /* vert bouteille — marque, liens, boutons */
  --green-dark: #203127;
  --oxblood: #7a2e2e;      /* accent rare — cachet, CTA fort, chiffres clés */
  --brass: #a8863e;        /* laiton — filets, puces, petits accents */
  --slate: #33322c;        /* texte courant */
  --slate-soft: #63615a;   /* texte secondaire */
  --line: #d8d2bf;         /* filets discrets sur papier clair */
  --line-dark: #3a4a3f;    /* filets sur fond sombre */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 480; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.mono, .figure { font-family: var(--mono); }

/* ---------- Header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  display: inline-block;
  width: 15px;
  height: 1px;
  background: var(--oxblood);
  transform: translateY(-10px) rotate(-32deg);
  margin-left: 3px;
}
.navlinks {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.94rem;
}
.navlinks a {
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.navlinks a:hover, .navlinks a.active {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--oxblood);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper) !important;
  background: var(--green);
  padding: 11px 20px;
  border: 1px solid var(--green);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--green-dark);
  text-decoration: none;
}
.navtoggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn.on-dark:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--slate-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.ledger {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.ledger .row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.ledger .row span:first-child { color: var(--slate-soft); }
.ledger .row span.figure { color: var(--ink); font-weight: 500; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--ink); color: #d9d6c8; border-bottom: 1px solid var(--line-dark); }
section.dark h2, section.dark h3 { color: var(--paper); }
section.dark .eyebrow { color: var(--brass); }
section.dark p { color: #b9b6a6; }
section.dark a:not(.btn) { color: #e3cf9d; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
}
section.alt .card { background: var(--paper); }
.card .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-soft); margin-bottom: 0; font-size: 0.96rem; }
.card a.more { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* situation list */
.situation-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.situation-item .num { font-family: var(--mono); color: var(--brass); font-size: 0.85rem; }
.situation-item h3 { margin-bottom: 8px; }
.situation-item p { margin: 0; color: var(--slate-soft); font-size: 0.95rem; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
}
.plan.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.plan .num { font-family: var(--mono); font-size: 0.78rem; color: var(--brass); letter-spacing: 0.08em; margin-bottom: 16px; }
.plan h3 { margin-bottom: 4px; }
.plan .price {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--ink);
  margin: 14px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.plan .price small { font-size: 0.9rem; color: var(--slate-soft); font-family: var(--sans); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex-grow: 1; }
.plan li {
  font-size: 0.9rem;
  padding: 9px 0 9px 20px;
  position: relative;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
}
.plan li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}
.plan li:last-child { border-bottom: none; }

.scope-box {
  border: 1px solid var(--ink);
  padding: 30px 34px;
  margin-top: 20px;
  background: var(--paper-alt);
}
.scope-box .eyebrow { margin-bottom: 10px; }
.scope-box p { font-size: 0.92rem; color: var(--slate-soft); margin-bottom: 0; }

/* residences */
.res-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.res-card .thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--green) 0%, var(--ink) 100%);
  position: relative;
}
.res-card .thumb::after {
  content: attr(data-loc);
  position: absolute;
  bottom: 12px; left: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
}
.res-card .body { padding: 26px; flex-grow: 1; display: flex; flex-direction: column; }
.res-card h3 { margin-bottom: 6px; }
.res-card .exploitant { font-family: var(--mono); font-size: 0.78rem; color: var(--brass); margin-bottom: 12px; }
.res-card p { color: var(--slate-soft); font-size: 0.92rem; flex-grow: 1; }

.callout {
  border-left: 3px solid var(--oxblood);
  padding: 22px 26px;
  background: var(--paper-alt);
  margin: 36px 0;
}
.callout p { margin-bottom: 14px; font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }

.res-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.res-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; font-family: var(--mono); font-size: 0.82rem; color: var(--slate-soft); }
.res-meta strong { color: var(--ink); display: block; font-family: var(--sans); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

.placeholder-note {
  font-size: 0.86rem;
  color: var(--oxblood);
  background: #f4e9e4;
  border: 1px dashed var(--oxblood);
  padding: 14px 18px;
  margin: 18px 0;
}

/* about */
.stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat { border-top: 1px solid var(--brass); padding-top: 12px; min-width: 140px; }
.stat .n { font-family: var(--mono); font-size: 1.6rem; color: var(--ink); display: block; }
.stat .l { font-size: 0.82rem; color: var(--slate-soft); }

/* contact / rdv */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.96rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate);
  margin-bottom: 16px;
}
form.contact label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 6px;
}
form.contact textarea { resize: vertical; min-height: 130px; }
.calendly-inline-widget { border: 1px solid var(--line); }

/* footer */
footer.site {
  background: var(--ink);
  color: #a9a693;
  padding: 56px 0 30px;
  font-size: 0.88rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: var(--paper); font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
footer.site a { color: #cfccba; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; }
.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #7c7a6b;
}
.foot-bottom a { color: #9c9a89; }

/* dash list (reusable outside .plan) */
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li {
  font-size: 0.95rem;
  padding: 10px 0 10px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.dash-list li:last-child { border-bottom: none; }

/* numbered process list */
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.process-list li:last-child { border-bottom: none; }
.process-list .step-num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.82rem;
  min-width: 24px;
  flex-shrink: 0;
}

/* offer detail blocks */
.offer-block { padding: 68px 0; border-bottom: 1px solid var(--line); }
.offer-block:last-child { border-bottom: none; }
.offer-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 4px;
}
.offer-price-tag { font-family: var(--mono); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.offer-promise {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  max-width: 42ch;
  margin: 8px 0 36px;
  line-height: 1.35;
}
.offer-sub { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin: 40px 0 14px; }
.offer-sub:first-child { margin-top: 0; }
.deliverable-box { border: 1px solid var(--line); background: var(--paper-alt); padding: 26px 28px; }
.deliverable-box .dash-list li { border-bottom-color: var(--line); }

/* legal pages */
.legal-body h2 { margin-top: 46px; font-size: 1.2rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--slate-soft); font-size: 0.95rem; }
.legal-body { max-width: 74ch; }

/* responsive */
@media (max-width: 880px) {
  .hero .grid, .grid-3, .grid-2, .pricing, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .situation-item { grid-template-columns: 50px 1fr; }
  .situation-item .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
}

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