/* Équipe Elie Ibrahim — hand-built stylesheet.
   Palette comes from the team logo: graphite #4F4F50 and teal #297367.
   The slanted bars echo the logo mark; they are the one decorative device. */

:root {
  --ink: #24282b;
  --ink-2: #30363a;
  --steel: #4f4f50;
  --teal: #297367;
  --teal-700: #1d564d;
  --teal-200: #a9d2c8;
  --mist: #edf2f0;
  --mist-2: #dfe8e4;
  --paper: #ffffff;
  --line: #d3ddd9;
  --text: #24282b;
  --muted: #566166;
  --star: #e3a01b;
  --danger: #a3361f;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118%;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.35rem + 1.9vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);

  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 0.2em; }
a:hover { color: var(--teal); }
h1, h2, h3 { font-stretch: var(--wide); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 760; }
h2 { font-size: var(--step-3); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 680; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.section--ink :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-200); }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center p, p.center { margin-inline: auto; }

/* ------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.25rem;
  font: 650 1rem/1.2 var(--font); font-stretch: 108%;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn--sm { min-height: 42px; padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.btn--lg { min-height: 54px; padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn--accent { background: var(--teal); color: #fff; }
.btn--accent:hover { background: var(--teal-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
@media (max-width: 599px) { .hero .actions .btn, .page-hero .actions .btn, .cta-band .actions .btn, .actions .quote-btn { width: 100%; } }
.text-link { font-weight: 650; color: var(--teal-700); text-decoration-thickness: 2px; }
.text-link--light { color: var(--teal-200); }
.text-link--light:hover { color: #fff; }

/* ------------------------------------------------ slanted bars (logo motif) */
.slant { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.slant i { display: block; width: 26px; height: 9px; transform: skewX(-40deg); background: var(--steel); }
.slant i + i { background: var(--teal); width: 40px; }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container { width: min(1340px, 100% - 2 * var(--gutter)); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; flex: none; min-width: 0; }
/* The firm's logo leads and outweighs the team logo: AMF rule relayed by the firm (Martin Larivière, 2026-11-06). */
.brand__firm { width: clamp(104px, 27vw, 156px); height: auto; }
.brand__sep { width: 1px; height: 34px; background: var(--line); }
.brand__logo { width: clamp(80px, 21vw, 136px); height: auto; }
.quick-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--teal-700); background: #fff; }
.icon-btn--accent { background: var(--teal); border-color: var(--teal); color: #fff; }
.icon-btn:hover { border-color: var(--teal); }
@media (max-width: 479px) {
  .brand { gap: 0.5rem; }
  .header-row { gap: 0.5rem; }
  .quick-actions { gap: 0.375rem; }
  .header-row .icon-btn, .header-row .nav-toggle { width: 44px; height: 44px; }
  .header-row .nav-toggle { padding-inline: 10px; }
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1rem var(--gutter) 2rem;
  overflow-y: auto; display: none; flex-direction: column; gap: 1.5rem; border-top: 1px solid var(--line);
}
.primary-nav.is-open { display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-list > li { border-bottom: 1px solid var(--mist-2); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%;
  padding: 0.95rem 0; font: 600 1.05rem/1.2 var(--font); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left; white-space: nowrap;
}
.nav-link[aria-current="page"], .nav-sub-toggle[data-current] { color: var(--teal-700); }
.nav-sub-toggle svg { transition: transform .2s; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0 0 0.8rem; padding: 0 0 0 0.9rem; display: none; border-left: 3px solid var(--teal); }
.nav-sub.is-open { display: block; }
.nav-sub a { display: block; padding: 0.55rem 0; color: var(--ink); text-decoration: none; }
.nav-sub a[aria-current="page"] { color: var(--teal-700); font-weight: 650; }
.nav-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
.nav-phone { font-weight: 650; color: var(--ink); text-decoration: none; padding: 0.4rem 0; }

@media (min-width: 1320px) {
  .nav-toggle, .quick-actions { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.4rem;
    padding: 0; background: none; border: 0; overflow: visible;
  }
  .nav-list { flex-direction: row; gap: 0.15rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link { padding: 0.55rem 0.5rem; font-size: 0.96rem; width: auto; border-radius: var(--radius); }
  .nav-long { display: none; }
  .brand__firm { width: 140px; }
  .brand__logo { width: 124px; }
  .brand { gap: 0.7rem; }
  .nav-actions { gap: 0.75rem; }
  .nav-link:hover { background: var(--mist); }
  .nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 0.5rem;
    background: #fff; border: 1px solid var(--line); border-left: 0; border-top: 3px solid var(--teal);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px -18px rgba(36,40,43,.35); margin: 0;
  }
  .nav-sub a { padding: 0.55rem 0.75rem; border-radius: 4px; }
  .nav-sub a:hover { background: var(--mist); }
  .nav-actions { flex-direction: row; align-items: center; gap: 1rem; }
  .nav-phone, .nav-refer { font-size: 0.97rem; white-space: nowrap; }
}
@media (min-width: 1320px) and (max-width: 1439px) {
  .primary-nav { gap: 0.75rem; }
  .nav-link { padding-inline: 0.4rem; font-size: 0.92rem; }
  .nav-actions { gap: 0.5rem; }
  .brand__firm { width: 124px; }
  .brand__logo { width: 106px; }
}
@media (min-width: 1320px) and (max-width: 1600px) {
  .nav-phone { display: none; }
  .primary-nav { gap: 1rem; }
  .nav-link { padding-inline: 0.5rem; }
}

/* ------------------------------------------------ home hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.hero__logo { width: min(230px, 62%); margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.9rem); font-weight: 780; max-width: 13ch; margin-bottom: 0.45em; }
html[lang^="en"] .hero h1 { max-width: none; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); }
.hero__call { margin: 1rem 0 0; color: #c9d2cf; }
.hero__call a { color: #fff; font-weight: 700; font-stretch: 108%; text-decoration-color: rgba(255,255,255,.4); }
.hero .lede { color: #d6dddb; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); max-width: 52ch; }
.hero__proof { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; }
.proof-award { display: flex; align-items: center; gap: 0.6rem; color: #d6dddb; font-size: 0.95rem; }
.proof-award img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.proof-award strong { color: #fff; }
.hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 340px; }
.hero__slants { position: absolute; inset: 8% 0 0 0; display: flex; justify-content: center; gap: 18px; pointer-events: none; }
.hero__slants i { display: block; width: 26%; height: 100%; transform: skewX(-28deg); background: var(--teal); }
.hero__slants i:nth-child(1) { background: var(--steel); height: 70%; align-self: flex-end; opacity: .9; }
.hero__slants i:nth-child(3) { background: var(--teal-700); height: 82%; align-self: flex-end; }
.hero__portrait { position: relative; width: min(380px, 82%); filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.hero__card {
  position: absolute; left: 0; bottom: 1.25rem; margin: 0; padding: 0.8rem 1rem; max-width: min(17rem, 64%);
  background: #fff; color: var(--muted); font-size: 0.88rem; line-height: 1.35; border-radius: var(--radius);
  border-left: 4px solid var(--teal); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
}
.hero__card strong { display: block; color: var(--ink); font-stretch: var(--wide); font-size: 1.02rem; }
/* The cut-out portrait stands on the hero's bottom edge and is sized from the hero's height, so its head lines up
   with the title; the hero is capped to the first screen so neither the portrait nor its card falls below the fold.
   The source photo is 379×470: 520px is the most it can be enlarged before it softens. */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; padding-top: 0; min-height: min(calc(100svh - var(--header-h)), 820px); }
  .hero__text { align-self: center; padding-block: clamp(1.5rem, 4vh, 3.5rem); }
  .hero__logo { width: min(190px, 50%); margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem); }
  .hero__proof { margin-top: 1.5rem; }
  .hero__media { min-height: 0; padding-top: clamp(1.5rem, 4vh, 3.5rem); }
  .hero__portrait { width: auto; height: min(100%, 520px); max-width: 100%; object-fit: contain; object-position: bottom; }
}
/* Short laptop screens: the header already carries the logo. */
@media (min-width: 900px) and (max-height: 760px) {
  .hero__logo { display: none; }
  .hero h1 { font-size: clamp(2.4rem, 1.2rem + 2.8vw, 3.6rem); }
}

