/* Novotherme — site styles
   Structure from the Novotherme design system (cream sections, slate bands, hairlines,
   light display type, mono labels); colours from the Novotherme logo and original site. */

:root {
  /* Surfaces */
  --surface: #f6f5f0;          /* cream page ground */
  --surface-sand: #e9eae2;     /* CTA band, raised panels */
  --surface-card: #ffffff;     /* nav, form fields */
  --slate: #3d3e40;            /* brand slate: dark bands (original site h1 colour) */
  --slate-deep: #232426;       /* footer */

  /* Text */
  --ink: #232426;                         /* text on cream (11.9:1) */
  --ink-muted: rgba(35, 36, 38, 0.68);    /* secondary text on cream (5.3:1) */
  --ink-on-dark: #f6f5f0;                 /* text on slate */
  --ink-on-dark-muted: rgba(246, 245, 240, 0.7);

  /* Brand */
  --green: #3e904f;            /* logo / original brand green: dots, rules, large marks */
  --green-deep: #2f7a40;       /* button fill with white label (5.3:1), green text on cream (4.9:1) */
  --green-light: #6fc283;      /* green text on slate (5.8:1) */
  --blue: #257ebf;             /* original accent blue: process numerals, focus ring */

  /* Lines & glass */
  --line: rgba(35, 36, 38, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --glass: rgba(35, 36, 38, 0.06);
  --glass-light: rgba(255, 255, 255, 0.86);
  --scrim: rgba(28, 28, 30, 0.5);

  /* Type */
  --font-display: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;

  /* Space & radius */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s14: 56px; --s20: 80px; --s30: 120px;
  --container: 1440px;
  --r-xs: 2px; --r-sm: 4px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-optical-sizing: auto; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-card); padding: var(--s2) var(--s3); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--s8); }
.section { padding-block: var(--s20) var(--s30); }
.section--tight { padding-block: var(--s20); }
.dark { background: var(--slate); color: var(--ink-on-dark); --ink-muted: var(--ink-on-dark-muted); --line: var(--line-on-dark); }

/* ---------- Type ---------- */
.display-xl { font: 400 88px/88px var(--font-display); letter-spacing: -2.64px; }
.display-l { font: 400 72px/72px var(--font-display); letter-spacing: -1.44px; }
.display-m { font: 400 56px/56px var(--font-display); letter-spacing: -1.12px; }
.display-s { font: 400 40px/42px var(--font-display); letter-spacing: -0.8px; }
.title { font: 400 20px/22px var(--font-display); letter-spacing: -0.2px; }
.lead { font-size: 20px; line-height: 28px; letter-spacing: -0.6px; }
.body-s { font-size: 14px; line-height: 20px; letter-spacing: -0.14px; }
.muted { color: var(--ink-muted); }
.micro { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; }

.micro { font-size: 12px; line-height: 18px; letter-spacing: 0.4px; }
.prose { display: grid; gap: var(--s4); max-width: 64ch; }

/* ---------- Eyebrow ---------- */

.eyebrow-rule { display: flex; justify-content: flex-end; align-items: center; gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); margin-bottom: var(--s10); min-height: 1px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: var(--s3) var(--s6); border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: 500 13px/14.3px var(--font-mono); letter-spacing: 1.82px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.btn:hover { background: var(--line); }
.dark .btn:not(.btn--primary) { color: var(--ink-on-dark); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.dark .btn:not(.btn--primary):hover { background: rgba(255,255,255,.14); }
.btn--primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; padding-inline: var(--s5); }
.btn--primary:hover { background: #276836; border-color: #276836; }
.btn--on-photo { background: rgba(28, 28, 30, 0.35); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(8px); }
.btn--on-photo:hover { background: rgba(28, 28, 30, 0.6); }
.btn--sm { min-height: 34px; padding: var(--s2) var(--s3); font-size: 11.5px; line-height: 16px; letter-spacing: .4px; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Chip ---------- */
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) 10px; border-radius: var(--r-sm); font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-transform: uppercase; background: rgba(28, 28, 30, .45); border: 1px solid rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); }

/* ---------- Header / nav ---------- */
.site-header { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--s4)); padding-inline: var(--s4); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: var(--s4); max-width: 1240px; margin: 0 auto; padding: var(--s2) var(--s2) var(--s2) var(--s4); background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: var(--r-xs); }
.nav__logo { flex: none; display: block; }
.nav__logo img { height: 48px; width: auto; }
.nav__links { display: flex; gap: var(--s4); list-style: none; margin: 0 auto; padding: 0; }
.nav__links a { text-decoration: none; font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-transform: uppercase; padding-block: var(--s2); border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--green); }
.nav__cta { flex: none; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-xs); height: 32px; padding: 0 var(--s3); font: 500 10px/1 var(--font-mono); letter-spacing: .2px; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.nav__menu { display: contents; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 720px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--slate); }
.hero > img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: translate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,33,.35) 0%, var(--scrim) 55%, rgba(20,28,33,.7) 100%); }
.hero__content { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s5); padding: 160px var(--s8) var(--s20); max-width: 980px; }
.hero__content p { max-width: 560px; color: rgba(255,255,255,.86); }

/* ---------- Section heads ---------- */
.head-center { display: grid; justify-items: center; text-align: center; gap: var(--s5); margin-bottom: var(--s14); }
.head-center p { max-width: 640px; }
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s10); align-items: end; margin-bottom: var(--s14); }

/* ---------- Service cards (home) ---------- */

/* ---------- Offer rows (service pages) ---------- */
.offers { display: grid; gap: var(--s20); }
.offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s10); align-items: center; }
.offer:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.offer:nth-child(even) .offer__media { order: 2; }

.offer__body { display: grid; gap: var(--s5); align-content: start; }

/* ---------- Process / domains grid ---------- */
.grid-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: var(--s6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: var(--s3); align-content: start; min-height: 180px; }

.cell h3 { font: 500 14px/20px var(--font-sans); }
.cell p { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Gallery ---------- */
.cases { display: flex; gap: var(--s6); }
.case { display: grid; gap: var(--s3); }

.case figcaption { display: grid; gap: var(--s1); }

/* ---------- Split about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s14); align-items: start; }
.split__media { position: relative; padding-bottom: var(--s20); }
.trust { list-style: none; margin: var(--s10) 0 0; padding: 0; }
.trust li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.trust strong { font: 400 24px/28px var(--font-display); letter-spacing: -.5px; }
.trust span { text-align: right; }
.trust--expand span { text-align: left; }

/* ---------- CTA band ---------- */

.cta--photo { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--slate); }
.cta--photo > img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: translate; }
.cta--photo::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.cta--photo .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s5); padding-block: var(--s30); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s14); align-items: start; }
.info { list-style: none; margin: 0; padding: 0; }
.info li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.info li:last-child { border-bottom: 1px solid var(--line); }
.info a { color: var(--green-deep); text-decoration: none; }
.info a:hover { text-decoration: underline; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-sm); filter: grayscale(.35); background: var(--surface-sand); }

