/* ============================================================
   AJRENTAL — Single-page design system (skill-driven rebuild)
   taste-skill + impeccable + Emil Kowalski polish
   Palette: cool ink + cool snow + committed pine green (no cream, no AI-purple)
   Type: Bricolage Grotesque (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  /* surfaces / ink */
  --ink:      #14181a;
  --ink-2:    #1b2123;
  --snow:     #f5f6f5;
  --white:    #ffffff;

  /* committed accent: trust blue (Labrecque & Milne: blue = competence/security) */
  --pine:     #1b4d78;
  --pine-d:   #143a5c;
  --pine-l:   #5fa0d6;   /* on dark bg */
  --pine-tint:#e8eef4;

  /* text */
  --stone:    #525a57;   /* secondary on light */
  --stone-d:  #9aa5a0;   /* secondary on dark */

  /* lines */
  --line:     rgba(20,24,26,0.12);
  --line-2:   rgba(20,24,26,0.07);
  --line-d:   rgba(245,246,245,0.16);

  --font-d: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-b: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 56px);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo-ish, Emil-approved */
  --dur: 200ms;

  --z-nav: 100;
  --z-menu: 200;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; width: 100%; overscroll-behavior-x: none; }
body {
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--pine); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

.skip {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--pine); color: var(--white);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
.h-l  { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-m  { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.h-s  { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; }
.accent { color: var(--pine); }
.on-dark .accent { color: var(--pine-l); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--stone);
  max-width: 54ch;
  text-wrap: pretty;
}
.muted { color: var(--stone); }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pine);
  margin-bottom: 18px;
}
.kicker::before { content: ''; display:inline-block; width:24px; height:2px; background: var(--pine); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.on-dark .kicker { color: var(--pine-l); }
.on-dark .kicker::before { background: var(--pine-l); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px;
  font-weight: 600; font-size: 15px;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--pine-d); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(21,67,49,0.65); }

.btn-line { border: 1.5px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-line { border-color: var(--line-d); color: var(--white); }
.on-dark .btn-line:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-ghost { color: var(--pine); padding-inline: 4px; }
.btn-ghost:hover { color: var(--pine-d); }
.on-dark .btn-ghost { color: var(--pine-l); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: 68px; display: flex; align-items: center;
  background: rgba(245,246,245,0.5);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(245,246,245,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.logo { font-family: var(--font-d); font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.logo .accent { color: var(--pine); }
.nav__links { display: none; gap: 30px; }
@media (min-width: 1000px) { .nav__links { display: flex; align-items: center; } }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink); opacity: 0.78; transition: opacity var(--dur) var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__cta { display: none; }
@media (min-width: 760px) { .nav__cta { display: inline-flex; } }

.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; transition: background var(--dur) var(--ease); }
.burger:hover { background: rgba(20,24,26,0.06); }
.burger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1000px) { .burger { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  padding: 84px var(--pad) 40px;
  transform: translateX(100%); transition: transform 360ms var(--ease);
  visibility: hidden;
}
.menu.is-open { transform: none; visibility: visible; }
.menu__close {
  position: absolute; top: 16px; right: var(--pad);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu__close:hover { border-color: var(--pine-l); background: rgba(255,255,255,0.06); }
.menu__close::before, .menu__close::after {
  content: ''; position: absolute; width: 17px; height: 2px; background: var(--white); border-radius: 2px;
}
.menu__close::before { transform: rotate(45deg); }
.menu__close::after { transform: rotate(-45deg); }
.menu > a { font-family: var(--font-b); font-weight: 500; font-size: 18px; letter-spacing: 0; padding: 17px 0; color: var(--white); opacity: 0.9; border-bottom: 1px solid rgba(255,255,255,0.1); }
.menu > a:hover { color: var(--pine-l); opacity: 1; }
.menu__foot { position: absolute; bottom: var(--pad); left: var(--pad); font-size: 14px; color: var(--stone-d); display: flex; flex-direction: column; gap: 6px; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(72px, 11vw, 140px); }
.sec-tight { padding-block: clamp(48px, 7vw, 90px); }
.dark { background: var(--ink); color: var(--snow); }
.dark .lead, .dark .muted { color: var(--stone-d); }
.dark .h-xl, .dark .h-l, .dark .h-m, .dark .h-s { color: var(--white); }
.pine-sec { background: var(--pine); color: var(--white); }
.pine-sec .lead { color: rgba(255,255,255,0.84); }

.head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 64px); }
.head .lead { margin-top: 20px; }

/* ---------- hero (asymmetric split) ---------- */
.hero { padding-top: 68px; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
  min-height: calc(100dvh - 68px);
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 72px); }
}
.hero__title { margin-bottom: 24px; max-width: 16ch; }
.hero__sub { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__media {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  aspect-ratio: 5 / 6; background: var(--pine-tint);
  box-shadow: 0 40px 80px -40px rgba(20,24,26,0.4);
}
@media (min-width: 940px) { .hero__media { aspect-ratio: 4 / 5; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(245,246,245,0.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }

/* ---------- trust bar ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 28px 0; }
.trust > div + div { border-left: 1px solid var(--line); padding-left: clamp(16px, 4vw, 40px); }
.trust dt { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; color: var(--ink); }
.trust dd { font-size: 14px; color: var(--stone); margin-top: 4px; }
@media (max-width: 620px) {
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- steps (horizontal flow, hairline) ---------- */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 32px 0; border-top: 2px solid var(--ink); }
@media (min-width: 820px) { .step { padding: 0 36px 0 0; border-top: 2px solid var(--ink); padding-top: 28px; } .step + .step { padding-left: 36px; border-left: 1px solid var(--line); } }
.step__n { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--pine); letter-spacing: 0.02em; }
.step h3 { margin: 14px 0 12px; }
.step p { color: var(--stone); font-size: 15.5px; max-width: 34ch; }

/* ---------- avantages (editorial 2-col, no cards) ---------- */
.adv { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 88px); }
@media (min-width: 820px) { .adv { grid-template-columns: 1fr 1fr; } }
.adv__item { padding-top: 26px; border-top: 1px solid var(--line-d); }
.adv__item h3 { margin-bottom: 14px; max-width: 20ch; }
.adv__item p { color: var(--stone-d); font-size: 16px; max-width: 44ch; }
.adv__item .num { font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--pine-l); display: block; margin-bottom: 12px; }