/* Google rating badge */
.g-badge { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.g-badge .stars { color: var(--star); display: inline-flex; }
.g-badge__score { font-stretch: var(--wide); font-weight: 760; }
.g-badge__count { text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 0.2em; }
.g-badge--dark { color: #fff; }
.g-badge--dark .g-badge__count { text-decoration-color: rgba(255,255,255,.4); }
.g-badge--big { padding: 0.75rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 1.05rem; margin-top: 0.5rem; }
.g-badge--big .stars svg { width: 20px; height: 20px; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }

/* ------------------------------------------------ page hero */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -6%; top: -10%; width: 34%; height: 140%;
  background: linear-gradient(var(--teal), var(--teal)) left / 30% 100% no-repeat,
              linear-gradient(var(--mist-2), var(--mist-2)) right / 62% 100% no-repeat;
  transform: skewX(-28deg); opacity: .9; pointer-events: none;
}
.page-hero__grid { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); max-width: 22ch; }
.page-hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.kicker { font-weight: 650; color: var(--teal-700); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.kicker::before { content: ""; width: 22px; height: 8px; background: var(--teal); transform: skewX(-40deg); }
@media (max-width: 899px) { .page-hero::after { display: none; } }
.page-hero--aside::after, .page-hero--compact::after { display: none; }
.page-hero--compact .page-hero__grid { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.page-hero--compact h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 0.35em; }
.page-hero--compact .lede { font-size: 1.05rem; margin-bottom: 0; }
@media (min-width: 900px) { .page-hero--aside .page-hero__grid { grid-template-columns: 1fr minmax(340px, 430px); align-items: center; gap: 3rem; } }
/* profile card: Elie's face, rating and direct contact beside every inner-page title */
.profile-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 10px; padding: 1.25rem; box-shadow: 0 24px 50px -36px rgba(36,40,43,.55); }
.profile-card__avatar { width: 96px; height: 96px; border-radius: 50%; }
.profile-card__body { display: grid; gap: 0.35rem; min-width: 0; }
.profile-card__body p { margin: 0; }
.profile-card .g-badge { flex-wrap: wrap; row-gap: 0.1rem; font-size: 0.95rem; }
.profile-card .g-badge__count { white-space: nowrap; }
.profile-card__name { font-weight: 760; font-stretch: var(--wide); font-size: 1.15rem; color: var(--ink); }
.profile-card__role { color: var(--muted); font-size: 0.92rem; }
.profile-card__role span, .hero__card span { display: block; font-size: 0.86em; line-height: 1.35; }
.profile-card__langs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.profile-card__langs span { font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; color: var(--muted); }
@media (max-width: 899px) {
  .profile-card { grid-template-columns: 56px minmax(0, 1fr); padding: 0.85rem 1rem; gap: 0.85rem; max-width: 30rem; box-shadow: none; }
  .profile-card__avatar { width: 56px; height: 56px; }
  .profile-card__role, .profile-card__langs { display: none; }
  .page-hero--aside .page-hero__grid { gap: 1.25rem; }
}