.form { display: grid; gap: var(--s5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field label { font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-xs); padding: var(--s3) var(--s4); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.check input { margin-top: 3px; accent-color: var(--green-deep); }
.form__note { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.form__status { padding: var(--s3) var(--s4); border: 1px solid var(--green); border-radius: var(--r-xs); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--slate-deep); color: var(--ink-on-dark); --ink-muted: var(--ink-on-dark-muted); --line: var(--line-on-dark); padding-block: var(--s20) var(--s8); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s10); padding-bottom: var(--s14); }
.footer__logo { justify-self: start; background: #fff; border-radius: var(--r-sm); padding: var(--s3) var(--s4); display: inline-block; }
.footer__logo img { height: 56px; width: auto; }
.footer h4 { margin-bottom: var(--s4); color: var(--ink-on-dark-muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: 14px; line-height: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--green-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s5); color: var(--ink-on-dark-muted); }

/* =========================================================
   Motion & interaction
   ========================================================= */
:root { --ease-out: cubic-bezier(.2,.7,.2,1); --ease-io: cubic-bezier(.77,0,.18,1); }

/* Media frame: reveal from the top + parallax inside */
.media { position: relative; overflow: hidden; border-radius: var(--r-sm); max-width: 100%; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.14; translate: 0 var(--py, 0px); will-change: translate; }
.js .reveal-img > :first-child { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io) var(--d, 0ms); }
.js .reveal-img.is-in > :first-child { clip-path: inset(0 0 0 0); }
.js .media.reveal-img img { transition: scale 1.6s var(--ease-out) var(--d, 0ms), clip-path 1.2s var(--ease-io) var(--d, 0ms); scale: 1.3; }
.js .media.reveal-img.is-in img { scale: 1.14; }
.offer__media .media { width: 100%; }

/* Overlap: content panels rise over the hero */
.overlap { position: relative; z-index: 2; margin-top: -96px; }

.overlap--panel { padding-top: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: var(--s14) var(--s10) var(--s10); }
.hero--home .hero__content { padding-bottom: 180px; }

/* Hero logo */
.hero__logo { background: none; padding: 0; }
.hero__logo img { width: min(560px, 74vw); height: auto; }

/* Split: floating second image */
.split__float { position: absolute; right: calc(var(--s10) * -1); bottom: 0; width: 42%; z-index: 2; border: 8px solid var(--surface); border-radius: var(--r-sm); background: var(--surface); }
[data-float] { will-change: translate; translate: 0 var(--fy, 0px); }

/* ---------- Trust rows: hover expand ---------- */
.trust--expand li { display: block; padding: 0; cursor: default; outline: none; }
.trust__row { display: flex; justify-content: space-between; align-items: center; padding: var(--s5) 0; }
.trust__row strong { transition: color .3s ease, translate .5s var(--ease-out); }
.trust__plus { position: relative; width: 14px; height: 14px; flex: none; }
.trust__plus::before, .trust__plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--ink); transition: rotate .5s var(--ease-out), opacity .3s; }
.trust__plus::after { rotate: 90deg; }
.trust__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.trust__detail > div { overflow: hidden; display: grid; gap: var(--s2); align-content: start; }
.trust__big { font: 400 32px/36px var(--font-display); letter-spacing: -.64px; color: var(--green-deep); opacity: 0; translate: 0 10px; transition: opacity .4s ease, translate .6s var(--ease-out); }
.trust__detail > div > :last-child { margin-bottom: var(--s5); }
.trust__link { font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.trust--expand li:hover .trust__detail, .trust--expand li:focus-within .trust__detail { grid-template-rows: 1fr; }
.trust--expand li:hover .trust__big, .trust--expand li:focus-within .trust__big { opacity: 1; translate: 0 0; transition-delay: .1s; }
.trust--expand li:hover .trust__plus::after, .trust--expand li:focus-within .trust__plus::after { rotate: 0deg; }
.trust--expand li:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- Chantiers: expand + carousel ---------- */
.case { flex: 1 1 0; min-width: 0; margin: 0; display: grid; gap: var(--s3); align-content: start; transition: flex-grow .8s var(--ease-out); }
.cases:hover .case { flex-grow: .75; }
.cases .case:hover, .cases .case:focus-within { flex-grow: 1.9; }
.case__media { position: relative; height: 380px; border-radius: var(--r-sm); overflow: hidden; }
.case__track { display: flex; height: 100%; overflow-x: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.case__track::-webkit-scrollbar { display: none; }
.case:hover .case__track, .case:focus-within .case__track { overflow-x: auto; cursor: grab; }
.case__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none; }
.case__nav { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-xs); background: rgba(20,28,33,.45); backdrop-filter: blur(8px); color: #fff; font: 400 14px/1 var(--font-sans); cursor: pointer; opacity: 0; transition: opacity .35s ease, translate .5s var(--ease-out), background .2s; }
.case__nav:hover { background: rgba(20,28,33,.75); }
.case__nav--prev { left: var(--s3); translate: -8px -50%; }
.case__nav--next { right: var(--s3); translate: 8px -50%; }
.case:hover .case__nav, .case:focus-within .case__nav { opacity: 1; translate: 0 -50%; }
.case__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.case__count { position: absolute; left: var(--s3); bottom: var(--s3); padding: 2px 8px; border-radius: var(--r-xs); background: rgba(20,28,33,.55); color: #fff; opacity: 0; transition: opacity .35s ease; }
.case:hover .case__count, .case:focus-within .case__count { opacity: 1; }
.case figcaption { display: grid; gap: var(--s1); }
.case__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.case__desc > span { overflow: hidden; font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 52ch; opacity: 0; transition: opacity .35s ease; }
.case:hover .case__desc, .case:focus-within .case__desc { grid-template-rows: 1fr; }
.case:hover .case__desc > span, .case:focus-within .case__desc > span { opacity: 1; transition-delay: .2s; padding-top: var(--s2); }

/* ---------- Buttons: quote (form fills in) + call (number dials) ---------- */
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico-form .ln { stroke-dasharray: 7; stroke-dashoffset: 0; }
.ico-form .pen { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; }
.btn--quote:hover .ico-form .ln, .btn--quote:focus-visible .ico-form .ln { animation: nv-write .5s var(--ease-out) both; }
.btn--quote:hover .ln2 { animation-delay: .28s !important; }
.btn--quote:hover .ln3 { animation-delay: .56s !important; }
.btn--quote:hover .pen, .btn--quote:focus-visible .pen { animation: nv-pen 1.1s var(--ease-out) both; }
@keyframes nv-write { from { stroke-dashoffset: 7; } to { stroke-dashoffset: 0; } }
@keyframes nv-pen { 0% { opacity: 0; translate: -7px -6px; } 15% { opacity: 1; } 30% { translate: 0 -6px; } 45% { translate: -7px -3px; } 60% { translate: 0 -3px; } 75% { translate: -5px 0; } 90% { opacity: 1; translate: -1px 0; } 100% { opacity: 0; translate: 0 0; } }
.btn--quote { overflow: hidden; position: relative; }
.btn--quote::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--green-light); scale: 0 1; transform-origin: left; transition: scale .9s var(--ease-out); }
.btn--quote:hover::after { scale: 1 1; }

.btn--call { gap: var(--s3); }
.ico-phone .handset { fill: currentColor; stroke: none; transform-origin: 30% 70%; transform-box: fill-box; }
.ico-phone .wave { opacity: 0; }
.btn--call:hover .handset, .btn--call:focus-visible .handset { animation: nv-ring .9s ease-in-out 2; }
.btn--call:hover .w1, .btn--call:focus-visible .w1 { animation: nv-wave 1.8s ease-out infinite; }
.btn--call:hover .w2, .btn--call:focus-visible .w2 { animation: nv-wave 1.8s ease-out .3s infinite; }
@keyframes nv-ring { 0%, 100% { rotate: 0deg; } 10%, 30%, 50% { rotate: -14deg; } 20%, 40%, 60% { rotate: 12deg; } 70% { rotate: 0deg; } }
@keyframes nv-wave { 0% { opacity: 0; } 20% { opacity: 1; } 70%, 100% { opacity: 0; } }
.digits { display: inline-flex; }
.digits .d { display: inline-block; white-space: pre; }

/* ---------- Other services: hover expand ---------- */
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more { border-bottom: 1px solid var(--line); }
.more__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; text-decoration: none; }
.more__name { font: 400 32px/36px var(--font-display); letter-spacing: -.64px; transition: translate .6s var(--ease-out), color .3s ease; }
.more__arrow { font-size: 20px; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out), color .3s; }
.more__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.more__inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); }
.more__img { height: 260px; border-radius: var(--r-sm); overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); margin-bottom: var(--s8); }
.more__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 1.2s var(--ease-out); }
.more__text { display: grid; gap: var(--s3); align-content: start; padding-bottom: var(--s8); opacity: 0; translate: 0 12px; transition: opacity .4s ease, translate .6s var(--ease-out); }
.more__text ul { list-style: none; margin: 0 0 var(--s2); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.more__text li { font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-transform: uppercase; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s1) 10px; }
.more__text .btn { justify-self: start; }
.more:hover .more__panel, .more:focus-within .more__panel { grid-template-rows: 1fr; }
.more:hover .more__name, .more:focus-within .more__name { translate: 12px 0; color: var(--green-deep); }
.more:hover .more__arrow, .more:focus-within .more__arrow { rotate: 90deg; color: var(--green-deep); }
.more:hover .more__img, .more:focus-within .more__img { clip-path: inset(0 0 0 0); }
.more:hover .more__img img, .more:focus-within .more__img img { scale: 1; }
.more:hover .more__text, .more:focus-within .more__text { opacity: 1; translate: 0 0; transition-delay: .2s; }

