/* Domeo Rénovation : feuille de style unique, écrite à la main.
   Une police (Poppins 400/500/600, comme le site de référence de Riad, titres sans capitales forcées), une couleur d'accent (vert carreau),
   un système d'arrondis : 12 px pour les photos et champs, pilule pour les boutons, arche pour le motif de marque. */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: oklch(0.975 0.004 165);
  --paper-2: oklch(0.945 0.007 165);
  --card: oklch(0.993 0.002 165);
  --ink: oklch(0.205 0.012 165);
  --ink-soft: oklch(0.43 0.012 165);
  --line: oklch(0.875 0.008 165);
  --line-strong: oklch(0.62 0.01 165);
  --green: oklch(0.38 0.05 160);
  --green-deep: oklch(0.31 0.045 160);
  --green-tint: oklch(0.93 0.025 160);
  --on-dark: oklch(0.975 0.004 165);
  --on-dark-soft: oklch(0.84 0.008 165);
  --error: oklch(0.5 0.16 28);
  --error-tint: oklch(0.95 0.03 28);
  --focus: var(--green);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --topbar-h: 38px;
  --header-h: 72px;
  --r: 12px;
  --section: clamp(72px, 10vw, 152px);

  --z-header: 50;
  --z-float: 40;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--green-tint); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 999px;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------------------------------------------------------------- typographie */
.h-display, .h-xl, .hero-title, .footer-title {
  text-transform: none;
  letter-spacing: -0.01em;
  hyphens: manual;
}
.h-display { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); font-weight: 500; line-height: 1.12; }
.h-display-sm { font-size: clamp(1.8rem, 1rem + 2.4vw, 2.9rem); }
/* titres avec un mot long (PROFESSIONNELS, RÉALISATIONS) : taille calée pour tenir sur 390 px sans couper le mot */
.h-display.h-long { font-size: clamp(1.6rem, 0.7rem + 3.2vw, 3.4rem); }
.h-xl { font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); font-weight: 500; line-height: 1.12; }
.h-lg { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.statement { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.24; font-weight: 500; letter-spacing: -0.012em; max-width: 30ch; }
.page-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-soft); max-width: 52ch; }
.credit { display: inline-block; font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.75em 1.45em;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 0.98rem; font-weight: 500; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: var(--on-dark); }
.btn-line { border-color: currentColor; background: transparent; color: var(--ink); }
.btn-line-light { color: var(--on-dark); }
/* sur photo sombre, le vert se perd dans le voile : le bouton principal passe en plâtre */
.btn-on-dark { background: var(--on-dark); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-deep); }
  .btn-on-dark:hover { background: var(--green-tint); color: var(--ink); }
  .btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
  .btn-line-light:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--green); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--green-deep); }
  .link:hover .i { transform: translateX(3px); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 140ms var(--ease-out);
}
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not([disabled]):hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
}