/* ------------------------------------------------ sections */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #e9eeec; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #c9d2cf; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--ink .section-head p { color: #c9d2cf; }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.section-head--row > div { max-width: 46rem; }
.section-head--row .text-link { margin-bottom: 1.1rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }

/* services on home */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-row { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.service-row h3 { margin: 0; font-size: var(--step-2); }
.service-row h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; }
.service-row h3 a::after { content: ""; width: 0.55em; height: 0.55em; border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: rotate(45deg); transition: transform .15s; }
.service-row h3 a:hover { color: var(--teal-700); }
.service-row h3 a:hover::after { transform: translateX(4px) rotate(45deg); }
.service-row p { margin: 0; color: var(--muted); }
.services-home .section-head p { max-width: 40ch; }

/* about on home */
.about-home__grid { display: grid; gap: 2.5rem; }
.about-home__photo { margin: 0; position: relative; max-width: 360px; }
@media (max-width: 899px) { .about-home__photo { max-width: 260px; margin-inline: auto; } }
.about-home__photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--teal); transform: skewX(-6deg); z-index: -1; }
.about-home__photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.about-home { overflow-x: clip; }
.about-home__grid { isolation: isolate; }
.pull { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 58ch; }
@media (min-width: 900px) { .about-home__grid { grid-template-columns: 0.75fr 1.25fr; gap: 5rem; align-items: center; } }