/* Language switch */
.lang { display: flex; flex: none; border: 1px solid var(--line); border-radius: var(--r-xs); overflow: hidden; }
.lang a { position: relative; padding: 6px 7px; font: 500 12px/18px var(--font-mono); letter-spacing: .2px; text-decoration: none; color: var(--ink-muted); transition: color .25s ease, background .25s ease; }
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { color: var(--ink); background: var(--glass); }
.lang a[aria-current="page"] { color: #fff; background: var(--slate); }
.footer__langs a { text-decoration: none; }
.footer__langs a:hover { color: var(--green-light); }
.cta--photo > img { translate: 0 var(--py, 0px); }

/* Staggered rise (classes added by main.js; --d is the per-element delay) */
.js .rise:not(.is-in) { opacity: 0; translate: 0 22px; }
.js .rise.is-in:not(.is-done) { transition: opacity .9s var(--ease-out) var(--d, 0ms), translate 1s var(--ease-out) var(--d, 0ms); }

/* Hover sequences: small offsets so expanding content builds up in order */
.trust__detail .trust__link, .trust__detail .micro { display: inline-block; opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .5s var(--ease-out); }
.trust--expand li:hover .trust__link, .trust--expand li:hover .trust__detail .micro,
.trust--expand li:focus-within .trust__link, .trust--expand li:focus-within .trust__detail .micro { opacity: 1; translate: 0 0; transition-delay: .22s; }
.more__text > * { opacity: 0; translate: 0 10px; transition: opacity .4s ease, translate .6s var(--ease-out); }
.more:hover .more__text > *, .more:focus-within .more__text > * { opacity: 1; translate: 0 0; }
.more:hover .more__text > :nth-child(1), .more:focus-within .more__text > :nth-child(1) { transition-delay: .18s; }
.more:hover .more__text > :nth-child(2), .more:focus-within .more__text > :nth-child(2) { transition-delay: .26s; }
.more:hover .more__text > :nth-child(3), .more:focus-within .more__text > :nth-child(3) { transition-delay: .34s; }
.more:hover .more__text > :nth-child(4), .more:focus-within .more__text > :nth-child(4) { transition-delay: .42s; }
.more__text { opacity: 1 !important; translate: none !important; }
.case:hover .case__nav--prev { transition-delay: .15s; }
.case:hover .case__nav--next { transition-delay: .22s; }
.case:hover .case__count { transition-delay: .3s; }
@keyframes nv-fade-up { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.btn--quote:hover .ln1 { animation-delay: .05s !important; }

/* Touch screens: no hover, so show expanded content directly */
@media (hover: none) {
  .service__extra, .trust__detail { grid-template-rows: 1fr; }
  .service__extra > p, .trust__big { opacity: 1; translate: 0 0; }
  .case__track { overflow-x: auto; }
  .case__nav, .case__count { opacity: 1; translate: 0 -50%; }
  .case__count { translate: none; }
  .case__desc { grid-template-rows: 1fr; } .case__desc > span { opacity: 1; padding-top: var(--s2); }
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .reveal { animation-delay: .4s; } .reveal-2 { animation-delay: .52s; } .reveal-3 { animation-delay: .64s; } .reveal-4 { animation-delay: .76s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero > img { animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .js .rise:not(.is-in) { opacity: 1; translate: none; } html { scroll-behavior: auto; } .js .reveal-img > :first-child { clip-path: none; } .media img, .hero > img { translate: none !important; }}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav__links a { font-size: 9px; }
  .nav__links { gap: var(--s3); }
}
@media (max-width: 1100px) {
  
  
  .split__float { right: var(--s4); }
  .display-xl { font-size: 64px; line-height: 64px; letter-spacing: -1.9px; }
  .display-l { font-size: 56px; line-height: 58px; letter-spacing: -1.1px; }
  .display-m { font-size: 44px; line-height: 46px; letter-spacing: -.9px; }
  .nav__links { gap: var(--s3); }
  
  
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; padding-left: var(--s3); }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu { display: none; width: 100%; }
  .nav.is-open .nav__menu { display: grid; gap: var(--s4); padding: var(--s3) var(--s2) var(--s4); }
  .nav.is-open .nav__links { flex-direction: column; margin: 0; gap: 0; }
  .nav.is-open .nav__links a { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: none; }
  .nav.is-open .nav__cta { display: inline-flex; justify-self: start; }
  .nav.is-open .lang { justify-self: start; }
  .head-split, .split, .faq-wrap, .contact-grid, .offer, .offer:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .offer:nth-child(even) .offer__media { order: 0; }
  .grid-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { flex-direction: column; gap: var(--s10); }
  .case, .cases:hover .case, .cases .case:hover { flex: none; }
  .case__media { height: 300px; }
  .more__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .more__img { height: 200px; margin-bottom: 0; }
  .overlap { margin-top: -64px; }
  .panel { padding: var(--s8) var(--s5) var(--s6); }}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--s4); }
  .section { padding-block: var(--s14) var(--s20); }
  .display-xl, .display-l { font-size: 40px; line-height: 42px; letter-spacing: -.8px; }
  .display-m { font-size: 34px; line-height: 36px; letter-spacing: -.6px; }
  .display-s { font-size: 30px; line-height: 32px; }
  .hero { min-height: 600px; }
  
  .hero__content { padding: 140px var(--s4) var(--s14); }
  .grid-lines, .form__row, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .more__name { font-size: 24px; line-height: 28px; }
  .trust__big { font-size: 24px; line-height: 28px; }
  .split__float { width: 48%; }
  
  
  .info li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  }

/* =========================================================
   Round 3: refined interactions
   ========================================================= */
:root { --ease-snap: cubic-bezier(.22, 1, .36, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Floating nav ---------- */
.site-header { transition: translate .5s var(--ease-snap); }
.site-header.is-hidden { translate: 0 calc(-100% - 24px); }
.nav { background: rgba(255, 255, 255, .97); border-color: rgba(35, 36, 38, .1); box-shadow: 0 1px 0 rgba(35, 36, 38, .04), 0 18px 40px -22px rgba(28, 28, 30, .45); padding: 10px 10px 10px 18px; transition: padding .4s var(--ease-snap), box-shadow .4s ease, max-width .5s var(--ease-snap); }
.site-header.is-scrolled .nav { padding-block: 6px; box-shadow: 0 1px 0 rgba(35, 36, 38, .06), 0 12px 30px -18px rgba(28, 28, 30, .5); }
.nav__logo img { height: 50px; transition: height .4s var(--ease-snap), scale .4s var(--ease-snap); }
.site-header.is-scrolled .nav__logo img { height: 40px; }
.nav__logo:hover img { scale: 1.04; }
.nav__links { gap: 2px; }
.nav__links a { position: relative; display: block; padding: 8px 10px; border: 0; border-radius: var(--r-xs); font-size: 11px; letter-spacing: .4px; color: var(--ink); transition: color .25s ease, background .25s ease; }
.nav__links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: var(--green); scale: 0 1; transform-origin: right; transition: scale .45s var(--ease-snap); }
.nav__links a:hover { background: rgba(62, 144, 79, .08); color: var(--green-deep); border: 0; }
.nav__links a:hover::after { scale: 1 1; transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--green-deep); border: 0; }
.nav__links a[aria-current="page"]::after { scale: 1 1; height: 2px; }
.lang a { padding: 7px 8px; }
@media (max-width: 1240px) { .nav__links a { font-size: 10px; padding: 8px 7px; } .nav__links a::after { left: 7px; right: 7px; }}
@media (max-width: 900px) {
  .nav.is-open .nav__links a { padding: var(--s3) 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a::after { display: none; }
  .nav__logo img, .site-header.is-scrolled .nav__logo img { height: 40px; }}

/* ---------- Home hero: the logo is the headline ---------- */
.hero--home { min-height: 760px; }
.hero--home .hero__content { gap: var(--s10); padding-bottom: 200px; max-width: 1100px; }
.hero__logo--xl img { width: min(900px, 88vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }

/* ---------- Key figures band ---------- */

/* ---------- Service cards: horizontal-only, quick ---------- */

/* ---------- Trust rows: titles stay put ---------- */
.trust--expand li:hover strong, .trust--expand li:focus-within strong { color: var(--green-deep); translate: none; }

/* ---------- Réalisations: quicker expand, image with the card ---------- */
.case { transition: flex-grow .55s var(--ease-snap); }
.cases:hover .case { flex-grow: .85; }
.cases .case:hover, .cases .case:focus-within { flex-grow: 1.6; }

/* ---------- CTA band: still images ---------- */

/* ---------- FAQ: grid-row panels, no scripted height ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; background: none; border: 0; color: var(--ink); font: 400 16px/24px var(--font-sans); text-align: left; cursor: pointer; transition: color .25s ease; }
.faq__q:hover { color: var(--green-deep); }
.faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq__icon { position: relative; width: 12px; height: 12px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1px; background: currentColor; transition: rotate .5s var(--ease-snap); }
.faq__icon::after { rotate: 90deg; }
.faq__item.is-open .faq__icon::after { rotate: 0deg; }
.faq__item.is-open .faq__icon::before { rotate: 180deg; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-snap); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { padding: 0 0 var(--s5); font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 60ch; opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .45s var(--ease-snap); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; translate: 0 0; transition-delay: .08s; }
html:not(.js) .faq__a { grid-template-rows: 1fr; } html:not(.js) .faq__a p { opacity: 1; translate: none; }

/* ---------- Phone links: icon rings, underline draws ---------- */
.digits { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 1px; transition: background-size .5s var(--ease-snap); }
.btn--call:hover .digits, .btn--call:focus-visible .digits { background-size: 100% 1px; }

/* ---------- Présentation: domain cards with photos ---------- */
.grid-lines { gap: 0; }
.cell--img { padding: 0; gap: 0; min-height: 0; }
.cell__img { aspect-ratio: 16 / 9; overflow: hidden; }
.cell__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--ease-snap); }
.cell--img:hover .cell__img img { scale: 1.04; }
.cell__body { display: grid; gap: var(--s3); align-content: start; padding: var(--s6); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s10) var(--s6); }
.member { display: grid; gap: var(--s2); align-content: start; }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-sand); margin-bottom: var(--s3); display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-snap); }
.member:hover .member__photo img { scale: 1.04; }
.team__ph { width: 38%; aspect-ratio: 1; border-radius: 50%; background: rgba(35, 36, 38, .1); box-shadow: 0 0 0 0 rgba(35, 36, 38, .1); position: relative; top: -8%; }
.team__ph::after { content: ""; position: absolute; left: -45%; right: -45%; top: 118%; height: 120%; border-radius: 50% 50% 0 0; background: rgba(35, 36, 38, .1); }
.team__soon { position: absolute; left: var(--s3); bottom: var(--s3); color: var(--ink-muted); }

@media (max-width: 1100px) {
  
  
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  
  }
@media (max-width: 900px) {
  .cases .case, .cases:hover .case { flex: none; }}
@media (max-width: 640px) {
  .hero--home { min-height: 620px; }
  .hero--home .hero__content { padding-bottom: 150px; gap: var(--s8); }
  
  
  .team { grid-template-columns: minmax(0, 1fr); }}
@media (prefers-reduced-motion: reduce) { .site-header.is-hidden { translate: none; }}

/* =========================================================
   Round 4
   ========================================================= */

/* ---------- Page slide transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: nv-header; }
::view-transition-group(nv-header) { z-index: 10; animation-duration: .5s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); mix-blend-mode: normal; }
@keyframes nv-out-left { to { translate: -100% 0; } }
@keyframes nv-out-right { to { translate: 100% 0; } }
@keyframes nv-in-right { from { translate: 100% 0; } }
@keyframes nv-in-left { from { translate: -100% 0; } }
/* Fallback for browsers without cross-document transitions (driven by main.js) */

body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; }}

/* ---------- Language swap ---------- */

/* ---------- Sizes ---------- */
.nav__links a { font-size: 12px; }
@media (max-width: 1240px) { .nav__links a { font-size: 11px; }}

