/* Constructions Luynoises
   Concept : la planche technique. Fonds bleu nuit des tirages, cotes orange,
   béton clair pour les pages de lecture. Grille à 12 colonnes, marges larges. */
:root {
  --ink: #0e2238;        /* bleu nuit, fonds forts */
  --ink-2: #16314f;      /* surfaces sur fond nuit */
  --blue: #1462d8;       /* bleu du logo, liens */
  --orange: #e66a1f;     /* accent : cotes, appels à l'action */
  --orange-ink: #b8500f; /* orange lisible sur fond clair */
  --paper: #f2f4f6;      /* béton clair */
  --white: #ffffff;
  --text: #15212e;
  --muted: #566476;
  --line: #d3dae2;
  --line-ink: rgba(186, 208, 232, .18);
  --on-ink: #e9eef4;
  --on-ink-muted: #9fb2c8;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + .8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.8rem);
  --step-4: clamp(2.35rem, 1.8rem + 2.8vw, 4.3rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 105%; line-height: 1.2; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
.prose { max-width: 66ch; }
.prose ul { padding-left: 1.2em; margin-top: 1em; }
.prose li + li { margin-top: .35em; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 8px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Conteneur avec marges de sécurité */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(var(--gutter), clamp(16px, 4vw, 32px));
  padding-right: max(var(--gutter-r), clamp(16px, 4vw, 32px));
}
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink a { color: var(--white); }

/* Étiquettes techniques (style cartouche) */
.label {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section--ink .label, .hero .label, .page-hero .label { color: var(--orange); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: var(--on-ink-muted); }

/* Boutons */
.btn {
  --bg: var(--orange); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: .98rem;
  letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid var(--bg); border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { --bg: var(--orange-ink); color: var(--white); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg: transparent; color: var(--orange); border-color: var(--orange); }
.btn--ink { --bg: var(--ink); }
.btn--ink:hover { --bg: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── En-tête ─── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(14, 34, 56, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand:hover { color: var(--white); }
.brand-mark { width: 62px; flex: none; display: block; }
.brand-mark picture, .brand-mark img { display: block; width: 100%; height: auto; }
.brand-sub { white-space: nowrap; }

.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-ink); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 10px 12px; border-radius: var(--radius); position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-dd { position: relative; }
.nav-dd > button { all: unset; cursor: pointer; color: var(--on-ink); font-size: .93rem; font-weight: 500; padding: 10px 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius); }
.nav-dd > button:focus-visible { outline: 2px solid var(--orange); }
.nav-dd > button svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: var(--white); color: var(--text); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(14, 34, 56, .25); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel, .nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-dd:hover > button svg, .nav-dd.open > button svg { transform: rotate(180deg); }
.nav-dd-panel a { display: grid; gap: 2px; color: var(--text); padding: 12px 14px; }
.nav-dd-panel a::after { display: none; }
.nav-dd-panel a:hover { background: var(--paper); color: var(--text); }
.nav-dd-panel small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-family: var(--f-mono); font-size: .9rem; color: var(--white); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--orange); }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .menu-toggle {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-ink);
    border-radius: var(--radius); color: var(--white); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); overflow-y: auto;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav a, .nav-dd > button { font-size: 1.15rem; padding: 16px 4px; border-bottom: 1px solid var(--line-ink); border-radius: 0; }
  .nav a::after { display: none; }
  .nav-dd > button { display: flex; width: 100%; justify-content: space-between; box-sizing: border-box; }
  .nav-dd-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; color: var(--on-ink); padding: 0 0 8px 12px; min-width: 0; display: none; }
  .nav-dd.open .nav-dd-panel { display: block; }
  .nav-dd-panel a { color: var(--on-ink); border-bottom: 0; padding: 10px 4px; font-size: 1rem; }
  .nav-dd-panel a:hover { background: transparent; color: var(--orange); }
  .nav-dd-panel small { color: var(--on-ink-muted); }
  .nav .nav-mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
  .nav .nav-mobile-cta a { border: 0; }
  .nav .nav-mobile-cta .btn--ghost { border: 1.5px solid var(--line-ink); color: var(--white); }
  .nav .nav-mobile-cta .btn { font-size: 1rem; padding: 0 20px; }
}
@media (min-width: 921px) { .nav-mobile-cta { display: none; } }