/* ---------------------------------------------------------------- en-tête */
.masthead { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: var(--z-header); }
.topbar { background: var(--ink); color: var(--on-dark-soft); font-size: 0.875rem; --focus: var(--on-dark); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: var(--topbar-h); }
.topbar a { display: inline-flex; align-items: center; gap: 0.5em; color: var(--on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar .i { width: 15px; height: 15px; }
.topbar-insta { margin-left: auto; }

.header {
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
.header-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: auto; height: 30px; transition: filter 220ms ease; }
.brand-name { font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.brand-name span { font-weight: 400; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 8px; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }
.nav-contact { display: none; }
.cta-short { display: none; }
.menu-btn { display: none; }

/* en-tête posé sur une photo plein écran (accueil, pages projet) */
.has-hero .masthead:not(.is-solid) .header { background: transparent; border-color: transparent; color: var(--on-dark); --focus: var(--on-dark); }
.has-hero .masthead:not(.is-solid) .brand-mark { filter: invert(1); }
.has-hero .masthead:not(.is-solid) .nav a[aria-current="page"] { text-decoration-color: currentColor; }
.has-hero main > [data-hero]:first-child { margin-top: calc(-1 * var(--header-h)); }

@media (max-width: 1099px) {
  .nav-contact { display: grid; gap: 4px; margin-top: 8px; padding: 18px 20px; border-radius: var(--r); background: var(--paper-2); font-size: 0.95rem; color: var(--ink-soft); }
  .nav-contact a { color: var(--ink); font-weight: 500; text-decoration: none; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn i { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 220ms var(--ease-out); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-header);
    display: flex; flex-direction: column; gap: 16px;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper); color: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav ul a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 1.15rem; font-weight: 500; text-transform: none; line-height: 1.3; text-decoration: none; }
  .nav ul a::after { content: "→"; color: var(--green); }
  .nav ul a[aria-current="page"] { color: var(--green); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
  .menu-open .header, .has-hero .menu-open .header { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important; --focus: var(--green) !important; }
  .menu-open .brand-mark { filter: none !important; }
  html.menu-lock { overflow: hidden; }
}
@media (max-width: 999px) { .topbar span { display: none; } }
@media (max-width: 759px) {
  :root { --header-h: 64px; --topbar-h: 0px; }
  .topbar { display: none; }
  .brand { gap: 9px; }
  .brand-mark { height: 26px; }
  .brand-name { display: grid; gap: 3px; font-size: 0.9rem; }
  .brand-name span { font-size: 0.7rem; letter-spacing: 0.08em; }
  .header-in { gap: 12px; }
  .header-cta { min-height: 44px; padding: 0.6em 1.1em; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------------------------------------------------------------- hero accueil */
.hero {
  position: relative; display: grid; align-items: end;
  min-height: max(560px, calc(100svh - var(--topbar-h)));
  padding: calc(var(--header-h) + 48px) 0 clamp(56px, 9vh, 104px);
  color: var(--on-dark); --focus: var(--on-dark);
  isolation: isolate; overflow: hidden;
}
.hero-media, .p-hero-media, .band-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .p-hero-media img, .band-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .p-hero-media::after, .band-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.16 0.01 165 / 0.86) 0%, oklch(0.16 0.01 165 / 0.58) 42%, oklch(0.16 0.01 165 / 0.38) 68%, oklch(0.16 0.01 165 / 0.52) 86%, oklch(0.16 0.01 165 / 0.74) 100%);
}
.hero-media .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1); }
.hero-media .slide.is-on { opacity: 1; }
.hero-media .slide img { transform-origin: 60% 40%; }
.hero-media .slide.is-on img { animation: drift 9000ms cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-media .slide:first-child.is-on img { animation-name: settle-drift; }
.hero-title { font-size: clamp(2.3rem, 0.9rem + 5vw, 4.2rem); font-weight: 500; line-height: 1.12; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; animation: rise 800ms var(--ease-out) 40ms both; }
.hero-title .line:nth-child(2) > span { animation-delay: 120ms; }
.hero-title .line:nth-child(3) > span { animation-delay: 200ms; }
.hero-title .line-sub { margin-top: 0.45em; font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem); font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.hero-lead { text-wrap: balance; max-width: 40ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--on-dark); margin-bottom: 28px; animation: fade-up 700ms var(--ease-out) 260ms both; }
.hero .actions { animation: fade-up 700ms var(--ease-out) 340ms both; }
.hero-review { display: block; width: fit-content; max-width: 42ch; margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--on-dark-soft); color: var(--on-dark); text-decoration: none; }
.hero-review > span { display: block; font-size: 1rem; }
.hero-review small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 0.8rem; }
.hero-review .i { width: 16px; height: 16px; }
.hero-review:hover small { text-decoration: underline; }
.review-actions { margin-top: 32px; }
.has-hero .intro { padding: clamp(56px, 7vw, 104px) 0; }
.home-process { padding: clamp(56px, 7vw, 100px) 0; }
.process-heading { max-width: 52ch; }
.process-heading > p { margin-top: 20px; color: var(--ink-soft); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 36px 0; }
.process-list li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.process-list li > span { color: var(--green); font-size: 0.9rem; }
.process-list h3 { font-size: 1.2rem; margin: 12px 0; }
.process-list p { color: var(--ink-soft); max-width: 32ch; }
.project-inquiry { padding: 28px; background: var(--paper-2); border-radius: var(--r); align-self: start; }
.project-inquiry .h-lg { margin: 12px 0 18px; }
.project-inquiry > p { max-width: 42ch; }
.project-inquiry .btn { margin-top: 12px; }
.form-intro, .form-followup { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.form-step { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 24px; font-weight: 600; }
.project-reference { margin: 0; padding: 12px 16px; background: var(--green-tint); border-radius: 8px; }
@media (min-width: 960px) { .story:has(.project-inquiry) { grid-template-columns: 1.3fr 0.8fr; } }
@media (max-width: 759px) {
  .process-list { grid-template-columns: 1fr; gap: 24px; }
  .hero-review { margin-top: 22px; }
  .hero-review small { font-size: 0.75rem; }
  .hero-media img { object-position: 58% center; }
}
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 20px; margin: 0;
  display: flex; gap: 14px; font-size: 0.8125rem; color: var(--on-dark-soft);
}
.hero-caption a { color: var(--on-dark); text-underline-offset: 3px; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0.001; transform: translateY(14px); } }  /* 0.001 et non 0 : le texte compte comme affiché pour Google (LCP) */
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.06); } }
@keyframes settle-drift { 0% { transform: scale(1.08); } 20% { transform: scale(1.0); } 100% { transform: scale(1.04); } }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-foot .hero-caption { position: static; }
.hero-dots { display: flex; gap: 6px; }
.dot { width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.dot span { display: block; height: 3px; border-radius: 2px; background: oklch(0.975 0.004 165 / 0.35); overflow: hidden; position: relative; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--on-dark); transform: scaleX(0); transform-origin: left; }
.dot[aria-pressed="true"] span::after { animation: dot-fill var(--slide-ms, 6500ms) linear forwards; }
.dot.is-paused span::after { animation-play-state: paused; }
.dot:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; border-radius: 4px; }
@keyframes dot-fill { to { transform: scaleX(1); } }
@media (max-width: 759px) {
  .hero { padding-bottom: 72px; }
  .hero-caption { flex-wrap: wrap; gap: 4px 12px; }
  .hero-foot { flex-direction: column-reverse; align-items: flex-start; gap: 6px; bottom: 14px; }
}