/* ---------- FAQ layout ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s10); align-items: start; }
.faq-wrap > h2 { line-height: .9; }
.faq__q { padding: var(--s5) 0; font-size: 17px; line-height: 26px; }
.faq__a p { padding: 0 var(--s10) var(--s6) 0; font-size: 15px; line-height: 24px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }}

/* ---------- Key figures: floating cards ---------- */

/* ---------- Réalisations section ---------- */
.real__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s10); align-items: end; margin-bottom: var(--s14); padding-bottom: var(--s10); border-bottom: 1px solid var(--line); }
.real__title { font: 400 120px/.9 var(--font-display); letter-spacing: -4.8px; }
.real__aside { display: grid; gap: var(--s4); justify-items: start; }
.cases { align-items: flex-start; gap: var(--s6); }
.case:nth-child(3n+2) { margin-top: var(--s14); }
.case:nth-child(3n+3) { margin-top: calc(var(--s14) * 2); }
.case__tag { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; padding: 3px 9px; border-radius: var(--r-xs); background: rgba(28, 28, 30, .55); backdrop-filter: blur(8px); color: #fff; }
.case figcaption { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); row-gap: var(--s2); align-items: baseline; padding-top: var(--s2); }

.case__title { text-decoration: none; transition: color .25s ease; }
.case__title:hover { color: var(--green-light); }
.case__desc, .case__link { grid-column: 2; }
.case__link { justify-self: start; color: var(--ink-on-dark); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; transition: border-color .3s ease, color .3s ease; }
.case__link:hover { color: var(--green-light); border-color: var(--green-light); }
.case:hover .case__link .arr { translate: 6px 0; }
@media (max-width: 900px) {
  .real__head { grid-template-columns: minmax(0, 1fr); }
  .real__title { font-size: 72px; letter-spacing: -2.8px; }
  .case:nth-child(n) { margin-top: 0; }}

/* ---------- Project page ---------- */

.proj { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s14); align-items: start; }
.proj__text { display: grid; gap: var(--s8); }
.proj__text .lead { font-size: 24px; line-height: 34px; letter-spacing: -.6px; }
.proj__facts li a { color: var(--green-deep); text-decoration: none; }
.arr--back { margin-right: 4px; }
.btn:hover .arr--back { translate: -4px 0; }
.gal__title { margin-bottom: var(--s8); }
.gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); }
.gal__item { margin: 0; overflow: hidden; border-radius: var(--r-sm); grid-column: span 3; aspect-ratio: 4 / 3; }
.gal__item:first-child { grid-column: span 6; aspect-ratio: 21 / 9; }
/* With 4 photos: the three after the first share one row (no photo left alone) */
@media (min-width: 901px) { .gal__item:first-child:nth-last-child(4) ~ .gal__item { grid-column: span 2; aspect-ratio: 3 / 4; }}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-snap); }
.gal__item:hover img { scale: 1.03; }
.proj-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proj-nav__link { display: grid; gap: var(--s2); padding: var(--s8) var(--s6) var(--s8) 0; text-decoration: none; transition: background .3s ease; }
.proj-nav__link--next { text-align: right; padding: var(--s8) 0 var(--s8) var(--s6); border-left: 1px solid var(--line); }
.proj-nav__t { font: 400 32px/36px var(--font-display); letter-spacing: -.64px; transition: color .3s ease, translate .5s var(--ease-snap); }
.proj-nav__link:hover .proj-nav__t { color: var(--green-deep); translate: -6px 0; }
.proj-nav__link--next:hover .proj-nav__t { translate: 6px 0; }
@media (max-width: 900px) {
  .proj { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .gal__item, .gal__item:first-child { grid-column: span 6; aspect-ratio: 4 / 3; }
  .proj-nav { grid-template-columns: minmax(0, 1fr); }
  .proj-nav__link--next { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .proj-nav__t { font-size: 24px; line-height: 28px; }}

/* ---------- Form ---------- */
.form { gap: var(--s6); }
.field { position: relative; }
.field--float input, .field--float textarea { width: 100%; padding: 26px var(--s4) 10px; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-xs); outline: none; transition: border-color .25s ease, background .25s ease, box-shadow .35s ease; }
.field--float textarea { min-height: 170px; resize: vertical; }
.field--float label { position: absolute; left: var(--s4); top: 19px; font: 400 16px/20px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); pointer-events: none; transform-origin: left top; transition: translate .35s var(--ease-snap), scale .35s var(--ease-snap), color .25s ease; }
.field--float input:focus + label, .field--float input:not(:placeholder-shown) + label,
.field--float textarea:focus + label, .field--float textarea:not(:placeholder-shown) + label { translate: 0 -11px; scale: .76; }
.field--float input:focus + label, .field--float textarea:focus + label { color: var(--green-deep); }
.field--float input:hover, .field--float textarea:hover { border-color: rgba(35, 36, 38, .3); }
.field--float input:focus, .field--float textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(62, 144, 79, .12); }

.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); box-shadow: none; }
.field.is-invalid label { color: var(--danger); }

.field.is-shake { animation: nv-shake .4s ease; }
@keyframes nv-shake { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
.field.is-valid input:not(:focus) { background-image: linear-gradient(transparent, transparent); }
.field__err { display: block; min-height: 0; font-size: 13px; line-height: 18px; color: var(--danger); opacity: 0; translate: 0 -4px; transition: opacity .25s ease, translate .35s var(--ease-snap); }
.field.is-invalid .field__err, .drop.is-invalid .field__err { opacity: 1; translate: 0 0; margin-top: 6px; }
.field__meta { display: flex; justify-content: space-between; gap: var(--s4); margin-top: 6px; min-height: 18px; }
.field__meta .field__err { margin-top: 0 !important; }
.field__count { color: var(--ink-muted); transition: color .25s ease; }
.field__count b { font-weight: 500; font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--green-deep); }

/* custom select */
.select__label { position: absolute; left: var(--s4); top: 9px; z-index: 1; font-size: 12px; line-height: 14px; color: var(--ink-muted); pointer-events: none; transition: color .25s ease; }
.select.is-open .select__label { color: var(--green-deep); }
.select__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 26px var(--s4) 10px; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-xs); cursor: pointer; text-align: left; transition: border-color .25s ease, box-shadow .35s ease; }
.select__btn:hover { border-color: rgba(35, 36, 38, .3); }
.select.is-open .select__btn, .select__btn:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(62, 144, 79, .12); }
.select__value[data-empty] { color: var(--ink-muted); }
.select__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: rotate .4s var(--ease-snap); flex: none; margin-top: -14px; }
.select.is-open .select__chev { rotate: 180deg; }
.select__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 24px 50px -20px rgba(28, 28, 30, .35); opacity: 0; translate: 0 -8px; scale: .98; transform-origin: top; pointer-events: none; transition: opacity .25s ease, translate .4s var(--ease-snap), scale .4s var(--ease-snap); outline: none; }
.select.is-open .select__list { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.select__list li { position: relative; padding: 10px 12px 10px 34px; border-radius: var(--r-xs); cursor: pointer; font-size: 15px; line-height: 22px; transition: background .2s ease, color .2s ease, padding .3s var(--ease-snap); opacity: 0; translate: 0 -4px; }
.select.is-open .select__list li { opacity: 1; translate: 0 0; transition: background .2s ease, color .2s ease, opacity .3s ease, translate .4s var(--ease-snap); }
.select.is-open .select__list li:nth-child(2) { transition-delay: 0s, 0s, .03s, .03s; }
.select.is-open .select__list li:nth-child(3) { transition-delay: 0s, 0s, .06s, .06s; }
.select.is-open .select__list li:nth-child(4) { transition-delay: 0s, 0s, .09s, .09s; }
.select.is-open .select__list li:nth-child(5) { transition-delay: 0s, 0s, .12s, .12s; }
.select.is-open .select__list li:nth-child(6) { transition-delay: 0s, 0s, .15s, .15s; }
.select.is-open .select__list li:nth-child(7) { transition-delay: 0s, 0s, .18s, .18s; }
.select__list li.is-active { background: rgba(62, 144, 79, .08); }
.select__list li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 7px; border-left: 1.5px solid var(--green-deep); border-bottom: 1.5px solid var(--green-deep); rotate: -45deg; translate: 0 -70%; scale: 0; transition: scale .3s var(--ease-snap); }
.select__list li[aria-selected="true"] { color: var(--green-deep); }
.select__list li[aria-selected="true"]::before { scale: 1; }