/* ─── Hero d'accueil ─── */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-main {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: var(--step-1); line-height: 1.5; color: var(--on-ink-muted); max-width: 34em; }
.hero .btn-row { margin-top: 8px; }
.hero .btn--ghost { color: var(--white); }
.hero-drawing { min-width: 0; }
.hero-drawing svg { width: 100%; height: auto; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }

.badges { border-top: 1px solid var(--line-ink); }
.badges ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.badges li { display: flex; align-items: center; gap: 12px; padding: 22px 16px 22px 0; font-size: .92rem; font-weight: 500; color: var(--on-ink); }
.badges li + li { padding-left: 20px; border-left: 1px solid var(--line-ink); }
.badges svg { width: 26px; height: 26px; flex: none; color: var(--orange); }
@media (max-width: 860px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-drawing { order: 2; max-width: 560px; }
  .badges ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges li { padding: 16px 12px 16px 0; }
  .badges li + li { padding-left: 0; border-left: 0; }
  .badges li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-ink); }
  .badges li:nth-child(n+3) { border-top: 1px solid var(--line-ink); }
}

/* Dessin technique : tracé animé au chargement */
.draw path, .draw line, .draw rect, .draw polyline, .draw circle { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .draw .ln { stroke-dasharray: var(--len, 1200); stroke-dashoffset: 0; animation: trace 1.8s var(--ease) both; animation-delay: var(--d, 0s); }
  .draw .fade { animation: fadein .9s var(--ease) both; animation-delay: var(--d, 1.2s); }
  @keyframes trace { from { stroke-dashoffset: var(--len, 1200); } }
  @keyframes fadein { from { opacity: 0; } }
}

