/* Vitrerie Vision SG. Héro sombre et embué, puis la page « s'éclaircit » : papier verre, filets, cotes de vitrier. */
:root {
  --ink: #0f1418;
  --ink-2: #172027;
  --paper: #eef1ef;
  --paper-2: #e2e7e5;
  --text: #11171b;
  --muted: #56626a;
  --rule: rgb(17 23 27 / .14);
  --rule-strong: rgb(17 23 27 / .55);
  --frost: #eef2f4;
  --steel: #a9b3bb;
  --gold: #c6a877;
  --gold-deep: #8a6a33;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 4.5vw, 56px);
  --wrap: min(1280px, 100% - 2 * var(--gutter));
  --nav-h: 64px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 16px; z-index: 40; background: var(--frost); color: var(--ink); padding: 10px 16px; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Typo ---------- */
.display {
  font-stretch: 108%;
  font-weight: 560;
  font-size: clamp(2.15rem, 1.3rem + 3.6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
h3 { font-stretch: 104%; font-weight: 600; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .4em; }
p { margin: 0 0 1em; max-width: 60ch; }

/* Étiquette de section : numéro + filet, comme une cote */
.tag {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px; max-width: none;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.tag span { color: var(--gold-deep); }
.tag::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: currentColor; opacity: .5; }
.tag--dark { color: var(--steel); }
.tag--dark span { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.5em;
  font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d8bd8e; }
.btn--line { border-color: rgb(238 242 244 / .4); color: var(--frost); }
.btn--line:hover { border-color: var(--frost); background: rgb(238 242 244 / .06); }

/* ---------- Navigation : barre pleine, sobre ---------- */
.nav {
  position: fixed; z-index: 20; inset: 0 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: rgb(15 20 24 / .86);
  border-bottom: 1px solid rgb(238 242 244 / .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--frost);
}
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: .93rem; }
.nav__links a { text-decoration: none; color: var(--steel); transition: color .3s; }
.nav__links a:hover { color: var(--frost); }
.nav__call {
  display: inline-flex; align-items: center; gap: .55em; height: 40px; padding: 0 14px;
  background: var(--gold); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav__call:hover { background: #d8bd8e; }

/* ---------- Héro (inchangé dans sa mécanique) ---------- */
.hero { height: 260vh; position: relative; background: var(--ink); color: var(--frost); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; background: var(--ink); }
.hero__haze, .hero__sharp, .hero__gl, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__haze { background: url(../img/hero-blur.webp) 50% 45% / cover; transition: opacity .9s var(--ease); }
.hero__haze::after { content: ""; position: absolute; inset: 0; background: rgb(214 222 228 / .42); }
.hero__sharp { display: none; background: url(../img/hero-1200.webp) 50% 45% / cover; }
@media (min-width: 900px) { .hero__sharp { background-image: url(../img/hero-2400.webp); } }
.hero__gl { opacity: 0; transition: opacity 1s var(--ease); }
.hero.gl-ready .hero__gl { opacity: 1; }
.hero.no-gl .hero__sharp { display: block; }
.hero.no-gl .hero__haze { z-index: 1; }
.hero__veil {
  z-index: 2;
  background:
    linear-gradient(to top, rgb(15 20 24 / .9) 0%, rgb(15 20 24 / .55) 32%, rgb(15 20 24 / 0) 64%),
    linear-gradient(to right, rgb(15 20 24 / .4) 0%, rgb(15 20 24 / 0) 55%);
}
.hero__copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 8svh, 88px); }
.hero__phrases { position: relative; height: clamp(3.4rem, 2rem + 6vw, 7.4rem); }
.hero__phrase, .hero__title {
  font-stretch: 112%;
  font-weight: 400;
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0; max-width: none;
}
.hero__phrase { position: absolute; left: 0; bottom: 0; opacity: 0; will-change: transform, opacity; text-shadow: 0 1px 30px rgb(15 20 24 / .35); }
.hero__phrase:first-child { opacity: 1; }
.hero__final { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: inherit; opacity: 0; will-change: transform, opacity; }
.hero__sub { color: #d5dde2; font-size: clamp(1.02rem, .92rem + .4vw, 1.2rem); margin: 1em 0 1.7em; max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__hint {
  position: absolute; z-index: 3; left: 50%; top: 46%; translate: -50% -50%;
  display: none; margin: 0; padding: 10px 16px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--frost);
  white-space: nowrap; pointer-events: none;
  background: rgb(15 20 24 / .5); border: 1px solid rgb(238 242 244 / .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .8s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .hero.gl-ready .hero__hint { display: block; } }
.hero__hint.is-gone { opacity: 0; }

/* ---------- 01 Le constat ---------- */
.proof { padding: clamp(88px, 12vw, 168px) 0 clamp(72px, 9vw, 128px); }
.proof__title { max-width: 14ch; margin-bottom: clamp(36px, 5vw, 72px); }
.proof__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.proof__media { margin: 0; }
.ba { position: relative; }
.ba img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.ba__label {
  position: absolute; bottom: 14px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; background: var(--paper); color: var(--text);
}
.ba__label--l { left: 14px; }
.ba__label--r { right: 14px; background: var(--gold); }
.proof__media figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); max-width: 52ch; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; letter-spacing: -.01em; color: var(--text); }
.proof__text > p:not(.lede) { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0 0; border-top: 1px solid var(--rule-strong); }
.facts div { padding: 16px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; font-stretch: 106%; }