/* upload */
.drop { display: grid; gap: var(--s2); }
.drop__zone { display: grid; justify-items: center; gap: 6px; padding: var(--s8) var(--s4); border: 1.5px dashed rgba(35, 36, 38, .22); border-radius: var(--r-sm); background: var(--surface-card); text-align: center; cursor: pointer; transition: border-color .3s ease, background .3s ease, scale .4s var(--ease-snap); }
.drop__zone:hover { border-color: var(--green); }
.drop__zone u { color: var(--green-deep); text-underline-offset: 3px; }
.drop__icon { width: 28px; height: 28px; fill: none; stroke: var(--green-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: translate .5s var(--ease-snap); }
.drop__zone:hover .drop__icon { translate: 0 -3px; }
.drop.is-over .drop__zone { border-color: var(--green); background: rgba(62, 144, 79, .06); scale: 1.01; }
.drop.is-over .drop__icon { animation: nv-bob .9s ease-in-out infinite; }
@keyframes nv-bob { 50% { translate: 0 -5px; } }
#f-file:focus-visible + .drop__zone { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop__file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s3); row-gap: 6px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-card); animation: nv-pop .45s var(--ease-snap) both; }
@keyframes nv-pop { from { opacity: 0; translate: 0 8px; scale: .98; } }
.drop__doc { width: 22px; height: 22px; fill: none; stroke: var(--green-deep); stroke-width: 1.5; stroke-linejoin: round; }
.drop__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.drop__bar { grid-column: 1 / -1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.drop__bar span { display: block; height: 100%; background: var(--green); scale: 0 1; transform-origin: left; }
.drop__file.is-loaded .drop__bar span { scale: 1 1; transition: scale .8s var(--ease-snap); }
.drop__remove { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, rotate .4s var(--ease-snap); }
.drop__remove:hover { background: var(--ink); color: #fff; rotate: 90deg; }
.drop.is-invalid .drop__zone { border-color: var(--danger); }

/* checkbox */
.check { position: relative; cursor: pointer; align-items: flex-start; }
.check__input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box { flex: none; width: 20px; height: 20px; margin-top: 0; display: grid; place-items: center; border: 1.5px solid rgba(35, 36, 38, .35); border-radius: 4px; background: var(--surface-card); transition: background .25s ease, border-color .25s ease, scale .3s var(--ease-snap); }
.check__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease-snap) .05s; }
.check:hover .check__box { border-color: var(--green); }
.check__input:checked + .check__box { background: var(--green-deep); border-color: var(--green-deep); }
.check__input:checked + .check__box svg { stroke-dashoffset: 0; }
.check__input:active + .check__box { scale: .9; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--danger); }

/* send button states */
.btn--send { position: relative; min-width: 180px; justify-content: center; transition: background .3s ease, min-width .5s var(--ease-snap), scale .2s ease; }
.btn--send:active { scale: .97; }
.btn__spin, .btn__ok { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.btn__spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; }
.btn__ok { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.btn--send .btn__label, .btn--send .ico-form { transition: opacity .25s ease, translate .35s var(--ease-snap); }
.btn--send.is-loading .btn__label, .btn--send.is-loading .ico-form, .btn--send.is-sent .ico-form { opacity: 0; translate: 0 -6px; }
.btn--send.is-loading .btn__spin { opacity: 1; animation: nv-spin .7s linear infinite; }
@keyframes nv-spin { to { rotate: 360deg; } }
.btn--send.is-sent { background: var(--green); border-color: var(--green); }
.btn--send.is-sent .btn__ok { opacity: 1; left: 22px; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-snap) .1s; }
.btn--send.is-sent .btn__label { padding-left: 14px; }
.form__status { animation: nv-pop .45s var(--ease-snap) both; }
.select__btn { height: 62px; align-items: flex-end; padding-top: 0; padding-bottom: 10px; }
.select__chev { align-self: center; margin-top: 0; }
.select__value { line-height: 24px; }
[hidden] { display: none !important; }

.field--float input:focus-visible, .field--float textarea:focus-visible, .select__list:focus-visible { outline: none; }
.field--float input:focus, .field--float textarea:focus, .select.is-open .select__btn, .select__btn:focus-visible { box-shadow: inset 0 -2px 0 var(--green), 0 0 0 4px rgba(62, 144, 79, .12); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: inset 0 -2px 0 var(--danger), 0 0 0 4px rgba(180, 71, 47, .1); }
.drop__remove { grid-row: 1; grid-column: 4; }
.drop__bar { grid-row: 2; }
@media (hover: none) { .real__aside .micro { display: none; }}

/* =========================================================
   Round 5
   ========================================================= */

