/* =========================================================================
   PAJE Immobilier — feuille de style unique
   Couleurs de marque : Rifle Green #424832, Whisper White #EDE6DB
   ========================================================================= */

/* ---------- Ethos Nova ---------- */
@font-face {
  font-family: 'Ethos Nova';
  src: url('../fonts/EthosNova-Light.woff2') format('woff2'),
       url('../fonts/EthosNova-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ethos Nova';
  src: url('../fonts/EthosNova-Regular.woff2') format('woff2'),
       url('../fonts/EthosNova-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ethos Nova';
  src: url('../fonts/EthosNova-Medium.woff2') format('woff2'),
       url('../fonts/EthosNova-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ethos Nova';
  src: url('../fonts/EthosNova-Bold.woff2') format('woff2'),
       url('../fonts/EthosNova-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- variables ---------- */
:root {
  --g0: #1e2812;
  --g1: #424832;   /* Rifle Green */
  --g2: #565d45;
  --g3: #8c9179;
  --g4: #c6c9ba;
  --cream: #f6f2ea;
  --whisper: #ede6db;  /* Whisper White */
  --sand: #e4dac8;
  --ink: #2b2b26;
  --mut: #75746c;
  --line: #ded7c9;
  --white: #fff;

  --pad: 90px;
  --max: 1400px;
  --r: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Ethos Nova', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.18;
  margin: 0;
  color: var(--g1);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

section { padding: 96px 0; }
.sec-cream  { background: var(--cream); }
.sec-white  { background: var(--white); }
.sec-whisper{ background: var(--whisper); }
.sec-green  { background: var(--g1); color: var(--cream); }
.sec-dark   { background: var(--g0); color: var(--cream); }
.sec-green h1, .sec-green h2, .sec-dark h1, .sec-dark h2 { color: #fff; }

/* texture lin discrète sur les fonds crème */
.sec-cream, .sec-whisper {
  background-image:
    repeating-linear-gradient(0deg, rgba(120,110,90,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120,110,90,.022) 0 1px, transparent 1px 3px);
}

/* ---------- éléments récurrents ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--g3);
  margin: 0 0 14px;
  display: block;
}
.sec-green .eyebrow, .sec-dark .eyebrow, .band .eyebrow { color: var(--g4); }

.rule-dot { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.rule-dot::before { content: ""; width: 52px; height: 3px; background: var(--g4); }
.rule-dot::after  { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g4); }

.lead { font-size: 1.15rem; color: var(--mut); max-width: 62ch; margin-top: 18px; }
.sec-green .lead, .sec-dark .lead, .band .lead { color: var(--g4); }
.note { font-size: .82rem; color: var(--g3); margin-top: 26px; }
.strong-line { font-weight: 500; color: var(--g1); font-size: 1.2rem; }
.measure { max-width: 62ch; }

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--g1);
  text-decoration: none;
  font-size: 1rem;
  border: 0; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-green { background: var(--g1); color: var(--cream); }
.btn-green:hover { background: var(--g0); }
.link-u {
  text-decoration: none; border-bottom: 1px solid var(--g3);
  padding-bottom: 3px; margin-left: 28px; font-size: 1rem;
}

/* ---------- en-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e3d8;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.site-head .logo { display: block; line-height: 0; }
.site-head .logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { text-decoration: none; font-size: .97rem; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--g1); transition: right .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--g1); margin: 5px 0; transition: .2s; }

/* ---------- bandeaux photo ---------- */
.band {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 96px 0;
}
.band-short { min-height: 460px; }
.band > .wrap { position: relative; z-index: 2; }
.band picture, .band img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(30,40,18,.90) 0%, rgba(30,40,18,.72) 34%, rgba(30,40,18,.20) 62%, rgba(30,40,18,0) 84%),
    linear-gradient(180deg, rgba(30,40,18,0) 40%, rgba(30,40,18,.30) 100%);
}
.band h1, .band h2 { color: #fff; max-width: 17ch; }
.band .lead { max-width: 46ch; color: var(--cream); }
.band-actions { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.band-actions .link-u { color: var(--cream); }

/* ---------- grilles ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split  { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }

.card {
  background: #fff; border-radius: var(--r); padding: 30px 32px;
  box-shadow: 7px 7px 0 var(--whisper);
}
.card h3 { margin-bottom: 6px; color: var(--ink); font-weight: 300; }
.card p { color: var(--mut); font-size: .96rem; margin: 0; }

/* liste numérotée : ce que la visite ne montre pas */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  background: #fff; border-radius: 18px; padding: 22px 28px 22px 74px;
  position: relative;
}
.checks li::before {
  counter-increment: c; content: counter(c);
  position: absolute; left: 26px; top: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--g1); color: #fff;
  font-size: .78rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.checks { counter-reset: c; }
.checks b { display: block; font-weight: 300; font-size: 1.12rem; color: var(--ink); margin-bottom: 4px; }
.checks span { font-size: .95rem; color: var(--mut); }

/* liste à tirets */
.dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 74ch; }
.dashes li { padding-left: 34px; position: relative; font-size: 1.02rem; }
.dashes li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 18px; height: 2px; background: var(--g4);
}

/* dix étapes */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.step {
  background: #fff; border-radius: var(--r); padding: 26px 30px;
  box-shadow: 7px 7px 0 var(--whisper);
  display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: start;
}
.step .num { font-size: 2.6rem; color: var(--g4); line-height: 1; }
.step h3 { font-size: 1.28rem; margin-bottom: 6px; color: var(--ink); }
.step p { font-size: .95rem; color: var(--mut); margin: 0; }

/* frise des cinq temps */
.phases { position: relative; margin-top: 30px; }
.phases-line { height: 2px; background: var(--g4); position: relative; margin: 0 0 0; }
.phases ol { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; }
.phases li { text-align: center; flex: 1; }
.phases .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--g1); margin: -10px auto 16px; }
.phases b { display: block; font-weight: 300; font-size: 1.12rem; }
.phases small { color: var(--mut); font-size: .84rem; }

/* citation */
.quote {
  background: #fff; border-left: 5px solid var(--g3);
  border-radius: 0 20px 20px 0; padding: 30px 36px;
  max-width: 66ch; font-size: 1.06rem; color: var(--g1);
}

/* portraits */
.portrait { border-radius: 20px; overflow: hidden; }
.portrait img { width: 100%; height: auto; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }

/* barème */
.tarif { border-radius: 24px; padding: 38px 40px; }
.tarif-green { background: var(--g1); color: var(--cream); }
.tarif-green .eyebrow { color: var(--g4); }
.tarif-white { background: #fff; box-shadow: 10px 10px 0 var(--sand); }
.tarif .big { font-size: 3.6rem; line-height: 1; color: #fff; }
.tarif-white .big { font-size: 2.4rem; color: var(--g1); }
.tarif .unit { font-size: 1.15rem; color: var(--g4); margin-left: 10px; }
.tarif-white .unit { color: var(--mut); margin: 0; display: block; }
.tarif .plus { font-weight: 500; margin-top: 22px; }
.tarif small { display: block; margin-top: 10px; font-size: .92rem; color: var(--g4); }
.tarif-white small { color: var(--mut); }

/* comparaison d'échelle */
.scale { display: grid; gap: 20px; margin-top: 30px; max-width: 1000px; }
.scale-row { display: grid; grid-template-columns: 340px 1fr auto; gap: 20px; align-items: center; }
.scale-bar { height: 26px; border-radius: 999px; background: var(--whisper); position: relative; }
.scale-bar i { display: block; height: 100%; border-radius: 999px; background: var(--g1); }
.scale-row.alt .scale-bar i { background: var(--g3); }
.scale-val { font-weight: 500; color: var(--g1); white-space: nowrap; }

/* graphique du marché */
.chart { margin-top: 34px; }
.chart-row { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin-bottom: 24px; }
.chart-row > span { font-size: 1rem; }
.chart-bars { display: grid; gap: 6px; }
.chart-bar { height: 17px; border-radius: 999px; background: var(--whisper); position: relative; }
.chart-bar i { display: block; height: 100%; border-radius: 999px; background: var(--g1); }
.chart-bar.maison i { background: var(--g3); }
.chart-bar b { position: absolute; left: calc(var(--w) + 12px); top: -3px; font-size: .84rem; font-weight: 500; color: var(--g1); white-space: nowrap; }
.legend { display: flex; gap: 30px; margin-top: 10px; font-size: .9rem; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* formulaire */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { display: block; font-size: .88rem; color: var(--g4); margin-bottom: 7px; }
.sec-white .form label, .sec-cream .form label { color: var(--mut); }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: #fff; font-family: inherit; font-size: 1rem; font-weight: 300;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--g4); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--g4); }
.form .consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: .95rem; margin-top: 4px; }
.form-msg.ok { color: var(--g4); }
.form-msg.ko { color: #e5a898; }

/* pied de page */
.site-foot { background: var(--g0); color: var(--g4); padding: 64px 0 40px; font-size: .93rem; }
.site-foot a { color: var(--g4); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 34px; margin-bottom: 18px; }
.foot-grid h4 { font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--g3); margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(198,201,186,.2); display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; color: var(--g3); }

/* pages de texte long */
.prose { max-width: 74ch; }
.prose h2 { margin: 46px 0 14px; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 260px 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .site-head .wrap { height: 78px; }
  .site-head .logo img { height: 44px; }
  body { font-size: 17px; }
  section { padding: 62px 0; }

  .nav {
    position: fixed; inset: 78px 0 auto 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 8px 22px 22px; border-bottom: 1px solid #e8e3d8;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid #f0ece2; width: 100%; font-size: 1.05rem; }
  .burger { display: block; }

  .band { min-height: 560px; padding: 70px 0; }
  .band-short { min-height: 400px; }
  .band::after {
    background:
      linear-gradient(180deg, rgba(30,40,18,.42) 0%, rgba(30,40,18,.80) 62%, rgba(30,40,18,.90) 100%);
  }
  .band h1, .band h2 { max-width: none; }

  .grid-2, .grid-3, .grid-4, .steps, .split, .split-wide { grid-template-columns: 1fr; gap: 18px; }
  .split { gap: 26px; }
  .portrait { max-width: 320px; }

  .phases ol { flex-direction: column; gap: 18px; }
  .phases li { text-align: left; display: flex; align-items: baseline; gap: 14px; }
  .phases .dot { margin: 0; width: 12px; height: 12px; flex: 0 0 12px; }
  .phases-line { display: none; }

  .scale-row { grid-template-columns: 1fr; gap: 8px; }
  .chart-row { grid-template-columns: 1fr; gap: 8px; }
  .chart-bar b { position: static; display: block; margin-top: 2px; }
  .chart-bar { height: 15px; }

  .form .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; }
  .tarif { padding: 30px 26px; }
  .tarif .big { font-size: 3rem; }
}

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