:root {
  --navy: #101f36;
  --navy-deep: #0c1626;
  --ink: #17283d;
  --subtle: #435471;
  --sky: #dceafa;
  --paper: #fcfdff;
  --wash: #edf3f9;
  --light: #f3f6fa;
  --accent: #ffd5b2;
}

.masthead { background: #fff; }
.mast-inner { gap: clamp(.8rem, 2vw, 2rem); min-height: 86px; }
.brand-tools { display: flex; align-items: center; gap: clamp(.6rem, 1.3vw, 1.15rem); }
.mast-inner nav { gap: clamp(.7rem, 1.1vw, 1.25rem); }
.calculator-menu { position: relative; border: 0; }
.calculator-menu summary { min-height: 44px; padding: 0; gap: .35rem; color: var(--ink); font-size: .92rem; font-weight: 650; white-space: nowrap; }
.calculator-menu summary:hover { text-decoration: underline; }
.calculator-menu summary::after, .calculator-menu[open] summary::after { content: ""; width: .38rem; height: .38rem; border: solid #304d69; border-width: 0 2px 2px 0; transform: translateY(-.12rem) rotate(45deg); }
.calculator-menu[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.calculator-menu ul { position: absolute; inset: calc(100% + .2rem) auto auto 0; z-index: 5; width: min(18rem, calc(100vw - 2rem)); margin: 0; padding: .35rem; list-style: none; border: 1px solid #c1cfdd; border-radius: .65rem; background: #fff; box-shadow: 0 1rem 2.3rem #10223834; }
.calculator-menu li + li { border-top: 1px solid var(--line); }
.calculator-menu li a { display: flex; justify-content: space-between; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .6rem; white-space: normal; }
.calculator-menu li a:hover { background: var(--wash); }
.brand-logo { width: clamp(10.5rem, 16vw, 14.25rem); }
.top-actions { gap: clamp(.65rem, 1.4vw, 1.3rem); }
.language-switch { display: inline-flex; align-items: center; padding: 2px; border: 1px solid #ccd5e0; background: #f2f5f8; border-radius: .5rem; }
.language-switch a, .language-switch span { display: grid; place-items: center; min-width: 2.05rem; min-height: 2rem; padding: .18rem .25rem; border-radius: .34rem; font-size: .79rem; font-weight: 750; text-decoration: none; }
.language-switch a:hover { background: #dbe6f1; }
.language-switch [aria-current] { background: #17283d; color: #fff; }
.top-contact, .top-update { white-space: nowrap; text-decoration: none; font-size: .9rem; font-weight: 650; }
.top-update { color: var(--subtle); }
.top-contact:hover, .top-update:hover { text-decoration: underline; }
.rate-nav { white-space: nowrap; }
.bright { background-color: var(--accent); }
.bright:hover { background-color: #ffe6d1; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #17202b; }
.hero-photo, .hero::after { position: absolute; inset: 0; pointer-events: none; }
.hero-photo { z-index: -2; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; opacity: 0; }
.hero-slide.is-current { z-index: 2; opacity: 1; }
.hero-slide.is-previous { z-index: 1; opacity: 1; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0d1725f7 0%, #0e1928ed 23%, #111c2ac9 41%, #14213145 64%, #14213100 84%),
              linear-gradient(0deg, #101a28a6, transparent 35%);
}
.hero-layout { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; min-height: clamp(32rem, 48vw, 42rem); padding-block: clamp(2.6rem, 4.4vw, 4.25rem) clamp(2rem, 3.4vw, 3.25rem); }
.hero-text { flex: 0 1 42rem; }
.hero h1 { font-size: clamp(3.4rem, 5.7vw, 6.35rem); max-width: 17ch; text-wrap: initial; text-shadow: 0 2px 28px #08132180; }
.hero-intro { max-width: 34rem; color: #f1f5fb; }
.complex-feature .eyebrow { color: var(--accent); }
.hero .quiet { padding: .78rem 1rem; border: 1px solid #d8e2f2b0; border-radius: .45rem; background: #101a2878; text-decoration: none; }
.hero-actions .bright { border-color: #fff1e6; }
.hero-actions a, .hero-playback { transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.hero-actions a:hover, .hero-playback:hover { transform: translateY(-2px); box-shadow: 0 .45rem 1.1rem #060d1a88; }
.hero .quiet:hover { background: #263953; border-color: #edf3f9; }
.hero-actions a:active, .hero-playback:active { transform: none; }
.hero a:focus-visible, .complex-feature a:focus-visible { outline-color: var(--accent); }
.hero-aside { display: flex; flex: none; align-items: end; flex-wrap: wrap; justify-content: end; gap: .8rem; }
.hero-playback { border: 1px solid #ffffff75; border-radius: .45rem; padding: .55rem .7rem; color: #fff; background: #142131e8; font: 650 .83rem/1.3 system-ui, sans-serif; cursor: pointer; }
.hero-playback:hover { background: #263953; }
.hero-playback:focus-visible { outline-color: var(--accent); }
.portrait-badge { position: static; flex: none; max-width: 100%; padding: .58rem .95rem .58rem .58rem; border: 1px solid #ffffff53; color: #fff; background: #142131e8; }
.portrait-preview { position: relative; flex: none; --portrait-width: clamp(9.25rem, 18vw, 14rem); }
.portrait-trigger { display: block; width: clamp(50px, 5.1vw, 72px); border: 1px solid #fff6; border-radius: .45rem; padding: 0; background: #17283d; overflow: hidden; cursor: zoom-in; }
.portrait-trigger:focus-visible { outline-color: var(--accent); }
.portrait-trigger[aria-expanded="true"] { cursor: zoom-out; }
.portrait-trigger img, .portrait-detail img { width: 100%; height: auto; }
.portrait-detail { position: absolute; inset-inline-start: 0; bottom: calc(100% + .55rem); z-index: 3; width: var(--portrait-width); border: 2px solid #e6eef8; border-radius: .8rem; overflow: hidden; background: #142131; box-shadow: 0 .8rem 2.2rem #080e1ac2; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(.35rem) scale(.93); transform-origin: bottom left; transition: opacity .2s, transform .23s, visibility 0s linear .23s; }
.portrait-trigger[aria-expanded="true"] + .portrait-detail { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; cursor: zoom-out; }
.portrait-preview:has(.portrait-trigger[aria-expanded="true"])::before { content: ""; position: absolute; inset-inline-start: 0; bottom: 100%; width: var(--portrait-width); height: .55rem; }
.portrait-badge span { color: #e4ebf5; }
.hero-primary { margin-top: 1.5rem; }
.affiliation { background: #fbf8f4; color: var(--subtle); border-bottom: 1px solid #eee3d8; }
.affiliation-inner { display: flex; min-height: 6.2rem; gap: 1rem 1.7rem; align-items: center; }
.affiliation img { width: 9.35rem; }
.affiliation p { padding-left: 1.7rem; border-left: 1px solid var(--line); }
.affiliation .quiet { margin-left: auto; color: var(--ink); }

.services { padding-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.section-head { max-width: 48rem; }
.section-head h2 { text-wrap: initial; }
.section-head p { margin-top: .82rem; max-width: 42rem; color: var(--subtle); }
.core-grid { gap: clamp(.9rem, 2vw, 1.65rem); }
.core-grid .tile-content { padding: clamp(1.15rem, 2.5vw, 1.8rem); }
.core-grid .service-tile > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .9rem; }
.service-card-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .7rem; border: 1px solid #b8c8da; border-radius: .42rem; color: #1d4f83; font-size: .94rem; font-weight: 700; text-decoration: none; }
.service-card-links a:hover { background: var(--wash); text-decoration: underline; }
.complex-feature { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; margin-top: 1.8rem; color: #fff; background: #172332; border-radius: .92rem; }
.complex-feature img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 69%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.complex-feature::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #172332 32%, #172332f5 40%, #1723328a 54%, transparent 72%); }
.complex-feature > div { width: min(56%, 39rem); padding: clamp(1.25rem, 4vw, 3.6rem); }
.complex-feature h3 { font: 500 clamp(2rem, 4.2vw, 4rem)/1.08 Georgia, serif; letter-spacing: -.04em; margin-top: .5rem; }
.complex-feature p + p, .complex-feature h3 + p { color: #dde7f5; margin-top: .8rem; }
.complex-feature .button { margin-top: 1.25rem; }
.service-figure { margin: 0; }
.service-figure figcaption { margin-top: .45rem; color: var(--subtle); font-size: .84rem; }
.service-hero .service-figure figcaption { color: var(--sky); }

.blog { background: #f8fbfe; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.45rem 0 1.1rem; }
.blog-card h3 { margin: .4rem 0 0; }
.blog-card p { font-size: .9rem; }
.blog-all { margin-top: .4rem; }

.approach { background: #fbf8f4; }
.approach-story { position: relative; isolation: isolate; overflow: hidden; background: #142237; color: #fff; }
.approach-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 60%; }
.approach-story::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0e1b2a 0%, #0e1b2ae8 29%, #0e1b2a9c 48%, #17233100 80%); }
.approach-intro { padding-block: clamp(3rem, 8vw, 7rem); }
.approach-intro p { margin-top: 1rem; max-width: 28rem; color: #edf1f7; }
.approach .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3.1vw, 2.6rem); padding-block: clamp(1.7rem, 4vw, 3.5rem); }
.approach .steps li { padding-bottom: .5rem; border-bottom: 0; }
.approach .steps p { color: var(--subtle); }

.reviews { background: var(--light); border-block: 1px solid var(--line); }
.review-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(1.8rem, 4vw, 3.4rem); }
.review-inner h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
.reviews-dialog { width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.1rem, 4vw, 2rem); border: 1px solid #bacadb; border-radius: 1rem; color: var(--ink); background: #fff; box-shadow: 0 1.5rem 4rem #06122570; }
.reviews-dialog::backdrop { background: #061225b8; }
.reviews-dialog-top { display: flex; gap: .75rem; align-items: start; justify-content: space-between; }
.reviews-dialog h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.reviews-dialog p { margin: .85rem 0 1.25rem; color: var(--subtle); }
.button-outline { color: var(--ink); background: transparent; border-color: #a8b7cb; }
.button-outline:hover { background: #e2eaf5; }
.rate-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 .9rem; }
.rate-list > div { display: grid; gap: .35rem; padding: clamp(.8rem, 2.6vw, 2rem); background: var(--light); border: 1px solid var(--line); border-radius: .65rem; }
.rate-list dt { font-weight: 650; color: var(--subtle); }
.rate-list dd { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 3.65vw, 3.5rem); letter-spacing: -.05em; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.rates-source { color: var(--subtle); font-size: .94rem; margin-top: .9rem; }
.rates-actions { display: flex; flex-wrap: wrap; gap: .85rem; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.45rem; }

.contact { background: linear-gradient(130deg, #0c1626 32%, #223752 95%); }
.contact-projects { position: relative; isolation: isolate; overflow: hidden; }
.contact-mosaic {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  grid-template-columns: 1.06fr 1fr 1.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas: "home renewal renovations" "build reverse renovations";
  gap: 2px;
  pointer-events: none;
}
.contact-mosaic img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.contact-mosaic img:nth-child(1) { grid-area: home; object-position: 53% 49%; }
.contact-mosaic img:nth-child(2) { grid-area: renewal; object-position: 48% 43%; }
.contact-mosaic img:nth-child(3) { grid-area: build; object-position: 54% 55%; }
.contact-mosaic img:nth-child(4) { grid-area: reverse; object-position: 51% 45%; }
.contact-mosaic img:nth-child(5) { grid-area: renovations; object-position: 62% center; }
.contact-mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10192824, #10192810 45%, #101928a8 82%),
              linear-gradient(180deg, #131f2c36 0%, #111c2e98 27%, #101a2ced 43%, #101a2ce8 60%, #111c2e79 78%, #111b2e47 100%);
}
.contact-projects .contact-intro { max-width: 29rem; text-shadow: 0 2px 14px #091320; }
.contact-projects .contact-intro p { color: #f1f5fb; }
.contact-inner { grid-template-columns: minmax(0,.82fr) minmax(0,1fr); gap: clamp(1.4rem, 4vw, 3.8rem); }
.contact .contact-embedded { width: 100%; margin: 0; scroll-margin-top: 1rem; }
.contact .contact-embedded p { color: var(--subtle); }
.contact .contact-embedded .contact-error { color: #772235; }

.partners { padding-block: clamp(1.8rem, 4.25vw, 3.75rem); background: #f2f6fb; border-bottom: 1px solid #d7e2ee; }
.partners-heading { display: flex; justify-content: space-between; align-items: center; gap: .85rem 1.5rem; margin-bottom: 1rem; }
.partners-heading h2 { font-size: clamp(2rem, 4.2vw, 3.65rem); }
.partners-heading p { margin-top: .42rem; color: var(--subtle); }
.partners-heading button { min-height: 44px; cursor: pointer; font-size: .9rem; }
.partners-heading button[hidden] { display: none; }
.partners-window { overflow: auto hidden; }
.partners-track, .partner-list { display: flex; align-items: center; width: max-content; }
.partner-list { flex: none; gap: .7rem; margin: 0; padding: 0 .7rem 0 0; list-style: none; }
.partner-list[aria-hidden] { display: none; }
.partner-list li { display: grid; justify-items: center; align-content: center; width: 10.75rem; min-height: 5.5rem; padding: .25rem .3rem .4rem; border: 1px solid #d8e2ee; border-radius: .58rem; background: #fff; }
.partner-logo { --logo-x: 0%; --logo-y: 0%; display: block; width: 155px; aspect-ratio: 2.5; background: url('/logos-partenaires.webp') var(--logo-x) var(--logo-y) / 700% 700% no-repeat; }
.partner-name { color: var(--subtle); font-size: .72rem; font-weight: 680; line-height: 1.2; text-align: center; }
.logo-x1 { --logo-x: 16.6667%; }.logo-x2 { --logo-x: 33.3333%; }.logo-x3 { --logo-x: 50%; }.logo-x4 { --logo-x: 66.6667%; }.logo-x5 { --logo-x: 83.3333%; }.logo-x6 { --logo-x: 100%; }
.logo-y1 { --logo-y: 16.6667%; }.logo-y2 { --logo-y: 33.3333%; }.logo-y3 { --logo-y: 50%; }.logo-y4 { --logo-y: 66.6667%; }.logo-y5 { --logo-y: 83.3333%; }.logo-y6 { --logo-y: 100%; }
@keyframes scroll-partners { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .partners.has-motion .partners-window { overflow: hidden; }
  .partners.has-motion .partners-track { animation: scroll-partners 106s linear infinite; }
  .partners.has-motion .partner-list[aria-hidden] { display: flex; }
  .partners.is-paused .partners-track, .partners-window:hover .partners-track, .partners-window:focus .partners-track { animation-play-state: paused; }
}

@media (max-width: 1040px) {
  .mast-inner { flex-wrap: wrap; }
  .mast-inner nav { position: relative; flex-wrap: wrap; order: 3; width: 100%; justify-content: flex-start; gap: .35rem 1rem; border-top: 1px solid var(--line); padding-top: .5rem; }
  .calculator-menu { position: static; }
  .calculator-menu ul { inset: calc(100% + .2rem) 0 auto auto; }
  .top-actions { margin-left: auto; }
  .rate-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .hero-layout { display: grid; align-content: space-between; min-height: 39rem; padding-top: 2rem; padding-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 9.9vw, 4.8rem); }
  .hero-slide { object-position: 65% center; }
  .hero::after { background: linear-gradient(180deg, #0d1725f2 0%, #0e1928db 32%, #142131a8 57%, #14213118 78%, #0e19287d 100%); }
  .hero-aside { justify-content: start; }
  .complex-feature { flex-direction: column; align-items: stretch; }
  .complex-feature img { position: static; width: 100%; height: auto; }
  .complex-feature::after { content: none; }
  .complex-feature > div { width: 100%; }
  .approach-photo { object-position: 63% 60%; }
  .approach-story::after { background: linear-gradient(90deg, #0e1b2af5 0%, #0e1b2aca 54%, #0e1b2a54); }
  .approach .steps, .contact-inner { grid-template-columns: 1fr; }
  .approach .steps li { padding-top: .5rem; }
  .approach .steps li::before { top: .5rem; }
  .contact-mosaic { bottom: auto; height: min(100%, 34rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-mosaic::after { background: linear-gradient(180deg, #0e192854 0%, #0e1928e8 22%, #0e1928c9 42%, #101c2f54 62%, #111d2d 100%); }
  .contact-projects .contact-intro { padding-block: .5rem 1rem; }
  .affiliation-inner { min-height: 0; padding-block: 1rem; }
  .affiliation-inner img { width: 8rem; }
  .affiliation p { padding-left: 1rem; }
  .affiliation .quiet { display: none; }
  .review-inner { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .top-contact { display: none; }
  .brand-logo { width: 9rem; }
  .top-actions { margin-left: 0; gap: .55rem; }
  .top-actions a { font-size: .8rem; }
  .rate-nav { padding: .62rem .52rem; }
  .contact .contact-embedded { border-radius: .8rem; }
  .rate-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .rate-list > div { padding: .75rem .55rem; }
  .rate-list dt { font-size: .9rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .partners-heading { align-items: start; }
}
@media (max-width: 365px) {
  .mast-inner { gap: .55rem; }
  .brand-logo { width: 7.3rem; }
  .mast-inner nav { justify-content: space-between; gap: .35rem; }
}

@keyframes reveal-house {
  from { opacity: .55; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes reveal-portrait {
  from { opacity: .72; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide { transition: opacity 1.35s ease, transform 3.25s cubic-bezier(.19, .65, .28, 1); }
  .hero-slide.from-left { transform: translateX(-4%) scale(1.115); }
  .hero-slide.from-right { transform: translateX(4%) scale(1.115); }
  .hero-slide.is-current, .hero-slide.is-previous { transform: none; }
  .hero-photo:not(.has-rotated) .hero-slide:first-child { animation: reveal-house 2.6s cubic-bezier(.18, .62, .28, 1) both; }
  .portrait-badge { animation: reveal-portrait .7s ease-out .15s both; }
}