/* ---------- Dropdown: logo bubbles beside each option ---------- */
.select__list li { padding: 9px 36px 9px 46px; display: flex; align-items: center; }
.select__list li::before { left: auto; right: 14px; }
.opt__ico { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 6px -2px rgba(28, 28, 30, .35); transition: scale .35s var(--ease-snap); }
.opt__ico img { width: 36px; height: 36px; max-width: none; margin: -5px; display: block; }
.opt__ico--none { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #c9ccc6 60%, #9fa39c 100%); }
.select__list li:hover .opt__ico, .select__list li.is-active .opt__ico { scale: 1.12; }
.select__value { display: inline-flex; align-items: center; gap: 10px; }
.select__ico { display: none; flex: none; width: 24px; height: 24px; border-radius: 50%; background: center / 138% no-repeat; box-shadow: 0 2px 6px -2px rgba(28, 28, 30, .35); animation: nv-pop .4s var(--ease-snap) both; }
.select__value:not([data-empty]) .select__ico { display: inline-block; }
.select__ico.is-none { background-image: radial-gradient(circle at 35% 30%, #fff 0 12%, #c9ccc6 60%, #9fa39c 100%); background-size: 100%; }

/* ---------- Nav: each service tab takes its colour from the logo ---------- */
.nav__links a { --k: var(--green-deep); }
.nav__links a[data-k="chauffage"] { --k: #c0392b; }
.nav__links a[data-k="sanitaire"] { --k: #1f6fb5; }
.nav__links a[data-k="aspiration"] { --k: #8e2a8e; }
.nav__links a[data-k="energie"] { --k: #9a5c00; }
.nav__links a[data-k="electricite"] { --k: #b3470f; }
.nav__links a::after { background: var(--k); }
.nav__links a:hover { color: var(--k); background: color-mix(in srgb, var(--k) 9%, transparent); }
.nav__links a[aria-current="page"] { color: var(--k); }

/* ---------- Quote buttons: the logo's lime-to-green arc ---------- */
.btn--quote, .btn--primary.btn--quote { background: linear-gradient(115deg, #8cc63f 0%, #4f9e45 42%, #2f7a40 100%); background-size: 170% 100%; background-position: 0% 0; border-color: transparent; text-shadow: 0 1px 1px rgba(20, 40, 22, .3); transition: background-position .6s var(--ease-snap), box-shadow .4s ease, scale .2s ease; }
.btn--quote:hover, .btn--primary.btn--quote:hover { background: linear-gradient(115deg, #8cc63f 0%, #4f9e45 42%, #2f7a40 100%); background-size: 170% 100%; background-position: 100% 0; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(47, 122, 64, .8); }
.btn--quote::after { display: none; }
.btn--send.is-sent { background: var(--green); }

/* ---------- Nav fits in every language ---------- */
.nav { gap: var(--s3); }
.nav__links { flex: 1 1 auto; min-width: 0; justify-content: center; flex-wrap: nowrap; }
.nav__links a { white-space: nowrap; }
.nav__cta { flex: none; white-space: nowrap; }
.lang { flex: none; }
@media (max-width: 1360px) { .nav__links a { font-size: 11px; padding: 8px 7px; letter-spacing: .2px; } .nav__links a::after { left: 7px; right: 7px; }}
@media (max-width: 1180px) and (min-width: 1101px) { .nav__links a { font-size: 10.5px; padding: 8px 5px; letter-spacing: 0; } .nav__links a::after { left: 5px; right: 5px; } .nav__logo img { height: 40px; }}

/* ---------- Language swap caret ---------- */

@keyframes nv-caret { 50% { opacity: .25; } }

/* ---------- Réalisations: dragging keeps the card open ---------- */
.cases.is-dragging .case { flex-grow: .75 !important; }
.cases.is-dragging .case.is-held { flex-grow: 1.6 !important; }
.case.is-held .case__track { cursor: grabbing; overflow-x: auto; }
.case.is-held .case__nav, .case.is-held .case__count { opacity: 1; }
.case.is-held .case__desc { grid-template-rows: 1fr; }
.case.is-held .case__desc > span { opacity: 1; padding-top: var(--s2); }
.cases.is-dragging, .cases.is-dragging * { user-select: none; }

/* Compact menu below 1100px so the full nav never overflows */
@media (min-width: 1101px) { .nav__menu { display: contents; } }
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; padding-left: var(--s3); }
  .nav__toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .nav__menu { display: none; width: 100%; }
  .nav.is-open .nav__menu { display: grid; gap: var(--s4); padding: var(--s3) var(--s2) var(--s4); }
  .nav.is-open .nav__links { flex-direction: column; margin: 0; gap: 0; }
  .nav.is-open .nav__links a { display: block; padding: var(--s3) 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav.is-open .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav.is-open .nav__cta { display: inline-flex; justify-self: start; }
  .nav.is-open .lang { justify-self: start; }
  .nav__logo img, .site-header.is-scrolled .nav__logo img { height: 40px; }}
/* The title's size follows its column and its longest word (--longest, set by build.py), so no language breaks a word. */
.real__head { container-type: inline-size; }
.real__title { font-size: clamp(40px, min(12.5vw, calc((100cqi - var(--s10)) * .545 / (var(--longest, 12) * .58))), 120px); letter-spacing: -0.04em; overflow-wrap: normal; }
@media (max-width: 900px) { .real__title { font-size: clamp(36px, min(14vw, calc(100cqi / (var(--longest, 12) * .58))), 80px); }}

/* =========================================================
   Round 6
   ========================================================= */

/* ---------- Greys from the logo's metallic lettering ---------- */
:root { --slate: #3d3e40; --slate-deep: #2c2d2f; --metal: linear-gradient(180deg, #55575a 0%, #2e2f31 100%); --metal-deep: linear-gradient(180deg, #3f4043 0%, #222325 100%); }
.dark { background: var(--metal); }
.footer { background: var(--metal-deep); }
.hero, .cta--photo { background: #2e2f31; }

/* ---------- Page transitions: a soft cross-fade ---------- */
::view-transition-old(root) { animation: nv-fade-out .35s ease both; }
::view-transition-new(root) { animation: nv-fade-in .45s ease .05s both; }
@keyframes nv-fade-out { to { opacity: 0; } }
@keyframes nv-fade-in { from { opacity: 0; } }
html.nv-fade-out main, html.nv-fade-out .footer { opacity: 0; transition: opacity .3s ease; }
html.nv-fade-in main, html.nv-fade-in .footer { animation: nv-fade-in .45s ease both; }

/* ---------- Language switch: text blocks fade, no reload ---------- */
.nv-swap { transition: opacity .22s ease; }
.nv-swap.is-out { opacity: 0; }

/* ---------- Buttons: centred labels, clean gradient ---------- */
.btn { justify-content: center; text-align: center; }
.btn--quote, .btn--primary.btn--quote, .btn--quote:hover, .btn--primary.btn--quote:hover {
  border: 0; padding-block: calc(var(--s3) + 1px); background: linear-gradient(115deg, #8cc63f 0%, #4f9e45 45%, #2f7a40 100%) no-repeat border-box; background-size: 100% 100%; box-shadow: none; transition: scale .2s ease; }
.btn--quote.btn--sm { padding-block: calc(var(--s2) + 1px); }
.btn--send.is-sent { background: var(--green); }
/* Call buttons look the same everywhere, including inside info lists */
.info .btn--call { color: var(--ink); text-decoration: none; }
.info a.btn--call:hover { text-decoration: none; }
.btn--call .digits { background: none; }
.btn--call:hover .digits { background: none; }

/* ---------- Arrows ---------- */
.ico-arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.arr { display: inline-flex; vertical-align: -0.12em; }
.case__nav { display: grid; place-items: center; padding: 0; font-size: 16px; line-height: 0; }
.case__nav .ico-arrow { width: 16px; height: 16px; }
.more__arrow { display: inline-flex; font-size: 22px; }
.proj-nav__k { display: inline-flex; align-items: center; gap: 6px; }
.proj-nav__link--next .proj-nav__k { justify-content: flex-end; }

/* ---------- Without numbering ---------- */
.case figcaption { grid-template-columns: minmax(0, 1fr); }
.case__desc, .case__link { grid-column: 1; }

/* ---------- Other services: quicker, still smooth ---------- */
.more__panel { transition: grid-template-rows .45s var(--ease-snap); }
.more__img { transition: clip-path .5s var(--ease-io); }
.more__img img { transition: scale .7s var(--ease-out); }
.more__name, .more__arrow { transition-duration: .4s; }
.more:hover .more__text > :nth-child(1), .more:focus-within .more__text > :nth-child(1) { transition-delay: .1s; }
.more:hover .more__text > :nth-child(2), .more:focus-within .more__text > :nth-child(2) { transition-delay: .15s; }
.more:hover .more__text > :nth-child(3), .more:focus-within .more__text > :nth-child(3) { transition-delay: .2s; }
.more:hover .more__text > :nth-child(4), .more:focus-within .more__text > :nth-child(4) { transition-delay: .25s; }
.more__text > * { transition-duration: .3s, .4s; }

/* ---------- Showroom / Horaires / Clients: open on click ---------- */
.trust__row { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trust__row:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.trust--expand li:hover .trust__detail, .trust--expand li:focus-within .trust__detail { grid-template-rows: 0fr; }
.trust--expand li:hover .trust__big, .trust--expand li:focus-within .trust__big { opacity: 0; translate: 0 10px; }
.trust--expand li:hover .trust__link, .trust--expand li:hover .trust__detail .micro,
.trust--expand li:focus-within .trust__link, .trust--expand li:focus-within .trust__detail .micro { opacity: 0; translate: 0 8px; }
.trust--expand li:hover .trust__plus::after, .trust--expand li:focus-within .trust__plus::after { rotate: 90deg; }
.trust--expand li:hover strong, .trust--expand li:focus-within strong { color: inherit; }
.trust__row:hover strong { color: var(--green-deep); }
.trust--expand li.is-open .trust__detail { grid-template-rows: 1fr; }
.trust--expand li.is-open .trust__big { opacity: 1; translate: 0 0; transition-delay: .08s; }
.trust--expand li.is-open .trust__link, .trust--expand li.is-open .trust__detail .micro { opacity: 1; translate: 0 0; transition-delay: .16s; }
.trust--expand li.is-open strong { color: var(--green-deep); }
.trust--expand li.is-open .trust__plus::after { rotate: 0deg; }
@media (hover: none) { .trust__detail { grid-template-rows: 0fr; } .trust__big { opacity: 0; }}

/* ---------- Floating photo stays in the image column ---------- */
.split__float { right: var(--s6); bottom: 0; width: 40%; will-change: translate, scale; translate: 0 var(--fy, 0px); scale: var(--fs, 1); transform-origin: bottom right; }
@media (max-width: 1100px) { .split__float { right: var(--s4); }}

/* ---------- Form: no underline on focus ---------- */
.field--float input:focus, .field--float textarea:focus, .select.is-open .select__btn, .select__btn:focus-visible { box-shadow: 0 0 0 4px rgba(62, 144, 79, .12); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(180, 71, 47, .1); }

/* ---------- Quote page: compact header, everything visible on load ---------- */

html[data-static] .section { padding-block: var(--s14) var(--s20); }

/* ---------- "Novotherme" set in the logo lettering inside text ---------- */
.nv-wm { display: inline-block; vertical-align: baseline; height: .72em; line-height: 0; white-space: nowrap; }
.nv-wm img { height: 100%; width: auto; max-width: none; display: inline-block; vertical-align: baseline; }
.nv-wm__l { display: none !important; }
.dark .nv-wm__d, .hero .nv-wm__d, .cta--photo .nv-wm__d, .chip .nv-wm__d { display: none !important; }
.dark .nv-wm__l, .hero .nv-wm__l, .cta--photo .nv-wm__l, .chip .nv-wm__l { display: inline-block !important; }
.micro .nv-wm, .chip .nv-wm { height: .8em; }

/* ---------- Current time next to opening hours ---------- */
.clock { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 1px 8px; border-radius: 20px; font: 500 12px/18px var(--font-mono); letter-spacing: .3px; color: var(--ink-muted); background: var(--glass); white-space: nowrap; vertical-align: middle; }
.clock:empty { display: none; }
.clock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.clock.is-open { color: var(--green-deep); background: rgba(62, 144, 79, .1); }
.clock.is-open::before { background: var(--green); opacity: 1; animation: nv-pulse 2s ease-in-out infinite; }
@keyframes nv-pulse { 50% { opacity: .35; } }
.dark .clock, .footer .clock, .chip .clock, .cta--photo .clock { background: rgba(255, 255, 255, .12); color: rgba(246, 245, 240, .85); }
.dark .clock.is-open, .footer .clock.is-open, .chip .clock.is-open, .cta--photo .clock.is-open { color: #b9e08a; }
.trust__big .clock { display: flex; width: max-content; margin: var(--s2) 0 0; font-size: 12px; letter-spacing: .3px; }
.chip .clock { margin-left: 4px; padding: 0 7px; }

/* ---------- Maps button next to the address ---------- */
.info__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.maps-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; font: 500 12px/18px var(--font-mono); letter-spacing: .3px; color: var(--ink); text-decoration: none; background: var(--surface-card); transition: border-color .25s ease, background .25s ease, color .25s ease; }
.info .maps-btn { color: var(--ink); }
.maps-btn:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.ico-pin { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Round 7: chosen designs (A2, B1, C3, D1)
   ========================================================= */

/* ---------- A2 · Key figures: one bar, text first ---------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 30px 60px -36px rgba(28, 28, 30, .45); }
.fig { display: flex; align-items: center; gap: var(--s6); padding: var(--s8) var(--s8); transition: background .4s ease; }
.fig + .fig { border-left: 1px solid var(--line); }
.fig:hover { background: rgba(62, 144, 79, .04); }
.fig__num { flex: none; font: 300 64px/1 var(--font-display); letter-spacing: -2.6px; white-space: nowrap; transition: color .4s ease; }
.fig:hover .fig__num { color: var(--green-deep); }
.fig__label { margin: 0; font-size: 16px; line-height: 23px; color: var(--ink-muted); max-width: 24ch; }
@media (max-width: 1100px) { .fig { flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s6); } .fig__num { font-size: 52px; }}
@media (max-width: 700px) { .figs { grid-template-columns: minmax(0, 1fr); } .fig + .fig { border-left: 0; border-top: 1px solid var(--line); } .fig { flex-direction: row; align-items: center; }}

/* ---------- B1 · Services: photo cards, words appear one by one ---------- */
.svcs { display: flex; gap: var(--s3); height: 480px; }
.svc { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-sm); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; transition: flex-grow .6s var(--ease-snap); }
.svcs:hover .svc { flex-grow: .85; }
.svcs .svc:hover, .svcs .svc:focus-visible { flex-grow: 1.8; }
.svc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1s var(--ease-snap); }
.svc:hover > img { scale: 1.05; }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 28, 30, 0) 30%, rgba(28, 28, 30, .55) 62%, rgba(28, 28, 30, .88) 100%); }
.svc__t { position: absolute; left: var(--s5); right: var(--s5); bottom: var(--s5); }
.svc__title { font: 400 24px/26px var(--font-display); letter-spacing: -.4px; text-transform: uppercase; overflow-wrap: normal; }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-snap); }
.svc__more > div { overflow: hidden; min-height: 0; }
.svc__more ul { list-style: none; margin: 0; padding: var(--s3) 0 0; display: grid; gap: 2px; }
.svc__more li { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .86); white-space: nowrap; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s4); font: 500 12px/18px var(--font-mono); letter-spacing: .4px; text-transform: uppercase; }
.svc .w { display: inline-block; opacity: 0; translate: 0 .45em; filter: blur(3px); transition: opacity .2s ease, translate .2s ease, filter .2s ease; }
.svc .arr { opacity: 0; transition: opacity .2s ease, translate .4s var(--ease-snap); }
.svc:hover .svc__more, .svc:focus-visible .svc__more { grid-template-rows: 1fr; }
.svc:hover .w, .svc:focus-visible .w { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity .45s ease, translate .55s var(--ease-snap), filter .45s ease; transition-delay: calc(.12s + var(--w) * 28ms); }
.svc:hover .arr, .svc:focus-visible .arr { opacity: 1; transition-delay: .55s; }
.svc:hover .arr { translate: 4px 0; }
.svc:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1100px) {
  .svcs { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s4); }
  .svc, .svcs:hover .svc, .svcs .svc:hover { flex: 0 0 260px; height: 400px; scroll-snap-align: start; }}
@media (hover: none) {
  .svc__more { grid-template-rows: 1fr; }
  .svc .w, .svc .arr { opacity: 1; translate: none; filter: none; }}

/* ---------- C3 · Our work: mosaic ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: 280px 280px; gap: var(--s4); }
.tile { position: relative; border-radius: var(--r-sm); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.tile:first-child { grid-row: span 2; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.1s var(--ease-snap); }
.tile:hover > img { scale: 1.05; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 28, 30, 0) 45%, rgba(28, 28, 30, .82) 100%); transition: opacity .5s ease; }
.tile__cap { position: absolute; left: var(--s6); right: var(--s5); bottom: var(--s5); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.tile__txt { display: grid; gap: 4px; transition: translate .6s var(--ease-snap); }
.tile:hover .tile__txt { translate: 0 -4px; }
.tile__cat { opacity: .82; }
.tile__title { font: 400 24px/28px var(--font-display); letter-spacing: -.4px; }
.tile:first-child .tile__title { font-size: 34px; line-height: 38px; letter-spacing: -.8px; }
.tile__go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); color: #fff; font-size: 18px; transition: background .4s ease, color .4s ease, border-color .4s ease, scale .5s var(--ease-snap); }
.tile__go .ico-arrow { transition: translate .5s var(--ease-snap); }
.tile:hover .tile__go { background: #fff; color: var(--ink); border-color: #fff; scale: 1.08; }
.tile:hover .tile__go .ico-arrow { translate: 2px 0; }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tile, .tile:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .tile:first-child .tile__title { font-size: 26px; line-height: 30px; }}

/* ---------- D1 · Tailored assessment: photo + sand panel ---------- */
.cta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 420px; border-radius: var(--r-sm); overflow: hidden; }
.cta-split__ph { position: relative; overflow: hidden; }
.cta-split__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-snap); }
.cta-split:hover .cta-split__ph img { scale: 1.04; }
.cta-split__tx { background: var(--surface-sand); padding: var(--s14) var(--s14); display: grid; align-content: center; gap: var(--s6); }
.cta-split__facts { display: grid; gap: var(--s2); font-size: 15px; color: var(--ink-muted); }
.cta-split__facts span { display: flex; align-items: center; gap: var(--s3); }
.ico-fact { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .cta-split__ph { aspect-ratio: 16 / 10; }
  .cta-split__tx { padding: var(--s10) var(--s6); }}
.fig > * { min-width: 0; }
.fig__label { overflow-wrap: break-word;  }
@media (max-width: 480px) { .fig { flex-direction: column; align-items: flex-start; gap: var(--s2); }}

/* =========================================================
   Round 8
   ========================================================= */

/* ---------- Current time: quiet text, no pill, no dot ---------- */
.clock, .dark .clock, .footer .clock, .chip .clock, .cta--photo .clock { display: inline; margin: 0 0 0 .5em; padding: 0 0 0 .6em; border: 0; border-left: 1px solid currentColor; border-radius: 0; background: none; font: inherit; font-size: .88em; letter-spacing: 0; color: inherit; opacity: .62; white-space: nowrap; vertical-align: baseline; }
.clock::before, .clock.is-open::before { content: none; display: none; animation: none; }
.clock.is-open, .dark .clock.is-open, .footer .clock.is-open, .chip .clock.is-open, .cta--photo .clock.is-open { color: inherit; background: none; }
.trust__big .clock { display: block; width: auto; margin: var(--s2) 0 0; padding: 0; border: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); opacity: 1; }
.footer .clock { border-left-color: rgba(255, 255, 255, .3); }

/* ---------- Logo lettering sits on the text baseline ---------- */
.nv-wm { height: .7em; vertical-align: baseline; }
.nv-wm img { vertical-align: top; }
.micro .nv-wm, .chip .nv-wm { height: .74em; }

/* ---------- Maps: icon only ---------- */
.maps-btn { width: 30px; height: 30px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--green-deep); transition: background .25s ease, color .25s ease; }
.maps-btn:hover { background: rgba(62, 144, 79, .1); color: var(--green-deep); }
.maps-btn .ico-pin { width: 18px; height: 18px; }
.info__addr { gap: 4px 8px; }

/* ---------- Dropdown attaches to its box ---------- */
.select__list { top: calc(100% - 1px); border-top-left-radius: 0; border-top-right-radius: 0; translate: 0 -4px; }
.select.is-open .select__btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.select.is-open .select__list { border-color: var(--green); border-top-color: var(--line); }

/* ---------- Header quote button: steady size, clean hover ---------- */
.nav .btn--quote.btn--sm, .nav .btn--quote.btn--sm:hover { min-height: 36px; padding: 0 var(--s4); gap: 8px; font-size: 12px; letter-spacing: .5px; line-height: 1; border-radius: var(--r-xs); }
.nav .btn--quote .ico { width: 15px; height: 15px; }

/* The blur band that used to sit under the floating header was removed (it made scrolling stutter); the header keeps its shadow. */

/* ---------- Floating photo: tucked into the corner of the main photo ---------- */
.split__media { padding-bottom: var(--s14); }
.split__float { right: calc(var(--s6) * -1); bottom: 0; width: 38%; border-width: 6px; transform-origin: center; scale: var(--fs, 1); }
@media (max-width: 1100px) { .split__float { right: var(--s4); }}

/* ---------- Language switch: flags ---------- */
.flag { display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(35, 36, 38, .14); }
.lang { gap: 2px; border: 0; padding: 2px; border-radius: var(--r-sm); background: transparent; overflow: visible; }
.lang a, .lang a + a { display: grid; place-items: center; padding: 6px 6px; border: 0; border-radius: var(--r-xs); background: none; transition: background .25s ease, opacity .25s ease; opacity: .55; }
.lang a:hover { background: rgba(35, 36, 38, .06); opacity: 1; }
.lang a[aria-current="page"] { background: rgba(62, 144, 79, .12); opacity: 1; }
.lang a[aria-current="page"] .flag { box-shadow: 0 0 0 1.5px var(--green-deep); }
.footer__langs { display: inline-flex; gap: 10px; align-items: center; }
.footer__langs a { display: block; opacity: .6; transition: opacity .25s ease, translate .3s var(--ease-snap); }
.footer__langs a:hover, .footer__langs a[aria-current="page"] { opacity: 1; }
.footer__langs a:hover { translate: 0 -2px; }
.footer__langs .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* =========================================================
   Page header (option H3): editorial title + panoramic photo
   ========================================================= */
.phero { padding-top: 132px; }
.phero__top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s10); align-items: end; padding-bottom: var(--s8); border-bottom: 1px solid var(--line); }
.phero__main { display: grid; gap: var(--s5); justify-items: start; min-width: 0; }
.phero__logo { width: 220px; height: auto; margin-bottom: var(--s2); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/18px var(--font-mono); text-transform: uppercase; letter-spacing: .4px; color: var(--ink-muted); }
.crumb a { text-decoration: none; transition: color .25s ease; }
.crumb a:hover { color: var(--green-deep); }
.crumb i { font-style: normal; opacity: .5; }
.phero__title { font: 400 clamp(56px, 8.2vw, 124px)/.92 var(--font-display); letter-spacing: -0.038em; text-wrap: balance; overflow-wrap: break-word;  max-width: 100%; }
.phero__title--long { font-size: clamp(46px, 6.4vw, 96px); line-height: .95; }
.phero__side { display: grid; gap: var(--s5); justify-items: start; padding-bottom: 8px; min-width: 0; }
.phero__side .lead { max-width: 36ch; }
.phero__pan { position: relative; height: clamp(220px, 30vw, 380px); margin-top: var(--s8); border-radius: var(--r-sm) var(--r-sm) 0 0; overflow: hidden; background: var(--surface-sand); }
.phero__pan img { position: absolute; left: 0; top: -18%; width: 100%; height: 136%; object-fit: cover; translate: 0 var(--py, 0px); will-change: translate; }
@media (prefers-reduced-motion: no-preference) { .phero__pan img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }}
.phero--compact .phero__pan { height: 150px; }
.phero--compact .phero__title { font-size: clamp(48px, 6vw, 88px); }
/* panels and sections that used to overlap the old photo header */
.phero + .overlap { margin-top: -72px; }
html[data-static] .phero + .section { padding-top: var(--s10); }
@media (max-width: 900px) {
  .phero { padding-top: 112px; }
  .phero__top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .phero + .overlap { margin-top: -40px; }}