/* ─── En-tête des pages internes ─── */
.page-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero-grid-bg { mask-image: linear-gradient(90deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%); }
.page-hero .wrap { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); display: grid; gap: 20px; }
.page-hero h1 { color: var(--white); max-width: 18ch; font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.8rem); }
.page-hero .lead { font-size: var(--step-1); color: var(--on-ink-muted); max-width: 40em; line-height: 1.5; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0 0 8px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.breadcrumb li { color: var(--on-ink-muted); display: flex; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--orange); }
.breadcrumb a { color: var(--on-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ─── Fiche d'identité (accueil) ─── */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-grid h2 { margin-top: 18px; }
.intro-text { display: grid; gap: 20px; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.intro-text strong { color: var(--text); font-weight: 600; }
.spec { border: 1px solid var(--text); font-size: .95rem; background: var(--white); }
.spec-title { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--text); color: var(--white); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.spec dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: 0; }
.spec dt { padding: 13px 16px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
.spec dd { margin: 0; padding: 13px 16px; font-weight: 500; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .spec-row { grid-template-columns: 1fr; } .spec dt { border-right: 0; padding-bottom: 0; } }

/* ─── Métiers ─── */
.trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trade {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px;
  background: var(--white); color: var(--text); text-decoration: none;
  padding: clamp(28px, 3.5vw, 44px); min-height: 300px; overflow: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.trade-icon { width: 54px; height: 54px; color: var(--blue); transition: color .35s var(--ease), transform .5s var(--ease); }
.trade h3 { font-size: var(--step-2); font-stretch: 112%; }
.trade p { color: var(--muted); transition: color .35s var(--ease); max-width: 42ch; }
.trade-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); align-self: start; }
.trade-list li::before { content: "— "; color: var(--orange-ink); }
.trade-more { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; color: var(--orange-ink); }
.trade-more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.trade:hover { background: var(--ink); color: var(--white); }
.trade:hover p, .trade:hover .trade-list { color: var(--on-ink-muted); }
.trade:hover .trade-icon { color: var(--orange); transform: translateY(-3px); }
.trade:hover .trade-more { color: var(--orange); }
.trade:hover .trade-more svg { transform: translateX(5px); }
.trade:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .trades { grid-template-columns: 1fr; } .trade { min-height: 0; } }

/* ─── Méthode (déroulé de chantier) ─── */
.phases { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: phase; position: relative; }
.phases::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line-ink); }
.phase { counter-increment: phase; position: relative; padding-right: 24px; display: grid; gap: 12px; align-content: start; }
.phase::before {
  content: counter(phase, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .8rem; color: var(--ink); background: var(--orange);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; position: relative;
}
.phase h3 { color: var(--white); margin-top: 10px; }
.phase p { color: var(--on-ink-muted); font-size: .95rem; }
@media (max-width: 960px) {
  .phases { grid-template-columns: 1fr; gap: 28px; }
  .phases::before { top: 0; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
  .phase { grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; padding-right: 0; }
  .phase::before { grid-row: span 2; }
  .phase h3 { margin-top: 4px; }
}

/* ─── Réalisations ─── */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.project { display: grid; gap: 16px; align-content: start; text-decoration: none; color: var(--text); }
.project:hover { color: var(--text); }
.project-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--ink-2); border-radius: var(--radius); }
.project-media img, .project-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-media img, .project:hover .project-media .ph { transform: scale(1.045); }
.project-status { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--text); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; }
.project-status.is-live { background: var(--orange); color: var(--white); }
.project-meta { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.project h3, .project h2 { font-size: var(--step-1); font-stretch: 105%; line-height: 1.2; transition: color .25s; }
.project:hover h3, .project:hover h2 { color: var(--orange-ink); }
.project p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* Visuel provisoire en attendant les photos */
.ph { position: relative; display: grid; place-items: center; background:
  repeating-linear-gradient(-45deg, transparent 0 11px, rgba(186, 208, 232, .09) 11px 12px), var(--ink-2); color: var(--on-ink-muted); }
.ph svg { width: 58%; height: auto; opacity: .9; }
.ph-note { position: absolute; bottom: 10px; right: 12px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { font: inherit; font-size: .9rem; font-weight: 500; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ─── Réassurance ─── */
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.proof { padding: 28px 28px 32px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
.proof:nth-child(3n+2), .proof:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.proof-k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.proof p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .proofs { grid-template-columns: 1fr; }
  .proof, .proof:nth-child(3n+2), .proof:nth-child(3n+3) { padding: 24px 0; border-left: 0; }
}

/* ─── Particuliers / professionnels ─── */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.audience { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; border-radius: var(--radius); }
.audience--light { background: var(--paper); }
.audience--dark { background: var(--ink); color: var(--on-ink); }
.audience--dark h3 { color: var(--white); }
.audience h3 { font-size: var(--step-2); }
.audience p { color: var(--muted); }
.audience--dark p { color: var(--on-ink-muted); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; }
.ticks li::before { content: ""; width: 12px; height: 7px; margin-top: .48em; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.audience .btn-row { margin-top: 8px; }
.audience--dark .btn--ghost { color: var(--white); }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } }

/* ─── Bandeau devis ─── */
.cta-band { background: var(--orange); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: repeating-linear-gradient(-45deg, transparent 0 18px, #fff 18px 19px);
}
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 14px; font-size: var(--step-1); color: rgba(255, 255, 255, .92); max-width: 36em; }
.cta-band .btn { --bg: var(--ink); }
.cta-band .btn:hover { --bg: var(--white); color: var(--ink); }
.cta-band .btn--ghost { --bg: transparent; color: var(--white); border-color: var(--white); }
.cta-band .btn--ghost:hover { --bg: var(--white); color: var(--ink); border-color: var(--white); }
.cta-phone { font-family: var(--f-mono); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ─── Pages métier ─── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-main { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.block { display: grid; gap: 18px; }
.block > h2 { font-size: var(--step-2); }
.block p { color: var(--muted); max-width: 68ch; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.item { background: var(--white); padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.item h3 { font-size: 1.06rem; font-stretch: 105%; }
.item p { font-size: .94rem; }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
.aside-card { background: var(--ink); color: var(--on-ink); padding: 28px; border-radius: var(--radius); display: grid; gap: 16px; }
.aside-card h2 { color: var(--white); font-size: var(--step-1); }
.aside-card p { color: var(--on-ink-muted); font-size: .95rem; }
.aside-card .btn { width: 100%; }
.aside-contact { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.aside-contact a { color: var(--white); font-family: var(--f-mono); text-decoration: none; overflow-wrap: anywhere; }
.aside-contact a:hover { color: var(--orange); }
.aside-links { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.aside-links h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.aside-links ul { list-style: none; display: grid; }
.aside-links a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); font-weight: 500; }
.aside-links li:first-child a { border-top: 0; }
.aside-links a:hover, .aside-links a[aria-current="page"] { color: var(--orange-ink); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .aside { position: static; } }

/* FAQ */
.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 20px 0; font-family: var(--f-display); font-stretch: 105%; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.4rem; color: var(--orange-ink); text-align: center; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--muted); }

/* ─── Fiche réalisation ─── */
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); max-width: 720px; border: 1px solid var(--line-ink); margin-top: 12px; }
.facts div { padding: 14px 18px; border-left: 1px solid var(--line-ink); display: grid; gap: 4px; }
.facts div:first-child { border-left: 0; }
.facts dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.facts dd { margin: 0; color: var(--white); font-weight: 500; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div + div { border-left: 0; border-top: 1px solid var(--line-ink); } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }

/* ─── Contact / devis ─── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 28px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.fieldset legend { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); padding: 0; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; width: 100%; }
.fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .choice-title { font-weight: 600; font-size: .94rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid #b9c3cf; border-radius: var(--radius); padding: 13px 14px; width: 100%; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 98, 216, .18); }
.field input[type="file"] { padding: 10px; background: var(--paper); border-style: dashed; }
.hint { font-size: .84rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #b9c3cf; border-radius: 999px; font-size: .94rem; font-weight: 500; transition: all .2s; }
.choice input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border-left: 3px solid var(--orange); }
.contact-card { background: var(--paper); padding: 28px; border-radius: var(--radius); display: grid; gap: 22px; }
.contact-line { display: grid; gap: 3px; }
.contact-line span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-line a, .contact-line strong { font-size: 1.12rem; font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--orange-ink); }

/* ─── Pages légales ─── */
.legal { display: grid; gap: 36px; max-width: 760px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: var(--step-1); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 4px; }
.todo { background: #fff3e8; color: var(--orange-ink); font-weight: 600; padding: 0 4px; border-radius: 2px; }

/* ─── Pied de page ─── */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 7vw, 88px) 48px; }
.footer-top h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-top ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { max-width: 34ch; }
.footer-nap { font-style: normal; display: grid; gap: 4px; }
.footer-nap .tel { font-family: var(--f-mono); font-size: 1.05rem; color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-ink); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .84rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* Barre d'appel flottante (mobile) */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(14, 34, 56, .96); border-top: 1px solid var(--line-ink);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; font-size: .92rem; }
  .mobile-bar .btn--ghost { color: var(--white); }
  .site-footer { padding-bottom: 72px; }
}