/* ---------- 02 Services ---------- */
.services { padding: clamp(80px, 10vw, 150px) 0 clamp(88px, 10vw, 150px); background: var(--paper-2); border-block: 1px solid var(--rule); }
.services__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.services__head .display { max-width: 16ch; }
.services__swipe { display: none; margin: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.services__swipe span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.svc {
  list-style: none; margin: 0 auto; padding: 0; width: var(--wrap);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 2.5vw, 36px);
}
.svc__item { min-width: 0; }
.svc__img { overflow: clip; margin-bottom: 18px; background: var(--paper); }
.svc__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc__item:hover .svc__img img { transform: scale(1.03); }
.svc__n { display: block; padding-top: 12px; margin-bottom: 10px; border-top: 1px solid var(--rule-strong); font-family: var(--mono); font-size: .78rem; color: var(--gold-deep); }
.svc__item p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- 03 Déroulement ---------- */
.steps { padding: clamp(88px, 11vw, 160px) 0; }
.steps__head { margin-bottom: clamp(40px, 5vw, 72px); }
.steps__head .display { max-width: 14ch; }
.steps__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.step {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 64px);
  align-items: start; padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule);
}
.step__n { font-stretch: 112%; font-weight: 300; font-size: clamp(4rem, 2.5rem + 5vw, 8rem); line-height: .78; letter-spacing: -.05em; color: var(--gold-deep); }
.step__body { padding-top: 6px; }
.step__body h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 2rem); letter-spacing: -.025em; }
.step__body p { color: var(--muted); }
.step__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dim {
  display: inline-flex; align-items: baseline; gap: .4em; margin: 6px 0 0;
  padding: 8px 12px; border: 1px solid var(--rule-strong);
  font-family: var(--mono); font-size: .92rem; color: var(--text) !important;
}
.dim span { font-weight: 500; }

/* ---------- 04 Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink); color: var(--frost); }
.contact__media { margin: 0; position: relative; min-height: 100%; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.contact__text { padding: clamp(72px, 9vw, 140px) var(--gutter); align-self: center; }
.contact__title { font-stretch: 112%; font-weight: 400; font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.8rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 .5em; text-wrap: balance; }
.contact__text > p { color: #c3ccd2; }
.contact__phone {
  display: block; margin: .5em 0 .6em; width: fit-content;
  font-stretch: 112%; font-weight: 300; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem);
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gold); text-decoration: none;
}
.contact__phone:hover { color: var(--frost); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__mail { margin: 20px 0 0; font-family: var(--mono); font-size: .85rem; color: var(--steel); }

/* ---------- Pied de page ---------- */
.footer { padding: 48px 0 56px; background: #0a0e11; color: var(--steel); border-top: 1px solid rgb(238 242 244 / .08); }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__logo { width: 130px; height: auto; }
.footer__small { margin: 0; font-size: .82rem; text-align: right; }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }

/* ---------- Apparition au défilement (JS seulement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__call { margin-left: auto; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
  .step__img { grid-column: 2; }
}

@media (max-width: 899px) {
  .proof__grid { grid-template-columns: minmax(0, 1fr); }
  .proof__media { margin-inline: calc(-1 * var(--gutter)); }
  .proof__media figcaption { padding-inline: var(--gutter); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__media { min-height: 0; }
  .contact__media img { position: static; aspect-ratio: 4 / 3; }

  /* Services : carrousel horizontal, la carte suivante dépasse */
  .services__swipe { display: block; }
  .svc {
    width: auto; display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .svc::-webkit-scrollbar { display: none; }
  .svc__item { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
}

@media (max-width: 639px) {
  :root { --nav-h: 56px; }
  body { font-size: 1.03rem; }
  .nav__brand img { height: 21px; }
  .nav__call { height: 38px; padding: 0 12px; font-size: .88rem; }
  .hero { height: 230vh; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .services__head { align-items: start; flex-direction: column; gap: 14px; }
  .services__swipe { align-self: flex-end; margin-top: -4px; }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; }
  .step__n { font-size: 4rem; }
  .step__img { grid-column: 1 / -1; margin-top: 14px; }
  .step__img img { aspect-ratio: 16 / 10; }
  .contact__ctas .btn { flex: 1 1 auto; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .footer__small { text-align: left; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(15 20 24 / .92); border-top: 1px solid rgb(238 242 244 / .1);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .callbar.is-on { transform: none; }
  .callbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 50px; font-weight: 600; text-decoration: none;
  }
  .callbar__call { background: var(--gold); color: var(--ink); }
  .callbar__mail { border: 1px solid rgb(238 242 244 / .35); color: var(--frost); }
}

@media (max-height: 700px) and (min-width: 640px) {
  .hero__phrase, .hero__title { font-size: clamp(2.2rem, 1rem + 4vw, 4.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .svc__img img, .callbar { transition: none; }
  .services__swipe span { animation: none; }
}