@media (max-width: 640px) { .phero__logo { width: 170px; }}
/* Logo lettering: plain inline image resting on the text baseline */
.nv-wm, .micro .nv-wm, .chip .nv-wm { display: inline; height: auto; line-height: inherit; vertical-align: baseline; }
.nv-wm img { height: .7em; width: auto; vertical-align: baseline; display: inline; }
.micro .nv-wm img, .chip .nv-wm img { height: .74em; }
/* Long words never push the page wider on small screens */
.phero__main, .phero__title { width: 100%; }
@media (max-width: 640px) {
  .phero__title, .phero__title--long { font-size: min(clamp(40px, 12vw, 64px), calc((100vw - 40px) / (var(--longest, 10) * .58))); line-height: 1; }}
h1, h2, h3, p, li { overflow-wrap: break-word; }
.offer__body, .offer__body > *, .more__text, .proj__text { min-width: 0; }
@media (max-width: 640px) { h2, h3, p {  }}

/* =========================================================
   QA pass: break test + consistency fixes
   ========================================================= */
:root { --danger: #b4472f; --focus: var(--blue); --ink-on-dark-muted: rgba(246, 245, 240, .78); }
html { scroll-padding-top: 104px; }
:focus-visible { outline-color: var(--focus); }
.dark, .footer, .hero, .cta--photo, .svc, .tile { --focus: #fff; }
.case__track:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { *::before, *::after { transition: none !important; animation: none !important; } }

/* blur band goes away with the header */

/* quote button: the label sits on the deep green (white text 5:1), lime only at the edge */
.btn--quote, .btn--primary.btn--quote, .btn--quote:hover, .btn--primary.btn--quote:hover { background: linear-gradient(115deg, #8cc63f 0%, #3e904f 16%, #2f7a40 42%, #2a6e39 100%) no-repeat border-box; }
.btn--primary.btn--quote.btn--send.is-sent { background: var(--green-deep); }

/* touch targets of at least 44px on phones */
.nav__toggle { height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: .4px; }
.footer__langs { gap: 4px; }
.footer__langs a { padding: 12px 8px; margin: -12px 0; }
.trust__link { display: inline-flex; align-items: center; min-height: 40px; }
@media (hover: none), (max-width: 900px) {
  .case__nav { width: 44px; height: 44px; border-radius: 50%; }
  .case__title, .case__link { display: inline-block; padding-block: 10px; }
  .case__link { padding-block: 10px 6px; }
}

/* nav: never below 11.5px; full menu only where it fits */
@media (max-width: 1360px) and (min-width: 1101px) { .nav__links a { font-size: 11.5px; letter-spacing: .1px; padding: 8px 6px; } .nav__links a::after { left: 6px; right: 6px; } }
@media (max-width: 1180px) and (min-width: 1101px) { .nav__links a { font-size: 11.5px; padding: 8px 4px; letter-spacing: 0; } .nav { gap: 8px; } }
/* open phone menu scrolls inside the screen */
.nav.is-open { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

/* service cards: a title never breaks inside a word. Its size is worked out from the narrowest a card gets
   (the four cards beside the open one: .85 of 5.2 shares of the row) and the longest word of the row (--longest, set by build.py),
   so every title keeps the same size whichever card is open. */
.svcs { container-type: inline-size; }
.svc__title { font-size: clamp(13px, calc(((100cqi - 4 * var(--s3)) * .85 / 5.2 - 2 * var(--s5)) / (var(--longest, 12) * .67)), 24px); line-height: 1.1; overflow-wrap: normal; hyphens: manual; }
.svc__more li { white-space: normal; }
@media (max-width: 1100px) { .svc__title { font-size: clamp(13px, calc((260px - 2 * var(--s5)) / (var(--longest, 12) * .67)), 22px); } }

/* trust rows: green title on hover again */
.trust--expand li .trust__row:hover strong { color: var(--green-deep); }
/* maps icon in green everywhere */
.info .maps-btn { color: var(--green-deep); }
/* floating photo a bit larger on phones */
@media (max-width: 640px) { .split__float { width: 46%; } }
/* dragging: same squeeze as hover (no jump) */
.cases.is-dragging .case { flex-grow: .85 !important; }
/* keyboard-active option in the dropdown is clearly marked */
.select__list li.is-active { background: rgba(62, 144, 79, .1); box-shadow: inset 3px 0 0 var(--green-deep); }
/* floating labels: a single focus style */
.field--float input:focus, .field--float textarea:focus { border-color: var(--green); outline: none; }

/* page titles fit up to tablet width */
@media (max-width: 900px) and (min-width: 641px) {
  .phero__title, .phero__title--long { font-size: min(clamp(48px, 8vw, 80px), calc((100vw - 64px) / (var(--longest, 10) * .58))); }
}

/* phones */
@media (max-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); } .member .title { font-size: 17px; line-height: 21px; } }
.chip .clock { font-size: 1em; }
.footer__h { margin-bottom: var(--s4); color: var(--ink-on-dark-muted); font-weight: 500; }

/* hover-only hints are hidden on touch screens */
@media (hover: none) { .hint-hover { display: none; } }
.footer__langs a { padding: 13px 10px; margin: -13px 0; }
@media (hover: none), (max-width: 900px) { .case__link { padding-block: 13px 9px; } }

/* =========================================================
   Reveal timing: shorter and earlier (best practice), extra light on phones
   ========================================================= */
.js .rise:not(.is-in) { opacity: 0; translate: 0 16px; }
.js .rise.is-in:not(.is-done) { transition: opacity .55s var(--ease-out) var(--d, 0ms), translate .6s var(--ease-out) var(--d, 0ms); }
.js .reveal-img > :first-child { transition: clip-path .8s var(--ease-io) var(--d, 0ms); }
.js .media.reveal-img img { transition: scale 1s var(--ease-out) var(--d, 0ms), clip-path .8s var(--ease-io) var(--d, 0ms); }
@media (max-width: 900px), (hover: none) {
  .js .rise:not(.is-in) { translate: 0 8px; }
  .js .rise.is-in:not(.is-done) { transition: opacity .3s ease var(--d, 0ms), translate .35s var(--ease-out) var(--d, 0ms); }
  /* photos simply fade in on phones (no wipe, no zoom) */
  .js .reveal-img > :first-child { clip-path: none !important; opacity: 0; transition: opacity .35s ease var(--d, 0ms); }
  .js .reveal-img.is-in > :first-child { opacity: 1; }
  .js .media.reveal-img img { scale: 1.08; transition: opacity .35s ease var(--d, 0ms); }
}
@media (prefers-reduced-motion: reduce) { .js .reveal-img > :first-child { opacity: 1 !important; } }
@media (max-width: 900px), (hover: none) { .js .media.reveal-img.is-in img { scale: 1.08; } }
/* laptops: still a touch richer, but finished before you get there */
@media (min-width: 901px) and (hover: hover) {
  .js .rise.is-in:not(.is-done) { transition: opacity .45s var(--ease-out) var(--d, 0ms), translate .5s var(--ease-out) var(--d, 0ms); }
  .js .reveal-img > :first-child { transition: clip-path .65s var(--ease-io) var(--d, 0ms); }
  .js .media.reveal-img img { transition: scale .8s var(--ease-out) var(--d, 0ms), clip-path .65s var(--ease-io) var(--d, 0ms); }
}

/* =========================================================
   Home: full-screen hero, figures bar half over its bottom edge
   (--figh is the bar's height, measured by main.js)
   ========================================================= */
.hero--home { min-height: 100vh; min-height: 100svh; }
.hero--home .hero__content { padding-top: 120px; padding-bottom: calc(var(--figh, 120px) / 2 + 48px); }
.overlap--figs { margin-top: calc(var(--figh, 120px) / -2); }
@media (max-width: 700px) {
  /* three compact columns so all three blocks peek up on phones too */
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fig, .fig + .fig { flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--s4) var(--s3); }
  .fig + .fig { border-top: 0; border-left: 1px solid var(--line); }
  .fig__num { font-size: clamp(28px, 9vw, 40px); letter-spacing: -1.2px; }
  .fig__label { font-size: 12px; line-height: 16px; }
}

/* Réalisations page: the mosaic repeats for any number of projects */
.mosaic { grid-auto-rows: 280px; }
.mosaic .tile:nth-child(3n+1) { grid-row: span 2; }
.mosaic .tile:nth-child(6n+4) { grid-column: 2; }
.mosaic .tile:nth-child(6n+5) { grid-column: 1; grid-row: auto; }
/* An unfinished group never leaves a hole: a lone last tile spans the full width,
   and a tile left alone in its column takes both rows */
.mosaic .tile:nth-child(6n+4):last-child, .mosaic .tile:nth-child(6n+1):last-child:not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
.mosaic .tile:nth-child(6n+2):last-child, .mosaic .tile:nth-child(6n+5):last-child { grid-row: span 2; }
@media (max-width: 900px) { .mosaic .tile:nth-child(n) { grid-row: auto; grid-column: auto; } }

/* Spam trap on the quote form: off-screen, never seen or filled by real visitors */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contact: static map (no third-party content until the visitor clicks through to Google Maps) */
.map-wrap { margin: 0; }
.map--static { display: block; position: relative; overflow: hidden; text-decoration: none; }
.map--static img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.map--static:hover img { scale: 1.03; }
.map__cta { position: absolute; left: 16px; bottom: 16px; background: var(--surface-card); color: var(--ink); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border-radius: var(--r-sm); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.map__credit { margin-top: 6px; font-size: 11px; color: var(--ink-muted); text-align: right; }

/* Legal notice / privacy: readable text column */
.legal { max-width: 760px; display: grid; gap: var(--s10); }
.legal__sec { display: grid; gap: var(--s3); }
.legal__sec p { color: var(--ink-muted); line-height: 1.65; }
.footer__legal { display: flex; gap: var(--s5); }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.form__note a { color: inherit; text-decoration: underline; }