/* ─── Animations au défilement ───
   Activées par site.js (classe .anim sur <html>) : sans JavaScript ou avec
   « réduire les animations », tout reste affiché normalement. */
@media (prefers-reduced-motion: no-preference) {
  /* Apparition : montée + fondu, en cascade (--i) */
  .anim [data-a] { opacity: 0; transform: translateY(28px); transition: opacity 1.15s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
  .anim [data-a].in { opacity: 1; transform: none; }
  /* Depuis la gauche (lignes de la fiche d'identité, déroulés) */
  .anim [data-a="left"] { transform: translateX(-24px); }
  /* Photos : dévoilement vertical + léger zoom arrière */
  .anim [data-a="unveil"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
  .anim [data-a="unveil"].in { clip-path: inset(0 0 0 0); }
  .anim [data-a="unveil"] > img, .anim [data-a="unveil"] > picture img, .anim [data-a="unveil"] > .ph { transform: scale(1.14); transition: transform 2.4s var(--ease); }
  .anim [data-a="unveil"].in > img, .anim [data-a="unveil"].in > picture img, .anim [data-a="unveil"].in > .ph { transform: none; }
  /* Étiquettes : le trait se dessine */
  .anim .label[data-a]::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
  .anim .label[data-a].in::before { transform: none; }
  /* Pictogrammes des métiers : tracé au trait */
  .anim .trade[data-a] .trade-icon path, .anim .trade[data-a] .trade-icon rect, .anim .trade[data-a] .trade-icon circle { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--i, 0) * 130ms + .4s); }
  .anim .trade[data-a].in .trade-icon path, .anim .trade[data-a].in .trade-icon rect, .anim .trade[data-a].in .trade-icon circle { stroke-dashoffset: 0; }
  /* Méthode : la ligne de temps se trace, puis les étapes apparaissent */
  .anim .phases[data-a] { opacity: 1; transform: none; }
  .anim .phases::before { transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease); }
  .anim .phases.in::before { transform: none; }
  .anim .phases .phase { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 300ms + .35s); }
  .anim .phases.in .phase { opacity: 1; transform: none; }
  .anim .phases .phase::before { transform: scale(0); transition: transform .8s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 300ms + .4s); }
  .anim .phases.in .phase::before { transform: none; }
  @media (max-width: 960px) {
    .anim .phases::before { transform: scaleY(0); transform-origin: top; }
    .anim .phases.in::before { transform: none; }
  }
  /* Réassurance : le filet supérieur se trace */
  .anim .proofs[data-a] { opacity: 1; transform: none; border-top-color: transparent; position: relative; }
  .anim .proofs[data-a]::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 1.9s var(--ease); }
  .anim .proofs[data-a].in::before { transform: none; }
  /* Dessin du hero : légère dérive au défilement (parallaxe) */
  .hero-drawing svg { will-change: transform; }
  /* Bandeau devis : hachures qui glissent lentement */
  .cta-band::after { inset: -40px; animation: stripes 22s linear infinite; }
  @keyframes stripes { to { transform: translateX(26.87px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 20px; }

/* Bulle d'information (aperçu uniquement) */
.preview-toast {
  position: fixed; z-index: 80; left: 50%; transform: translateX(-50%);
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: min(92vw, 420px);
  background: var(--white); color: var(--text); border-left: 3px solid var(--orange);
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(14, 34, 56, .3);
  padding: 14px 18px; display: grid; gap: 4px; font-size: .9rem;
}
.preview-toast strong { font-family: var(--f-mono); font-size: 1rem; }
.preview-toast span { color: var(--muted); }

/* En-tête sur petit téléphone (placé en fin de fichier pour primer) */
@media (max-width: 480px) {
  .brand { gap: 10px; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-mark { width: 50px; }
  .brand-sub { font-size: .56rem; letter-spacing: .02em; }
  .brand-name { font-size: .95rem; }
}

/* ─── Pages métiers avec vidéo en fond fixe ───
   La vidéo reste immobile derrière la page ; les panneaux de contenu défilent
   par-dessus, et des « fenêtres » transparentes la laissent apparaître. */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.bg-video video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.8); }
.bg-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 34, 56, .62), rgba(14, 34, 56, .48) 45%, rgba(14, 34, 56, .72)); }
.vhero { min-height: min(82vh, 760px); display: grid; align-items: end; color: var(--on-ink); }
.vhero .wrap { display: grid; gap: 20px; padding-block: 64px clamp(56px, 8vw, 104px); }
.vhero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.vhero .lead { font-size: var(--step-1); color: #dbe4ee; max-width: 38em; line-height: 1.5; }
.vhero .label { color: var(--orange); }
.vhero .breadcrumb a, .vhero .breadcrumb li { color: #c9d5e2; }
.vhero-scroll { margin-top: 18px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #c9d5e2; display: inline-flex; align-items: center; gap: 12px; }
.vhero-scroll::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--orange), transparent); }
.panel { position: relative; box-shadow: 0 -24px 60px rgba(0, 0, 0, .28); }
.panel:not(.section--ink) { background: var(--white); }
.vband { min-height: min(68vh, 620px); display: grid; align-items: center; color: var(--white); }
.vband .wrap { display: grid; gap: 22px; padding-block: 72px; }
.vband-rule { width: 56px; height: 3px; background: var(--orange); }
.vband-text { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); line-height: 1.05; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) {
  .anim .vband-text[data-a] { transform: translateY(40px); }
}
@media (max-width: 960px) {
  .panel .phases { grid-template-columns: 1fr !important; }
}

