:root {
  --accent: #7d2a22;
  --ink: #14140f;
  --paper: #faf9f6;
  --paper-dim: #f4f2ec;
  --line: rgba(20,20,15,0.14);
  --muted: #45443d;
  --faint: #8d8b81;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Archivo, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
input, textarea, select, button { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

@keyframes ymFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,249,246,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-mark { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; color: var(--ink); }
.brand-role { font-family: var(--serif); font-size: 13px; font-style: italic; color: #5c5a52; line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav > a:not(.nav-cta) {
  position: relative; padding: 8px 12px; font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink);
}
.nav > a:not(.nav-cta):hover { color: var(--muted); }
.nav > a.active-link:not(.nav-cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink);
}
.nav-cta { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 26px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border: none;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #34332c; color: var(--paper); }
.btn-outline { border: 1px solid rgba(20,20,15,0.25); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #d8d4c8; }
.btn-outline-light { border: 1px solid rgba(250,249,246,0.35); color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--paper); }
.btn-block { width: 100%; text-align: center; }
.nav-cta.btn { padding: 11px 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Typography */
.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.06; letter-spacing: -0.01em; }
.h1-sm { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; }
.h2 { margin: 0 0 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); }
.h2.on-dark { color: var(--paper); margin: 0 0 14px; font-size: clamp(26px, 3.2vw, 38px); }
.h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 25px; }
.h3-lg { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 30px; }
.lead { margin: 26px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.lead.narrow { margin-top: 0; max-width: 42ch; }
.lead.wide { margin-top: 0; max-width: 60ch; }
.mb-lg { margin-bottom: 44px; }

/* Sections */
.section-pad { padding: 64px 24px 88px; }
.hero {
  padding: 72px 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: center;
}
.hero-photo { position: relative; }
.hero-photo img { aspect-ratio: 4/5; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; background: #eceae4; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-dim); }
.band .wrap { padding: 64px 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3.divided { gap: 1px; background: var(--line); }
.card { background: var(--paper); padding: 32px 28px 34px; display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--serif); font-size: 22px; color: var(--faint); }
.card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

.link-more { margin-top: 32px; display: inline-block; font-size: 13px; letter-spacing: 0.06em; color: var(--ink); cursor: pointer; border-bottom: 1px solid rgba(20,20,15,0.4); padding-bottom: 3px; background: none; border-left: none; border-right: none; border-top: none; }
.link-btn { font-family: inherit; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.grid-2.align-start { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start; }

.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step-last { border-bottom: 1px solid var(--line); }
.step .roman { font-family: var(--serif); font-size: 20px; color: var(--faint); }
.step h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.step p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

.cta-dark { background: var(--ink); color: var(--paper); }
.cta-dark-inner { padding: 64px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.on-dark-muted { margin: 0; color: rgba(250,249,246,0.78); font-size: 16px; line-height: 1.75; }

/* Domaines */
.domaines-list { margin-top: 56px; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.domaine-row { background: var(--paper); padding: 40px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.domaine-row p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.tick-list { display: flex; flex-direction: column; gap: 10px; }
.tick-list li { font-size: 14.5px; line-height: 1.6; color: var(--muted); padding-left: 16px; border-left: 2px solid rgba(20,20,15,0.3); }

.callout { margin-top: 48px; padding: 32px; border: 1px solid var(--line); background: var(--paper-dim); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: center; }
.callout p { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; justify-self: start; }
.callout .btn { justify-self: start; }

/* Cabinet */
.stat-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.stat { padding: 22px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; }

.honoraires { margin-top: 40px; padding: 28px; border-left: 2px solid var(--ink); background: var(--paper-dim); }
.honoraires h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.honoraires p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }

.sticky-col { position: sticky; top: 96px; }
.portrait-frame { aspect-ratio: 3/4; overflow: hidden; background: #eceae4; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mini-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.mini-contact span { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.mini-contact a { font-size: 13px; letter-spacing: 0.04em; }

/* RDV / form */
.info-box { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--paper-dim); border: 1px solid var(--line); }
.info-box h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.info-box p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.info-box .sep { height: 1px; background: var(--line); }

.form-panel { border: 1px solid rgba(20,20,15,0.18); padding: 32px; background: var(--paper); }
.rdv-form { display: flex; flex-direction: column; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.rdv-form label { display: flex; flex-direction: column; gap: 7px; }
.rdv-form label > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5c5a52; }
.rdv-form input[type="text"], .rdv-form input[type="tel"], .rdv-form input[type="email"], .rdv-form textarea {
  padding: 12px; border: 1px solid rgba(20,20,15,0.24); background: #fff; font-size: 15px; color: var(--ink); outline: none;
}
.rdv-form textarea { line-height: 1.6; resize: vertical; }
.rdv-form input:focus, .rdv-form textarea:focus { border-color: var(--ink); }

.chip-group { display: flex; flex-direction: column; gap: 9px; }
.chip-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5c5a52; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 15px; border: 1px solid rgba(20,20,15,0.24); font-size: 13.5px; cursor: pointer; background: transparent; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); }

.consent-row { flex-direction: row !important; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.consent-row span { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.form-error { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0; }
.fine-print { font-size: 12.5px; line-height: 1.6; color: var(--faint); margin: 0; }

.rdv-sent { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.sent-title { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.rdv-sent p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--muted); }

/* Contact */
.contact-rows { display: flex; flex-direction: column; }
.contact-row { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-row-last { border-bottom: 1px solid var(--line); }
.contact-row h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.contact-row p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.contact-big { font-family: var(--serif); font-size: 23px; line-height: 1.4; }
.contact-cta { margin-top: 32px; align-self: start; }

.map-frame { border: 1px solid rgba(20,20,15,0.18); background: #eceae4; overflow: hidden; }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 4/3; border: 0; filter: saturate(0.55) contrast(1.03); }
.map-links { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.map-links a { font-size: 13px; letter-spacing: 0.04em; border-bottom: 1px solid rgba(20,20,15,0.4); align-self: start; padding-bottom: 3px; }
.map-links p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-dim); margin-top: auto; }
.footer-grid { padding: 44px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-items: start; }
.footer-mark { height: 40px; width: auto; margin-bottom: 16px; }
.footer-grid p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.footer-grid h3 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.fine { font-size: 12.5px; line-height: 1.8; color: #6b6961; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { padding: 18px 24px; font-size: 12px; color: var(--faint); }

/* Page routing */
main { flex: 1; }
.page { display: none; animation: ymFade 0.4s ease both; }
.page.active { display: block; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .nav { justify-content: flex-start; }
}