/* timeline: the real sequence of Elie's career */
.timeline { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
@media (max-width: 599px) { .timeline li { grid-template-columns: 1fr; gap: 0.2rem; } .timeline__when { font-size: 1rem; } }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-stretch: var(--wide); font-weight: 760; color: var(--teal-700); font-size: 1.15rem; }
.timeline__what { color: var(--muted); }
.timeline__what strong { display: block; color: var(--ink); font-size: 1.05rem; }
.timeline--wide { margin: 0; }
@media (min-width: 900px) {
  .timeline--wide { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .timeline--wide li { grid-template-columns: 1fr; border: 0; border-top: 4px solid var(--teal); padding-top: 1.1rem; }
  .timeline--wide li:last-child { border-bottom: 0; }
  .timeline--wide .timeline__when { font-size: var(--step-2); }
}

/* lender wall */
.wall-title { font-size: 1rem; font-weight: 650; font-stretch: 100%; color: var(--teal-200); margin: 0 0 1rem; letter-spacing: 0; }
.logo-wall { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.logo-wall li { border-radius: 6px; }
.logo-wall li { background: var(--ink-2); display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.25rem; min-height: 104px; }
.logo-wall img { max-width: 80%; object-fit: contain; }
.logo-wall--small li { min-height: 92px; }
.partners-home__more { margin: 1.5rem 0 0; }
@media (max-width: 599px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .logo-wall li { min-height: 64px; padding: 0.6rem 0.4rem; } .logo-wall img { width: auto !important; height: auto !important; max-width: 90%; max-height: 26px; } }
@media (min-width: 600px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } .logo-wall--small { grid-template-columns: repeat(4, 1fr); } }
.section--ink .logo-wall:last-child { margin-bottom: 0; }

/* reviews */
.reviews-head { display: grid; gap: 2rem; margin-bottom: 2.5rem; align-items: center; }
.reviews-head h2 { margin-bottom: 0.35em; }
.reviews-head p { color: var(--muted); }
.awards-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.awards-row li { display: grid; grid-template-columns: 56px 1fr; gap: 0.75rem; align-items: center; font-size: 0.9rem; color: var(--muted); }
.awards-row img { width: 56px; height: 56px; object-fit: contain; border-radius: 4px; }
.awards-row__dark img { background: var(--ink); padding: 6px; }
.awards-row strong { display: block; color: var(--ink); font-size: 0.97rem; }
@media (min-width: 900px) { .reviews-head { grid-template-columns: 1fr minmax(260px, 340px); } }
.review-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .review-grid--all { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .review-grid--all { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 1.5rem; background: var(--mist); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.8rem; border-top: 4px solid var(--teal); }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 1.02rem; color: var(--ink); }
.review figcaption { display: grid; gap: 0.1rem; color: var(--ink); }
.review figcaption strong { font-weight: 700; }
.review figcaption span { font-size: 0.88rem; color: var(--muted); }
.reviews-home .center { margin-top: 2rem; }

/* awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.award { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.award img { width: 96px; height: 96px; object-fit: contain; }
.award p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.award strong { display: block; color: var(--ink); font-stretch: var(--wide); font-size: 1.05rem; }
.award--feature { border-color: var(--teal); }
.award--dark img { background: var(--ink); border-radius: 4px; padding: 0.6rem; object-fit: contain; }
.award--feature img { object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) { .awards { grid-template-columns: 1.3fr 1fr 1fr; } .award--feature { grid-template-columns: 130px 1fr; } .award--feature img { width: 130px; height: 132px; } }

/* videos */
.video-row { list-style: none; margin: 0; padding: 0 0 0.75rem; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.video-row li { scroll-snap-align: start; }
@media (min-width: 600px) { .video-row { grid-auto-columns: 34%; } }
.video-card { display: grid; gap: 0.5rem; color: var(--ink); text-decoration: none; }
.video-card__thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--ink); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform .3s; }
.video-card__play { position: absolute; top: 0.7rem; left: 0.7rem; width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal); color: #fff; border-radius: 50%; }
.video-card__title { font-weight: 650; font-stretch: 104%; line-height: 1.3; }
.video-card__where { font-size: 0.85rem; color: var(--muted); }
.video-card:hover .video-card__thumb img { transform: scale(1.04); }
.video-card:hover .video-card__title { color: var(--teal-700); }
@media (min-width: 1080px) { .video-row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .video-card__thumb img, .btn, .service-row h3 a::after { transition: none; } }

/* FAQ */
.faq__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 0.75fr 1.25fr; gap: 4rem; } }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; font-size: 1.1rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 12px; height: 12px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq-item__a p { color: var(--muted); margin: 0 0 1.25rem; }
.section--mist .faq-list, .faq { }