/* ---------- comparison table ---------- */
.cmp { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; min-width: 640px; border-collapse: collapse; }
.cmp th { text-align: left; font-family: var(--font-b); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; padding: 18px 24px; }
.cmp thead th { background: var(--ink); color: var(--white); }
.cmp thead th.is-ajr { background: var(--pine); }
.cmp th:first-child { width: 28%; }
.cmp td { padding: 18px 24px; font-size: 15px; vertical-align: top; line-height: 1.45; border-top: 1px solid var(--line); }
.cmp td:first-child { font-weight: 600; }
.cmp tbody tr:nth-child(odd) td { background: var(--white); }
.cmp .yes { color: var(--pine); font-weight: 700; }
.cmp .no { color: #a23; }
.cmp .ajr-col { background: var(--pine-tint) !important; }

@media (max-width: 640px) {
  .cmp { overflow-x: visible; border: none; border-radius: 0; background: transparent; }
  .cmp table { display: block; min-width: 0; width: 100%; }
  .cmp { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
  .cmp table { display: block; min-width: 0; width: 100%; }
  .cmp thead tr { display: grid; grid-template-columns: 96px 1fr 1fr; }
  .cmp thead th { display: block; width: 100%; padding: 10px 12px; font-size: 11px; background: var(--ink); color: var(--white); box-sizing: border-box; }
  .cmp thead th.is-ajr { background: var(--pine); }
  .cmp thead th:first-child { width: 100%; background: var(--ink); color: var(--stone-d); font-size: 10px; }
  .cmp tbody { display: flex; flex-direction: column; gap: 0; }
  .cmp tbody tr { display: grid; grid-template-columns: 96px 1fr 1fr; border-top: 1px solid var(--line); }
  .cmp tbody tr:nth-child(odd) td { background: transparent; }
  .cmp td { display: block; padding: 12px 12px; border-top: none; font-size: 13.5px; line-height: 1.4; }
  .cmp td:first-child { font-weight: 600; font-size: 12px; color: var(--stone); border-right: 1px solid var(--line); word-break: break-word; }
  .cmp td:nth-child(2) { border-right: 1px solid var(--line); }
  .cmp td.ajr-col { background: var(--pine-tint) !important; }
}

/* ---------- contract grid ---------- */
.terms { display: grid; grid-template-columns: 1fr; gap: 4px 48px; }
@media (min-width: 720px) { .terms { grid-template-columns: 1fr 1fr; } }
.term { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.term__ic { width: 22px; height: 22px; color: var(--pine); flex: none; margin-top: 2px; }
.term h3 { font-size: 17px; font-weight: 600; font-family: var(--font-b); letter-spacing: 0; margin-bottom: 4px; }
.term p { font-size: 14.5px; color: var(--stone); }

/* ---------- logements ---------- */
.homes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.home { }
.home__media { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4/3; background: var(--pine-tint); }
.home__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.home:hover .home__media img { transform: scale(1.045); }
.home__cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
.home__cap b { font-family: var(--font-d); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.home__cap span { font-size: 13px; color: var(--stone); }

/* ---------- villes ---------- */
.cities { display: flex; flex-wrap: wrap; gap: 12px; }
.city {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 14px 22px; border: 1px solid var(--line-d); border-radius: 999px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.city:hover { border-color: var(--pine-l); background: rgba(54,147,106,0.10); transform: translateY(-2px); }
.city b { font-family: var(--font-d); font-weight: 600; font-size: 17px; }
.city span { font-size: 13px; color: var(--stone-d); }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-family: var(--font-d); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.02em; transition: color var(--dur) var(--ease); }
.faq__q:hover { color: var(--pine); }
.faq__ic { flex: none; width: 24px; height: 24px; position: relative; }
.faq__ic::before, .faq__ic::after { content:''; position:absolute; top:50%; left:50%; background: var(--pine); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.faq__ic::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq__ic::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq__item.is-open .faq__ic::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { padding-bottom: 26px; color: var(--stone); font-size: 16px; max-width: 68ch; line-height: 1.65; }

/* ---------- contact / form ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 920px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--stone-d); }
.field label .req { color: var(--pine-l); }
.form input, .form select, .form textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-d); border-radius: var(--r-s);
  padding: 13px 15px; color: var(--white); font-size: 16px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: rgba(245,246,245,0.4); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pine-l); background: rgba(255,255,255,0.09); }
.form select option { background: var(--ink); }
.form textarea { resize: vertical; min-height: 96px; }
.form .honey { position: absolute; left: -9999px; }
.form__submit { grid-column: 1/-1; }
.form__note { grid-column: 1/-1; font-size: 13px; color: var(--stone-d); }
.form__ok, .form__err { grid-column:1/-1; padding: 14px 16px; border-radius: var(--r-s); font-size: 14px; display: none; }
.form__ok { background: rgba(54,147,106,0.16); color: #bfe6d3; border: 1px solid rgba(54,147,106,0.4); }
.form__err { background: rgba(220,80,80,0.14); color: #f3b6b6; border: 1px solid rgba(220,80,80,0.4); }

.contact__info { display: flex; flex-direction: column; gap: 4px; }
.contact__row { padding: 22px 0; border-top: 1px solid var(--line-d); }
.contact__row .k { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-d); margin-bottom: 6px; }
.contact__row .v { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
a.v:hover { color: var(--pine-l); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--stone-d); padding-block: clamp(56px, 8vw, 88px) 32px; }
.foot__top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
@media (min-width: 760px) { .foot__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.foot__brand p { font-size: 14.5px; max-width: 30ch; margin: 16px 0; line-height: 1.6; }
.foot h4 { font-family: var(--font-b); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,245,0.45); margin-bottom: 18px; }
.foot__links { display: flex; flex-direction: column; gap: 11px; }
.foot__links a { font-size: 14.5px; color: var(--stone-d); transition: color var(--dur) var(--ease); }
.foot__links a:hover { color: var(--white); }
.foot__bot { border-top: 1px solid var(--line-d); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: rgba(245,246,245,0.4); }

/* ---------- reveal (enhance-only; visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