/* ─── Transition entre les pages : le logo se construit ───
   Au départ (.cover) : voile bleu nuit en fondu, puis le logo apparaît de bas
   en haut, des fondations vers la grue, suivi d'un trait orange. À l'arrivée
   (.pt, posée par le script de tête) : le logo s'efface et la page apparaît.
   Le script retire le voile dans tous les cas (sécurité). */
.page-curtain { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--ink); pointer-events: none; }
.page-curtain.gone { display: none !important; }
.page-curtain .lg { position: relative; width: min(220px, 46vw); }
.page-curtain .lg img { display: block; width: 100%; height: auto; }
.page-curtain .lg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 2px; background: var(--orange); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .page-curtain.cover { display: grid; animation: veil-in .28s ease forwards; }
  .page-curtain.cover .lg img { clip-path: inset(100% 0 0 0); animation: lg-build .6s cubic-bezier(.45, 0, .2, 1) .18s forwards; }
  .page-curtain.cover .lg::after { animation: lg-line .6s cubic-bezier(.45, 0, .2, 1) .18s forwards; }
  .pt .page-curtain { display: grid; animation: veil-out .5s ease .15s forwards; }
  .pt .page-curtain .lg { animation: lg-out .45s ease .05s forwards; }
  @keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes veil-out { to { opacity: 0; visibility: hidden; } }
  @keyframes lg-build { to { clip-path: inset(0 0 0 0); } }
  @keyframes lg-line { 0% { bottom: 0; opacity: 1; } 85% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
  @keyframes lg-out { to { opacity: 0; transform: scale(1.05); } }
}