/* CTA band */
.cta-band { background: var(--teal-700); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: 8%; top: -20%; width: 120px; height: 140%; background: var(--teal); transform: skewX(-28deg); opacity: .7; }
.cta-band::after { content: ""; position: absolute; right: calc(8% + 140px); top: -20%; width: 60px; height: 140%; background: rgba(255,255,255,.08); transform: skewX(-28deg); }
.cta-band__inner { position: relative; z-index: 1; padding-block: clamp(2.75rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: #d5ebe5; margin: 0; }
.cta-band .actions { margin: 0; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* service cards, trio, lists, steps */
.service-cards { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.service-card { border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.service-card h2 { font-size: var(--step-2); margin-bottom: 0.2em; }
.service-card h2 a { color: var(--ink); text-decoration: none; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; }
.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.45rem; height: 0.8rem; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(40deg); }
.trio { display: grid; gap: 2rem; }
.trio article { border-top: 4px solid var(--ink); padding-top: 1.2rem; }
.trio article:nth-child(2) { border-top-color: var(--teal); }
.trio h2 { font-size: var(--step-2); text-wrap: pretty; }
.trio p { color: var(--muted); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plain-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain-list strong { display: block; color: var(--ink); font-size: 1.1rem; font-stretch: 108%; margin-bottom: 0.15rem; }
.section--mist .plain-list li { border-color: var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.8rem; background: var(--ink); color: #fff; font-weight: 760; font-stretch: var(--wide); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.steps li:nth-child(even)::before { background: var(--teal); }
.steps h3 { margin-bottom: 0.35em; font-size: 1.12rem; text-wrap: pretty; }
.steps p { margin: 0; color: var(--muted); }
.steps--plain li::before { display: none; }
.city-others { font-size: 0.95rem; }
.city-others a { font-weight: 650; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }

/* tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.data-table caption { text-align: left; font-weight: 650; padding: 0 0 0.75rem; color: var(--ink); }
.data-table th, .data-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--ink); color: #fff; font-weight: 650; }
.table-note { color: var(--muted); font-size: 0.97rem; margin-top: 1rem; }

/* about */
.about-hero { background: var(--mist); position: relative; overflow: hidden; }
.about-hero__grid { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); isolation: isolate; }
.about-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
.letter p { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.7; color: var(--ink); max-width: 62ch; }
.signature { font-stretch: var(--wide); font-weight: 760; color: var(--teal-700) !important; margin-top: 1.5rem; }
.signature::before { content: ""; display: inline-block; width: 28px; height: 8px; margin-right: 0.7rem; background: var(--teal); transform: skewX(-40deg); vertical-align: middle; }
.about-hero__media { margin: 0 auto; align-self: start; }
.about-hero__media img { border-radius: var(--radius); }
@media (max-width: 899px) { .about-hero__media { order: -1; } }

.about-hero__text { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) {
  .about-hero__grid { grid-template-columns: 1.3fr 0.7fr; gap: 4rem; align-items: end; }
  .about-hero__media { margin-top: 3rem; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* documents */

/* contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; } }
.contact-cards { display: grid; gap: 0.75rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); background: #fff; }
.contact-card svg { flex: none; color: var(--teal); margin-top: 0.2rem; }
.contact-card strong { display: block; color: var(--ink); }
.contact-card:hover { border-color: var(--teal); color: var(--muted); }
.contact-card--accent { background: var(--teal); border-color: var(--teal); color: #e2f1ed; }
.contact-card--accent svg, .contact-card--accent strong { color: #fff; }
.contact-card--accent:hover { background: var(--teal-700); color: #fff; }
.form-card { background: var(--mist); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-card h2 { font-size: var(--step-2); }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 0.35rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: 400 1rem/1.4 var(--font); padding: 0.75rem 0.85rem; border: 1px solid #b9c7c2; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--teal-200); border-color: var(--teal); }
.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.form-consent input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.contact-form .btn { justify-self: start; }

/* ------------------------------------------------ calculator */
.calc-section .section-head { margin-bottom: 1.75rem; }
.page-calc .calc-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.calc { background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -40px rgba(36,40,43,.5); border: 1px solid var(--line); overflow: clip; }
.calc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ink); }
.calc-tabs .calc-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .calc-tabs { display: flex; } .calc-tabs .calc-tab:last-child:nth-child(odd) { grid-column: auto; } }
.calc-tab {
  flex: 1 0 auto; padding: 0.85rem 0.9rem; border: 0; background: transparent; color: #c9d2cf;
  font: 600 0.95rem/1.25 var(--font); cursor: pointer; border-bottom: 4px solid transparent; text-align: center;
}
.calc-tab:hover { color: #fff; }
.calc-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--teal-200); background: var(--ink-2); }
.calc-tab:focus-visible { outline-offset: -4px; outline-color: var(--teal-200); }
.calc-tool { display: grid; gap: 0; }
@media (min-width: 960px) { .calc-tool { grid-template-columns: 1fr 1fr; } }
.calc-inputs { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; align-content: start; }
.calc-inputs--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.calc-results { padding: clamp(1.25rem, 3vw, 2rem); background: var(--mist); display: flex; flex-direction: column; gap: 1rem; }
.calc-results--wide { grid-column: 1 / -1; }
.calc-sub { font-size: 1rem; font-stretch: 108%; margin: 0.4rem 0 0; color: var(--teal-700); }
.calc-pair { display: grid; gap: 1rem; }
@media (min-width: 520px) { .calc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-range--pair { margin-top: -0.6rem; }
.calc-sticky { display: none; }
@media (max-width: 959px) {
  .calc-sticky { display: flex; position: sticky; bottom: 0; z-index: 5; margin: 0.5rem calc(-1 * clamp(1.25rem, 3vw, 2rem)) calc(-1 * clamp(1.25rem, 3vw, 2rem)); padding: 0.75rem clamp(1.25rem, 3vw, 2rem) calc(0.75rem + env(safe-area-inset-bottom, 0px)); justify-content: space-between; align-items: baseline; gap: 1rem; background: var(--ink); color: #c9d2cf; font-size: 0.92rem; }
  .calc-sticky.is-hidden { visibility: hidden; }
  .calc-sticky strong { color: #fff; font-size: 1.35rem; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
}
.calc-dl__total { grid-column: 1 / -1; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.calc-field { display: grid; gap: 0.35rem; min-width: 0; margin: 0; padding: 0; border: 0; align-content: start; }
.calc-field > label, .calc-field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.calc-input { display: flex; align-items: center; border: 1px solid #b9c7c2; border-radius: var(--radius); background: #fff; }
.calc-input:focus-within { border-color: var(--teal); outline: 3px solid var(--teal-200); }
.calc-input { min-width: 0; }
.calc-input input, .calc-input select {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0.7rem 0.8rem;
  font: 600 1.05rem/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums;
}
.calc-input input:focus, .calc-input select:focus { outline: none; }
.calc-unit { padding: 0 0.85rem; color: var(--muted); font-weight: 600; }
.calc-input--select select { cursor: pointer; }
.calc-range { width: 100%; accent-color: var(--teal); margin: 0.2rem 0 0; height: 22px; }
.calc-scale { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.calc-hint { font-size: 0.85rem; color: var(--muted); }
.calc-seg { display: flex; flex-wrap: wrap; gap: 0; }
.calc-seg legend { margin-bottom: 0.35rem; }
.calc-seg label { flex: 1; position: relative; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-seg span { display: block; text-align: center; padding: 0.65rem; border: 1px solid #b9c7c2; font-weight: 600; background: #fff; }
.calc-seg label:first-of-type span { border-radius: var(--radius) 0 0 var(--radius); }
.calc-seg label:last-of-type span { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.calc-seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-seg input:focus-visible + span { outline: 3px solid var(--teal-200); outline-offset: 1px; }
.calc-note { margin: -0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.calc-note.is-warn { color: var(--danger); font-weight: 600; }
.calc-disclaimer { margin: 0; max-width: none; padding: 0.85rem clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); background: #fff; }
.calc-big { margin: 0; display: grid; gap: 0.1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.calc-big span { font-weight: 600; color: var(--muted); }
.calc-big strong { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-stretch: var(--wide); font-weight: 780; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-alert { margin: 0; padding: 0.75rem 0.9rem; border-left: 4px solid var(--danger); background: #fbeee9; color: var(--danger); font-weight: 600; font-size: 0.95rem; }
.calc-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; }
.calc-dl div { min-width: 0; }
.calc-dl dt { font-size: 0.88rem; color: var(--muted); }
.calc-dl dd { margin: 0; font-weight: 700; font-size: 1.12rem; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.calc-split { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut { --a: 60%; --b: 63%; width: 128px; aspect-ratio: 1; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ink) 0 var(--a), var(--star) var(--a) var(--b), var(--teal) var(--b) 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 0.5rem; vertical-align: -1px; transform: skewX(-20deg); }
.legend span { color: var(--muted); margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.k-capital { background: var(--ink); } .k-prime { background: var(--star); } .k-interets { background: var(--teal); }
.calc-fine { margin: 0; font-size: 0.85rem; color: var(--muted); }
.amort-table summary { cursor: pointer; font-weight: 650; color: var(--teal-700); }
.amort-table table, .rate-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-variant-numeric: tabular-nums; font-size: 0.93rem; background: #fff; }
.amort-table th, .amort-table td, .rate-table th, .rate-table td { padding: 0.5rem 0.65rem; text-align: right; border-bottom: 1px solid var(--line); }
.amort-table th:first-child, .amort-table td:first-child, .rate-table th:first-child, .rate-table td:first-child { text-align: left; }
.amort-table thead th, .rate-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.amort-table .table-wrap { max-height: 320px; overflow: auto; }
.rate-table tr.is-base td { background: #e3efeb; font-weight: 700; }
.rate-table td.up { color: var(--danger); }
.rate-table td.down { color: var(--teal-700); }
.rate-table-wrap { overflow-x: auto; }

.scenarios { grid-column: 1 / -1; display: grid; gap: 0; }
@media (min-width: 900px) { .scenarios { grid-template-columns: repeat(3, 1fr); } }
.scenario { margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 0.9rem; min-width: 0; }
@media (min-width: 900px) { .scenario { border-bottom: 0; border-right: 1px solid var(--line); } .scenario:last-child { border-right: 0; } }
.scenario legend { font-weight: 760; font-stretch: var(--wide); font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 0.2rem; }
.scenario legend + * { clear: both; }
.scenario__out { margin: 0.4rem 0 0; display: grid; padding-top: 0.8rem; border-top: 2px solid var(--ink); }
.scenario__out span { font-size: 0.9rem; color: var(--muted); }
.scenario__out strong { font-size: 1.8rem; font-stretch: var(--wide); font-weight: 780; font-variant-numeric: tabular-nums; }
.scenario__sub { margin: 0; font-size: 0.88rem; color: var(--muted); }
.bars { grid-column: 1 / -1; padding: 1.25rem clamp(1.25rem, 3vw, 1.75rem) 0.5rem; display: grid; gap: 0.6rem; background: var(--mist); }
.bar { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: center; font-size: 0.92rem; font-weight: 600; }
.bar__track { height: 26px; background: #fff; border-radius: 3px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--teal); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; color: #fff; font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 5.5rem; }
.bar:nth-child(2) .bar__fill { background: var(--ink); }
.bar:nth-child(3) .bar__fill { background: var(--steel); }
.calc-tool[data-tool="comparateur"], .calc-tool[data-tool="taux"] { grid-template-columns: 1fr; }
.calc-tool[data-tool="comparateur"] > .calc-fine { max-width: none; grid-column: 1 / -1; padding: 0.5rem clamp(1.25rem, 3vw, 1.75rem) 1.25rem; background: var(--mist); }

/* documents guide */
.doc-filter { margin-bottom: 1.75rem; }
.doc-filter__label { font-weight: 650; margin-bottom: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: 600 0.95rem/1 var(--font); padding: 0.65rem 0.95rem; min-height: 42px; border-radius: 999px; border: 1px solid #b9c7c2; background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-list { display: grid; gap: 1.25rem; }
.tag { font-size: 0.8rem; font-weight: 650; color: var(--teal-700); background: #e3efeb; padding: 0.15rem 0.5rem; border-radius: 4px; }
.doc-steps { margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: doc; display: grid; gap: 0.5rem; }
.doc-steps li { counter-increment: doc; position: relative; padding-left: 2rem; }
.doc-steps li::before { content: counter(doc); position: absolute; left: 0; top: 0.1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--mist-2); color: var(--teal-700); font-size: 0.8rem; font-weight: 760; display: grid; place-items: center; }
.doc-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.doc-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.85rem; border: 1px solid var(--teal); border-radius: var(--radius); font-weight: 650; text-decoration: none; font-size: 0.93rem; }
.doc-link:hover { background: var(--teal); color: #fff; }

/* referral */
.form-group { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; }
.form-group legend { font-weight: 720; font-stretch: 108%; font-size: 1.05rem; color: var(--teal-700); margin-bottom: 0.75rem; padding: 0; }
.steps--stack { grid-template-columns: 1fr !important; grid-auto-flow: row !important; }
.refer-band { background: var(--mist); border-block: 1px solid var(--line); }
.refer-band__inner { display: grid; gap: 1rem 2rem; align-items: center; padding-block: 2rem; }
.refer-band h2 { font-size: var(--step-2); margin-bottom: 0.3em; }
.refer-band p { margin: 0; color: var(--muted); }
.refer-band__amount { margin: 0; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800; font-stretch: var(--wide); color: var(--teal); line-height: 1; }
@media (min-width: 900px) { .refer-band__inner { grid-template-columns: auto 1fr auto; } }
.nav-refer { font-weight: 650; color: var(--teal-700); text-decoration: none; padding: 0.4rem 0; white-space: nowrap; }
.nav-refer:hover, .nav-refer[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-lang { font-weight: 650; color: var(--ink); text-decoration: none; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap; align-self: flex-start; }
.nav-lang:hover { border-color: var(--teal); color: var(--teal-700); }
.lang-chip { display: inline-block; margin-left: 0.4em; padding: 0 0.35em; font-size: 0.7em; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; border: 1px solid currentColor; border-radius: 3px; vertical-align: 0.15em; }

/* figures strip under the home hero */
.figures { background: var(--ink-2); color: #c9d2cf; border-top: 1px solid rgba(255,255,255,.08); }
.figures__list { list-style: none; margin-block: 0; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.figures__list li { display: grid; gap: 0.15rem; padding-left: 0.9rem; border-left: 3px solid var(--teal); }
.figures__list strong { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-stretch: var(--wide); font-weight: 780; line-height: 1.1; }
.figures__list span { font-size: 0.92rem; }
@media (min-width: 900px) { .figures__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* quick quote: his « Obtenir ma soumission » */
.quote-btn { font: 650 0.95rem/1.2 var(--font); color: var(--teal-700); background: none; border: 1px solid var(--teal); border-radius: var(--radius); padding: 0.55rem 0.85rem; min-height: 42px; cursor: pointer; justify-self: start; }
.quote-btn:hover { background: var(--teal); color: #fff; }
.service-row .quote-btn { margin-top: 0.6rem; }
.actions .quote-btn { min-height: 48px; padding: 0.75rem 1.25rem; font-size: 1rem; border-width: 2px; }
.service-card__actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.quote-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: 12px; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); color: var(--text); }
.quote-dialog::backdrop { background: rgba(36,40,43,.6); }
.quote-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.quote-dialog__head h2 { font-size: var(--step-2); margin: 0; }
.quote-dialog__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.quote-dialog > p { color: var(--muted); }

/* documents: search, scrolling chips, accordion */
.doc-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.doc-filter { min-width: 0; }
.doc-search { display: grid; gap: 0.5rem; }
.doc-search .doc-filter__label { margin: 0; }
.doc-search input { width: 100%; font: 400 1.05rem/1.4 var(--font); padding: 0.85rem 1rem; border: 1px solid #b9c7c2; border-radius: var(--radius); background: #fff; }
.doc-search input:focus { outline: 3px solid var(--teal-200); border-color: var(--teal); }
.doc-count { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 599px) { .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } .chip { flex: none; } }
.doc-list { display: grid; gap: 0.6rem; align-content: start; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 2.5rem; align-items: start; } .doc-layout .doc-tools { position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0; } }
.doc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-item[hidden] { display: none; }
.doc-item > summary { list-style: none; display: flex; gap: 1rem; align-items: center; padding: 1rem 3rem 1rem 1.1rem; cursor: pointer; position: relative; }
.doc-item > summary::-webkit-details-marker { display: none; }
.doc-item > summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
.doc-item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.doc-item[open] { border-color: var(--teal); }
.doc-item__num { flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.2rem; background: var(--ink); color: #fff; font-weight: 760; font-stretch: var(--wide); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.doc-item__title { display: grid; gap: 0.2rem; }
.doc-item__title strong { font-size: 1.05rem; font-stretch: 104%; }
.doc-item__where { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; }
.doc-item__body { padding: 0 1.25rem 1.25rem 4.7rem; }
.doc-item__body > p { color: var(--muted); }
@media (max-width: 599px) { .doc-item__body { padding-left: 1.1rem; } }

/* footer on phones: two columns of links */
@media (max-width: 759px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand, .footer-grid > div:nth-child(2) { grid-column: 1 / -1; } }

/* ------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #c9d2cf; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.97rem; }
.site-footer a { color: #e9eeec; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 2.5rem; } }
.footer-brand img { width: 230px; margin-bottom: 1rem; }
.footer-brand p { max-width: 36ch; }
.footer-social { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-title { font-size: 1rem; color: #fff; font-stretch: 108%; margin-bottom: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.5rem 2rem; display: grid; gap: 1rem; }
.footer-firm { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.footer-firm p { margin: 0; font-size: 0.9rem; max-width: 80ch; }
.firm-plate { background: #fff; padding: 0.5rem 0.7rem; border-radius: 4px; flex: none; }
.firm-plate img { width: 120px; }
.footer-meta { margin: 0; font-size: 0.88rem; color: #9fb0ab; }

/* ------------------------------------------------ motion
   One orchestrated entrance in the hero (decorative bars, then the portrait settles), marks that draw in,
   and feedback on calculator results. Nothing starts transparent, so content and LCP are never delayed. */
@property --a { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --b { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slants i { animation: slant-rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__slants i:nth-child(2) { animation-delay: 0.1s; }
  .hero__slants i:nth-child(3) { animation-delay: 0.2s; }
  .hero__portrait { animation: settle 0.9s 0.15s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__card { animation: slide-in 0.6s 0.55s cubic-bezier(.2, .7, .2, 1) both; }
  .slant.is-waiting i { transform: skewX(-40deg) scaleX(0); transform-origin: left center; transition: transform 0.55s cubic-bezier(.2, .7, .2, 1); }
  .slant.is-waiting i + i { transition-delay: 0.12s; }
  .slant.is-waiting.is-in i { transform: skewX(-40deg) scaleX(1); }
  .donut { transition: --a 0.6s ease, --b 0.6s ease; }
  .bar__fill { transition: width 0.5s cubic-bezier(.2, .7, .2, 1); }
  .logo-wall img { opacity: 0.86; transition: opacity 0.2s; }
  .logo-wall li:hover img { opacity: 1; }
  .btn:active, .quote-btn:active, .chip:active { transform: translateY(1px); }
}
@keyframes slant-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: translateY(28px); } to { transform: none; } }
@keyframes slide-in { from { transform: translateX(-14px); } to { transform: none; } }

@media print { .site-header, .cta-band, .site-footer, .calc-tabs { display: none; } }

/* partner offer (moving company) on the lenders page */
.offer-card { display: grid; gap: 0.75rem; justify-items: start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 10px; padding: clamp(1.25rem, 3vw, 1.75rem); }
.offer-card p { margin: 0; }
.offer-card__logo { width: min(240px, 100%); height: auto; }
.offer-card__amount { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 780; font-stretch: var(--wide); color: var(--ink); line-height: 1.1; }
.offer-card__code { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; color: var(--muted); }
.promo-code { font-size: 1.15rem; letter-spacing: 0.04em; color: var(--teal-700); border: 2px dashed var(--teal); border-radius: 6px; padding: 0.25rem 0.7rem; user-select: all; }
.offer-card__links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.35rem; }
.offer-card__links a:not(.btn) { font-weight: 650; color: var(--ink); }

/* rates */
.rates__grid { display: grid; gap: 2rem; align-items: start; }
.rates-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); padding: clamp(1rem, 3vw, 1.75rem); box-shadow: 0 24px 50px -32px rgba(36,40,43,.45); min-width: 0; }
.rates-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.rates-seg { margin: 0; padding: 0; border: 0; }
.rates-province { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.rates-province select { min-height: 46px; padding: 0.55rem 0.75rem; border: 1px solid #b9c7c2; border-radius: var(--radius); font: inherit; font-weight: 600; background: #fff; color: var(--ink); }
.rates-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rates-table th, .rates-table td { padding: 0.85rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); }
.rates-table thead th { font-size: 0.9rem; font-weight: 650; color: var(--muted); border-bottom: 2px solid var(--ink); }
.rates-table tbody th { font-weight: 650; color: var(--ink); }
.rates-table td { color: var(--muted); }
.rates-table .rates-table__ours { background: var(--mist); color: var(--ink); font-weight: 760; font-stretch: var(--wide); text-align: center; }
.rates-table thead .rates-table__ours { color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; }
.rates-table tbody td.rates-table__ours { font-size: 1.12rem; }
.rates-note, .rates-source { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.rates-source { margin-top: 0.25rem; }
@media (min-width: 600px) { .rates-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
@media (min-width: 960px) { .rates__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; } }
.rates-fallback { margin: 0; padding: 1rem 0; font-weight: 600; color: var(--ink); }