/* ---------------------------------------------------------------- arche (motif du logo) */
.arch { position: relative; overflow: hidden; border-radius: 1000px 1000px 0 0; background: var(--paper-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-lg { aspect-ratio: 4 / 5; }
.arch-sm { aspect-ratio: 3 / 4; }
.js .arch[data-open] { transform: scale(0.86); transition: transform 1300ms var(--ease-out); }
.js .arch[data-open] img { transform: scale(1.22); transition: transform 1500ms var(--ease-out); }
.js .arch[data-open].is-in, .js .arch[data-open].is-in img { transform: none; }

.js .reveal { opacity: 0.001; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- introduction */
.intro { padding: var(--section) 0; }
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.intro-photo { max-width: 440px; width: 100%; }
.intro-text > p:not(.statement) { max-width: 52ch; color: var(--ink-soft); }
.intro-text .statement { margin-bottom: 28px; }
@media (max-width: 759px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-photo { max-width: 78%; }
}

/* ---------------------------------------------------------------- savoir-faire */
.craft { padding: 0 0 var(--section); }
.craft-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.craft-head .h-xl { margin-bottom: clamp(28px, 4vw, 48px); }
.craft-list li { border-top: 1px solid var(--line); }
.craft-list li:last-child { border-bottom: 1px solid var(--line); }
.craft-item {
  display: grid; row-gap: 6px;
  padding: clamp(18px, 2.2vw, 28px) 0; text-decoration: none;
}
.craft-name { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; transition: color 200ms ease, transform 250ms var(--ease-out); }
.craft-desc { color: var(--ink-soft); max-width: 44ch; }
.craft-thumb { display: none; }
.craft-item.is-on .craft-name { color: var(--green); transform: translateX(6px); }
.craft-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.arch-frame { aspect-ratio: 4 / 5; }
.craft-photo { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 280ms var(--ease-out), transform 600ms var(--ease-out); }
.craft-photo.is-on { opacity: 1; transform: none; }
.craft-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) {
  .craft-grid { grid-template-columns: 1fr; }
  .craft-visual { display: none; }
  .craft-thumb { display: block; margin-top: 12px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
  .craft-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .craft-item.is-on .craft-name { transform: none; }
}

/* ---------------------------------------------------------------- cartes projet */
.card-link { display: grid; gap: 14px; text-decoration: none; }
.card-img { display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card-text { display: grid; gap: 4px; }
.card-title { font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.card-meta { font-size: 0.9rem; color: var(--ink-soft); }
.card-more { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 6px; font-size: 0.92rem; font-weight: 500; color: var(--green); }
.card-more .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card-link:hover .card-img img { transform: scale(1.035); }
  .card-link:hover .card-more .i { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- rail de projets */
.projects-rail { padding: var(--section) 0; background: var(--paper-2); }
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.rail-ctrl { display: flex; gap: 10px; }
.rail {
  --pad: max(var(--gutter), (100% - var(--maxw)) / 2);
  position: relative; display: flex; gap: clamp(16px, 2vw, 28px); align-items: start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad);
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .card-link { pointer-events: none; }
.rail .card { flex: none; scroll-snap-align: start; }
.rail .card-wide { width: clamp(290px, 44vw, 600px); }
.rail .card-tall { width: clamp(230px, 27vw, 380px); }
.rail .card-img { height: clamp(320px, 34vw, 500px); }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail-foot { margin-top: clamp(28px, 4vw, 44px); }

/* ---------------------------------------------------------------- avant / après */
.ba { padding: var(--section) 0; }
.ba-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.ba-photos { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.ba-photo { position: absolute; inset: 0; z-index: 0; clip-path: inset(0 0 0 100%); transition: clip-path 700ms var(--ease-in-out) 700ms; }
.ba-photo.is-on { z-index: 1; clip-path: inset(0 0 0 0); transition-delay: 0ms; }
.ba-photo img { transition: transform 1200ms var(--ease-out); }
.ba-photo:not(.is-on) img { transform: scale(1.08); }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; }
.toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 18px;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; isolation: isolate;
}
.toggle::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--ink); transition: transform 240ms var(--ease-out);
}
.toggle[data-state="apres"]::before { transform: translateX(100%); }
.toggle button {
  min-width: 112px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 500; transition: color 200ms ease;
}
.toggle button[aria-pressed="true"] { color: var(--on-dark); }
.ba-text p { color: var(--ink-soft); max-width: 46ch; }
.ba-text .h-xl { margin-bottom: 24px; }
@media (max-width: 759px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-text { order: -1; }
}

/* ---------------------------------------------------------------- méthode */
.method { padding: var(--section) 0; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.method-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: clamp(28px, 4vw, 48px); }
.method-photo { max-width: 300px; }
.method-aside .h-xl { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem); }
.steps { position: relative; display: grid; gap: clamp(48px, 7vw, 96px); padding: 6px 0 6px 72px; }
.steps-track { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.steps-fill { position: absolute; inset: 0; background: var(--green); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 700ms var(--ease-out); }
.step { position: relative; }
.step-n {
  position: absolute; left: -72px; top: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-weight: 600;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.step.is-done .step-n { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.step h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem); font-weight: 500; line-height: 1.15; margin: 6px 0 12px; }
.step p { color: var(--ink-soft); max-width: 46ch; margin: 0; }
.no-js-steps .steps-fill, html:not(.js) .steps-fill { transform: none; }
@media (max-width: 759px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-aside { position: static; }
  .method-photo { max-width: 62%; }
  .steps { padding-left: 60px; }
  .step-n { left: -60px; width: 40px; height: 40px; }
  .steps-track { left: 19px; }
}

/* ---------------------------------------------------------------- avis */
.reviews { padding: var(--section) 0; background: var(--paper-2); }
.reviews .h-xl { margin-bottom: clamp(32px, 4vw, 56px); }
.quotes { margin-bottom: 32px; }
.quotes-stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; max-width: 56ch; }
.quote[hidden] { display: block; visibility: hidden; } /* garde la hauteur de l'avis le plus long */
.quote p { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; text-wrap: pretty; }
.quote.is-entering { animation: quote-in 420ms cubic-bezier(0.05, 0.7, 0.1, 1) both; }
.quote.is-leaving { display: block; animation: quote-out 220ms cubic-bezier(0.3, 0, 1, 1) both; }
@keyframes quote-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes quote-out { to { opacity: 0; transform: translateY(-10px); } }
.quote blockquote { margin: 0 0 18px; }
.quotes-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quotes-count { font-variant-numeric: tabular-nums; font-weight: 500; min-width: 3.5em; text-align: center; }
.quote p { margin: 0; }
.quote p::before { content: "« "; }
.quote p::after { content: " »"; }
.quote figcaption { font-weight: 500; font-size: 0.95rem; }
@media (max-width: 759px) {
  .quote p { font-size: 1.2rem; }
}

/* ---------------------------------------------------------------- bandeau professionnels */
.band { position: relative; display: grid; align-items: end; min-height: min(82svh, 760px); padding: var(--section) 0 clamp(48px, 7vw, 96px); color: var(--on-dark); isolation: isolate; overflow: hidden; --focus: var(--on-dark); }
.band-in .h-xl { margin-bottom: 20px; }
.band-media::after { background: linear-gradient(to top, oklch(0.16 0.01 165 / 0.78) 0%, oklch(0.16 0.01 165 / 0.5) 40%, oklch(0.16 0.01 165 / 0.12) 100%); }
.band-in p { max-width: 44ch; font-size: 1.12rem; }
.band-credit { position: absolute; right: var(--gutter); bottom: 20px; margin: 0; font-size: 0.8125rem; color: var(--on-dark-soft); }

/* ---------------------------------------------------------------- pied de page */
.footer { background: var(--ink); color: var(--on-dark-soft); padding: clamp(64px, 9vw, 128px) 0 32px; --focus: var(--on-dark); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .btn:hover { text-decoration: none; }
.footer .btn-on-dark { color: var(--ink); }
.footer .btn-line-light:hover { color: var(--ink); text-decoration: none; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid oklch(1 0 0 / 0.14); }
.footer-title { margin: 0; font-size: clamp(1.8rem, 1rem + 2.8vw, 3.2rem); font-weight: 500; line-height: 1.12; color: var(--on-dark); max-width: 18ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 48px 0; font-size: 0.95rem; }
.footer-grid h2 { font-size: 0.95rem; font-weight: 500; color: var(--on-dark-soft); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 0; margin-bottom: 14px; }
.footer-grid p { margin-bottom: 10px; }
.brand-light .brand-mark { filter: invert(1); }
.brand-light { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-top: 24px; border-top: 1px solid oklch(1 0 0 / 0.14); font-size: 0.875rem; }
.preview-flag { margin: 0; padding: 4px 12px; border: 1px solid oklch(1 0 0 / 0.3); border-radius: 999px; }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 759px) { .footer { padding-bottom: 96px; } }
@media (max-width: 519px) { .footer-grid { grid-template-columns: 1fr; } }

.float-call {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; background: var(--green); color: var(--on-dark); text-decoration: none; font-weight: 500; box-shadow: 0 4px 8px oklch(0.2 0.01 165 / 0.25);
  transition: transform 220ms var(--ease-out), opacity 220ms ease;
}
.float-call:active { transform: scale(0.96); }
@media (max-width: 759px) { .float-call { display: inline-flex; } }
.menu-open .float-call, .float-call.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------------------------------------------------------------- en-têtes de page */
.page-head { padding: clamp(56px, 9vw, 136px) 0 clamp(36px, 5vw, 64px); }
.page-head .h-display { margin-bottom: 24px; }
.page-head.has-photo { display: grid; grid-template-columns: 1fr minmax(200px, 300px); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-head-photo { margin: 0; }
@media (max-width: 759px) { .page-head.has-photo { grid-template-columns: 1fr; } .page-head-photo { display: none; } }
.notfound { min-height: 56svh; }
.notfound .actions { margin-top: 12px; }

/* ---------------------------------------------------------------- réalisations */
.work { padding-bottom: var(--section); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer; font-weight: 500; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .filters button[aria-pressed="false"]:hover { border-color: var(--ink); } }
.work-count { margin: 20px 0 clamp(28px, 4vw, 44px); color: var(--ink-soft); font-size: 0.95rem; }
.work-grid { columns: 2; column-gap: clamp(20px, 3vw, 40px); }
.work-grid .card { break-inside: avoid; margin-bottom: clamp(36px, 5vw, 64px); }
.work-grid .card-wide .card-img { aspect-ratio: 4 / 3; }
.work-grid .card-tall .card-img { aspect-ratio: 4 / 5; }
.work-grid .card[hidden] { display: none; }
@media (max-width: 699px) { .work-grid { columns: 1; } }

/* ---------------------------------------------------------------- page projet */
.p-hero { position: relative; display: grid; align-items: end; min-height: max(520px, 82svh); padding: calc(var(--header-h) + 48px) 0 clamp(56px, 8vw, 96px); color: var(--on-dark); isolation: isolate; overflow: hidden; --focus: var(--on-dark); }
.p-hero .h-display { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); margin: 18px 0 14px; max-width: 16ch; }
.p-hero-media img { animation: settle 1800ms var(--ease-out) both; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 500; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-hero-meta { margin: 0; color: var(--on-dark-soft); }
.story { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 6vw, 96px); padding: clamp(56px, 8vw, 120px) 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; align-content: start; font-size: 0.95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.story-text .statement { max-width: 34ch; margin-bottom: 28px; }
.story-text p:not(.statement) { max-width: 60ch; color: var(--ink-soft); }
.story-credit { font-size: 0.92rem; }
.gallery { columns: 2; column-gap: clamp(16px, 2.5vw, 32px); padding-bottom: clamp(56px, 8vw, 120px); }
.g-item { break-inside: avoid; margin-bottom: clamp(20px, 3vw, 36px); }
.g-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.g-zoom img { width: 100%; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-zoom:hover img { transform: scale(1.025); } }
.g-item figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.next { background: var(--paper-2); }
.next-link {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 6vw, 96px);
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding: clamp(56px, 8vw, 112px) 0; text-decoration: none;
}
.next-label { color: var(--ink-soft); font-weight: 500; }
.next-title { font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); font-weight: 500; text-transform: none; line-height: 1.12; margin: 10px 0 12px; transition: color 200ms ease; }
.next-meta { color: var(--ink-soft); }
.next-photo { grid-column: 2; grid-row: 1 / 4; width: clamp(150px, 22vw, 300px); }
.next-photo img { transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .next-link:hover .next-title { color: var(--green); }
  .next-link:hover .next-photo img { transform: scale(1.04); }
}
.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(56px, 8vw, 104px) 0; }
@media (max-width: 759px) {
  .story { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .next-link { grid-template-columns: 1fr; }
  .next-photo { grid-column: 1; grid-row: auto; margin-top: 28px; width: 56%; }
}

/* ---------------------------------------------------------------- visionneuse */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--on-dark); --focus: var(--on-dark);
  opacity: 0; transition: opacity 200ms var(--ease-out), display 200ms allow-discrete, overlay 200ms allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: oklch(0.14 0.01 165 / 0.94); }