/* ─── Diaporama des fiches chantier ───
   Défilement natif (glisser au doigt), flèches, compteur et vignettes.
   Les photos verticales sont centrées sur fond bleu nuit. */
.slider { display: grid; gap: 12px; min-width: 0; }
.slider-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 4 / 3; max-width: 100%; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; position: relative; }
.slide picture { position: absolute; inset: 0; display: block; }
.slide img { width: 100%; height: 100%; }
.slide img { object-fit: contain; }
.slide figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(14, 34, 56, .8); color: var(--white); font-size: .85rem; padding: 6px 10px; border-radius: 2px; }
.slider-btn { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: background .2s, color .2s, opacity .2s; }
.slider-btn:hover { background: var(--orange); color: var(--white); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn.prev { left: 12px; } .slider-btn.prev svg { transform: rotate(180deg); }
.slider-btn.next { right: 12px; }
.slider-btn[disabled] { opacity: .35; cursor: default; }
.slider-count { position: absolute; right: 12px; bottom: 12px; font-family: var(--f-mono); font-size: .8rem; color: var(--white); background: rgba(14, 34, 56, .75); padding: 5px 9px; border-radius: 2px; }
.slider-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: var(--ink); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--orange); }
@media (max-width: 600px) { .slider-track { aspect-ratio: 1; } .slider-btn { width: 40px; height: 40px; } .thumb { width: 64px; } }

/* Accueil : 4 réalisations */
@media (min-width: 1100px) { .projects--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Cases réalisations : léger zoom de la photo au survol (signale que c'est cliquable) */
@media (hover: hover) {
  .project .project-media img, .project .project-media .ph { transition: transform .9s var(--ease); }
  .project:hover .project-media img, .project:hover .project-media .ph,
  .anim .project:hover [data-a="unveil"].in > picture img, .anim .project:hover [data-a="unveil"].in > img, .anim .project:hover [data-a="unveil"].in > .ph { transform: scale(1.07); transition: transform .9s var(--ease); }
  .project .project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,34,56,.28), transparent 55%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
  .project:hover .project-media::after { opacity: 1; }
}