.lb-inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 80px 72px; touch-action: pan-y; }
.lb-figure { display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.lb-figure.is-swapping img { opacity: 0; transform: scale(0.985); }
.lb-figure figcaption { font-size: 0.95rem; color: var(--on-dark-soft); text-align: center; }
.lightbox .icon-btn { position: absolute; border-color: oklch(1 0 0 / 0.35); color: var(--on-dark); background: oklch(0.14 0.01 165 / 0.5); }
@media (hover: hover) and (pointer: fine) { .lightbox .icon-btn:not([disabled]):hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); } }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; margin: 0; font-size: 0.9rem; color: var(--on-dark-soft); }
@media (max-width: 759px) {
  .lb-inner { padding: 64px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-count { bottom: 30px; }
}
html.lb-lock { overflow: hidden; }

/* ---------------------------------------------------------------- notre approche */
.detail { padding: var(--section) 0; background: var(--paper-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.detail-photo img { border-radius: var(--r); }
.detail-text .h-lg { margin-bottom: 20px; }
.detail-text p { color: var(--ink-soft); max-width: 50ch; }
.detail-text .btn { margin-top: 12px; }
@media (max-width: 759px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- professionnels */
.pro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; padding-bottom: var(--section); }
.pro-photo { max-width: 440px; width: 100%; }
.pro-photo .credit, .method-photo .credit { margin-top: 10px; }
.pro-text > p:not(.statement) { color: var(--ink-soft); max-width: 54ch; }
.pro-text a:not(.dl-row) { color: var(--green); font-weight: 500; text-underline-offset: 4px; }
.pro-text .statement { margin-bottom: 24px; }
.downloads { margin: 32px 0 36px; }
.downloads li { border-top: 1px solid var(--line); }
.downloads li:last-child { border-bottom: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 20px 4px; text-decoration: none; }
.dl-name { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 500; line-height: 1.25; }
.dl-meta { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }
.dl-row .i { width: 22px; height: 22px; color: var(--green); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dl-row:hover .dl-name { color: var(--green); }
  .dl-row:hover .i { transform: translateY(3px); }
}
@media (max-width: 759px) {
  .pro-grid { grid-template-columns: 1fr; }
  .pro-photo { max-width: 78%; }
}

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; padding-bottom: var(--section); }
.contact-info { display: grid; gap: 18px; justify-items: start; }
.contact-tel { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); font-weight: 500; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.contact-mail { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 500; color: var(--green); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-info .facts { margin: 14px 0 6px; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--card); border-radius: var(--r); }
.form .h-lg { margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { font-weight: 500; font-size: 0.98rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  font: inherit; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 156px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint), 0 0 0 4.5px var(--green); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-err { margin: 0; min-height: 0; font-size: 0.9rem; font-weight: 500; color: var(--error); }
.field-err:empty { display: none; }
.form .btn { justify-self: start; }
.form .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-status:empty { display: none; }
.form-status { padding: 16px 18px; border-radius: 10px; background: var(--green-tint); outline: none; }
.form-status.is-error { background: var(--error-tint); }
.form-status p { margin: 0 0 8px; }
.form-status p:last-child { margin: 0; }
.form-status pre { margin: 10px 0; padding: 12px; max-height: 180px; overflow: auto; white-space: pre-wrap; font: inherit; font-size: 0.92rem; background: var(--card); border-radius: 8px; }
.form-status button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; cursor: pointer; font-weight: 500; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mentions légales */
.legal { padding-bottom: var(--section); max-width: 72ch; margin-inline: max(var(--gutter), (100% - var(--maxw)) / 2); }
.legal h2 { font-size: 1.25rem; font-weight: 500; margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); }
.legal a { color: var(--green); }

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .hero-media img, .p-hero-media img { animation: none; }
  .hero-title .line > span, .hero-lead, .hero .actions { animation: fade 400ms ease both; }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
  .js .arch[data-open], .js .arch[data-open] img { transform: none; transition: none; }
  .craft-photo { transform: none; transition: opacity 200ms ease; }
  .craft-item.is-on .craft-name { transform: none; }
  .card-img img, .g-zoom img, .next-photo img { transition: none; transform: none !important; }
  .steps-fill { transition: none; }
  .nav, .lb-figure img { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms cubic-bezier(0.3, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 450ms cubic-bezier(0.05, 0.7, 0.1, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-media .slide { transition: none; }
  .hero-media .slide.is-on img, .hero-media .slide:first-child.is-on img { animation: none; }
  .dot[aria-pressed="true"] span::after { animation: none; transform: scaleX(1); }
  .quote.is-entering, .quote.is-leaving { animation: none; }
}

/* ---------------------------------------------------------------- animations au défilement (motion.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; transform-origin: 0 100%; will-change: transform; }

.trades { padding: clamp(40px, 6vw, 88px) 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.trades-row { display: flex; gap: clamp(24px, 3vw, 48px); white-space: nowrap; width: max-content; will-change: transform; }
.trades-row span { font-size: clamp(1.8rem, 1rem + 3.2vw, 3.6rem); font-weight: 500; text-transform: none; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
.trades-row span::after { content: "·"; margin-left: clamp(24px, 3vw, 48px); color: var(--green); }
.trades-row-alt { margin-top: 0.15em; }
.trades-row-alt span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.trades-row-alt span::after { -webkit-text-stroke: 0; }

.masthead { transition: transform 420ms var(--ease-out); }
.masthead.is-tucked { transform: translateY(-100%); }

@media (min-width: 760px) {
  .craft-visual { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .craft-list > li .craft-item { padding-block: clamp(22px, 2.6vw, 36px); }
}

.btn { position: relative; overflow: hidden; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0.08; transform: translateY(101%); transition: transform 380ms var(--ease-out); }
  .btn:hover::before { transform: none; }
  .card-img img, .g-item .zoom img { transition: transform 900ms var(--ease-out); }
  .card-link:hover .card-img img, .g-item .zoom:hover img { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .ba-photo, .ba-photo img, .masthead { transition: none; }
  .ba-photo:not(.is-on) img { transform: none; }
  .masthead.is-tucked { transform: none; }
}

/* ---------------------------------------------------------------- pages service */
.h-display.h-service { font-size: clamp(1.5rem, 0.8rem + 2.4vw, 3rem); }
.svc { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 7vw, 120px); padding-block: clamp(24px, 4vw, 56px) var(--section); align-items: start; }
.svc-text p { max-width: 58ch; font-size: 1.08rem; }
.svc-text .actions { margin-top: 28px; }
.svc-works { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.svc-works .h-lg { margin-bottom: 18px; }
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.works li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.works .i { width: 20px; height: 20px; margin-top: 3px; fill: var(--green); }
.svc-projects { padding: var(--section) 0; background: var(--paper-2); }
.svc-projects .h-xl { margin-bottom: clamp(28px, 4vw, 48px); }
.svc-projects .work-grid { margin-bottom: 28px; }
.svc-quotes { padding-block: var(--section) 0; display: grid; gap: 28px; }
.quote-static { max-width: 62ch; grid-area: auto; }
.quote-static p { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.4; font-weight: 500; }
.svc-zone { padding-block: clamp(32px, 5vw, 56px) var(--section); max-width: 70ch; }
.svc-zone .h-lg { margin-bottom: 14px; }
.svc-zone h3 { margin: 28px 0 10px; font-size: 1.05rem; }
.svc-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-text .link { margin-top: 18px; }
@media (max-width: 899px) { .svc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- assistant du site */
.assistant { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: var(--z-float); }
.as-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: 600 0.98rem/1 var(--font); cursor: pointer; box-shadow: 0 6px 18px oklch(0.2 0.01 165 / 0.22); transition: transform 180ms var(--ease-out); }
.as-launch .i { width: 22px; height: 22px; }
.as-launch:active { transform: scale(0.97); }
.as-launch:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }
.assistant.is-open .as-launch { display: none; }
.as-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px oklch(0.2 0.01 165 / 0.18); overflow: hidden; transform-origin: bottom right; animation: as-in 260ms var(--ease-out) both; }
.as-panel[hidden] { display: none; }
@keyframes as-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: var(--on-dark); --focus: var(--on-dark); }
.as-head strong { display: block; font-size: 1.02rem; }
.as-head span { display: block; font-size: 0.8rem; color: var(--on-dark-soft); }
.as-head .icon-btn { color: var(--on-dark); border-color: oklch(0.975 0.004 165 / 0.35); }
.as-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.as-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.45; animation: as-msg 240ms var(--ease-out) both; }
.as-msg p { margin: 0; }
@keyframes as-msg { from { opacity: 0; transform: translateY(6px); } }
.as-bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.as-user { align-self: flex-end; background: var(--green); color: var(--on-dark); border-bottom-right-radius: 4px; }
.as-wait { color: var(--ink-soft); font-style: italic; }
.as-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.as-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 0.85rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: left; }
.as-link:hover { border-color: var(--green); color: var(--green); }
.as-also-label { align-self: center; font-size: 0.8rem; color: var(--ink-soft); }
.as-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.as-chip { min-height: 44px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: 600 0.88rem/1.25 var(--font); cursor: pointer; text-align: left; }
.as-chip:hover { border-color: var(--green); color: var(--green); }
.as-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.as-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 1rem var(--font); color: var(--ink); background: var(--paper); }
.as-form input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.as-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: var(--on-dark); cursor: pointer; }
.as-send .i { width: 20px; height: 20px; }
.as-note { margin: 0; padding: 0 14px 10px; font-size: 0.75rem; color: var(--ink-soft); }
@media (max-width: 759px) {
  .assistant { left: 16px; right: auto; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .as-launch { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .as-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(78svh, 620px); transform-origin: bottom left; }
}
@media (prefers-reduced-motion: reduce) { .as-panel, .as-msg { animation: none; } }

.as-callback { border-color: var(--green); color: var(--green); }
.as-cb { display: grid; gap: 8px; width: 88%; }
.as-cb label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 500; }
.as-cb label span { font-weight: 400; color: var(--ink-soft); }
.as-cb input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: 0.95rem var(--font); background: var(--card); color: var(--ink); }
.as-cb input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.as-cb-err { margin: 0; min-height: 1em; color: var(--error); font-size: 0.85rem; }
.as-cb-send { justify-self: start; background: var(--green); color: var(--on-dark); border-color: var(--green); }

strong, b { font-weight: 600; }
.h-display, .h-xl, .hero-title, .footer-title, .next-title { letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- accueil simplifié (modèle Aurelia) */
.intro-text .h-xl { margin-bottom: 20px; }
.intro-text p { max-width: 56ch; color: var(--ink-soft); }
.home-services { padding: 0 0 var(--section); }
.home-services .h-xl { margin-bottom: clamp(24px, 3vw, 40px); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.svc-card a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.svc-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.svc-card-title { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.svc-card-more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--green); }
@media (hover: hover) and (pointer: fine) { .svc-card a:hover .svc-card-img img { transform: scale(1.04); } .svc-card a:hover .svc-card-title { color: var(--green); } }
.engagements { padding: var(--section) 0; border-top: 1px solid var(--line); }
.engagements .h-xl { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.eng-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); text-align: center; }
.eng .i { width: 40px; height: 40px; fill: var(--green); margin: 0 auto 14px; }
.eng h3 { font-size: 1.2rem; font-weight: 500; margin: 0 0 10px; }
.eng p { margin: 0 auto; max-width: 32ch; color: var(--ink-soft); }
@media (max-width: 759px) { .svc-cards, .eng-list { grid-template-columns: 1fr; } }

.service-faq { padding-bottom: var(--section); }
.service-faq h2 { margin-bottom: 24px; }
.service-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.service-faq summary { min-height: 44px; cursor: pointer; font-weight: 600; }
.service-faq p { max-width: 65ch; margin-top: 12px; }
.as-cb-summary { overflow-wrap: anywhere; font-weight: 600; }

/* Cibles tactiles >= 44 px (audit design 24/10) */
.footer-grid a, .footer-legal a, .link, .back, .contact-tel, .contact-mail { display: inline-flex; align-items: center; min-height: 44px; }
.header-cta { min-height: 44px; }
.brand, .footer-grid li > a[href^="tel:"], .footer-grid li > a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }

/* Flottants mobiles : une seule action, aucune sur le formulaire de contact. */
@media (max-width: 759px) {
  main:not(:has(.contact-grid)) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .float-call:not(.is-hidden) ~ .assistant .as-launch,
  .menu-open .as-launch { display: none; }
  body:has(.contact-grid) .float-call,
  body:has(.contact-grid) .assistant { display: none; }
}
