/* Antoine Barreau — portfolio
   Concept : la fiche technique. Le site se lit comme une étiquette produit
   bien faite : une référence, des cotes, des specs, puis le travail. */

:root {
  --paper: #eeefec;
  --ink: #16181c;
  --graphite: #5c6068;
  --rule: #c9cbc6;
  --signal: #ffc21a;
  --night: #0e1013;
  --haze: #b9b4a8;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;

  /* échelle typographique (quarte augmentée ~1.333) */
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.125rem;
  --t-l: 1.5rem;
  --t-xl: 2rem;
  --t-2xl: clamp(2.25rem, 5vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-m);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: var(--ink); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: var(--t-s);
  letter-spacing: .01em;
}
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
.nav a {
  text-decoration: none; font-size: var(--t-s);
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.btn-cta {
  display: inline-block; text-decoration: none;
  background: var(--signal); color: var(--ink) !important;
  padding: .55rem 1rem !important; border: 0 !important;
  font-weight: 700; border-radius: 3px;
}
.btn-cta:hover { background: var(--ink); color: var(--signal) !important; }
body.night .btn-cta:hover { background: #e9e6df; color: var(--ink) !important; }

.brand, .nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .nav .hide-s { display: none; }
}
@media (max-width: 480px) {
  .role { font-size: var(--t-l); }
  .nav { gap: .9rem; }
}

/* ---------- Hero : l'étiquette ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }

.label {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  /* coin découpé, comme un tracé de découpe */
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.label::after { /* le trait du coin découpé */
  content: ""; position: absolute; top: -1px; left: calc(100% - 45px);
  width: 64px; height: 3px; background: var(--ink);
  transform-origin: 0 0; transform: rotate(45deg);
}

.label-main {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-right: 2px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 2.5rem;
  min-width: 0;
  container-type: inline-size;
}
.label-ref {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: var(--t-xs); color: var(--graphite);
  font-variation-settings: "wdth" 85;
}

.name-block { position: relative; padding: 2.75rem 0 0; }
.name {
  margin: 0;
  font-weight: 850;
  font-variation-settings: "wdth" 125;
  font-size: clamp(2.25rem, 14.5cqi, 9.5rem);
  line-height: .86;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.name span { display: block; }

/* cote horizontale au-dessus du nom */
.dim {
  position: absolute; left: 0; right: 0; top: .6rem;
  height: 1.4rem; color: var(--graphite);
  font-size: var(--t-xs); font-variation-settings: "wdth" 85;
}
.dim::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid currentColor;
  transform-origin: left; animation: draw 1.1s .2s cubic-bezier(.6,0,.2,1) both;
}
.dim i { /* les petits taquets aux extrémités */
  position: absolute; top: 0; bottom: 0; width: 1px; background: currentColor;
}
.dim i:first-child { left: 0; } .dim i:last-child { right: 0; }
.dim b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; padding: 0 .6rem; font-weight: 500;
  animation: fade .4s 1.1s both;
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }

.role {
  margin: 1.25rem 0 0;
  font-size: var(--t-xl);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  letter-spacing: -.01em;
  max-width: 28ch;
  line-height: 1.15;
}

.label-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.barcode { height: 54px; width: 190px; color: var(--ink); }
.barcode-txt {
  display: block; font-size: var(--t-xs); letter-spacing: .2em; margin-top: .2rem;
  text-align: center; font-variation-settings: "wdth" 85;
}

.specs { margin: 0; display: grid; align-content: start; }
.specs > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
}
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--graphite); font-size: var(--t-s); font-variation-settings: "wdth" 85; }
.specs dd { margin: 0; font-size: var(--t-s); font-weight: 600; }
.specs .avail {
  background: var(--ink); color: #fff; margin-top: auto;
}
.specs .avail dt { color: #a7abb2; }
.specs .avail dd::before {
  content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%;
  background: var(--signal); margin-right: .5em; vertical-align: .08em;
}

@media (max-width: 860px) {
  .label { grid-template-columns: 1fr; clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); }
  .label::after { display: none; }
  .label-main { border-right: 0; border-bottom: 2px solid var(--ink); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem);
}
.h2 {
  margin: 0; font-size: var(--t-2xl); line-height: 1;
  font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -.02em;
}
.lede { margin: 0; color: var(--graphite); max-width: 52ch; font-size: var(--t-m); }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* Projet vedette */
.feature {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 3vw, 3rem); text-decoration: none;
}
.feature-img { overflow: hidden; background: #dcded9; }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-img img { transform: scale(1.02); }
.feature-body { display: flex; flex-direction: column; gap: 1.25rem; }
.feature h3 {
  margin: 0; font-size: var(--t-xl); line-height: 1.05; font-weight: 800;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
}
.feature p { margin: 0; color: var(--graphite); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: auto; }
.figures div { padding: .9rem .75rem 0 0; }
.figures strong {
  display: block; font-size: var(--t-xl); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 125;
}
.figures span { font-size: var(--t-xs); color: var(--graphite); }
.go {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--signal);
  align-self: flex-start; padding-bottom: .1rem;
}
.feature:hover .go { border-bottom-color: var(--ink); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* Autres clients */
.clients { margin-top: clamp(4rem, 8vw, 7rem); }
.clients-title {
  font-size: var(--t-l); font-weight: 700; margin: 0 0 .25rem;
  font-variation-settings: "wdth" 110;
}
.clients-sub { margin: 0 0 2rem; color: var(--graphite); }
.client {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem 0; border-top: 1px solid var(--rule);
}
.client-name {
  margin: 0; font-size: var(--t-l); font-weight: 800; line-height: 1.1;
  font-variation-settings: "wdth" 125; letter-spacing: -.005em;
}
.client-kind { margin: .35rem 0 1rem; font-weight: 600; font-size: var(--t-s); }
.client p:not([class]) { margin: 0; color: var(--graphite); font-size: var(--t-s); max-width: 44ch; }
.client-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.client-imgs.three { grid-template-columns: repeat(3, 1fr); }
.client-imgs button { aspect-ratio: 4 / 3; }
.client-imgs.three button { aspect-ratio: 1; }
@media (max-width: 760px) {
  .client { grid-template-columns: 1fr; }
  .client-imgs.three { grid-template-columns: 1fr 1fr; }
}

/* Vignettes cliquables (lightbox) */
.zoom {
  all: unset; display: block; cursor: zoom-in; overflow: hidden;
  background: #dcded9; position: relative;
}
.zoom img { width: 100%; height: 100%; object-fit: cover; }
.zoom:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* Bandeau univers perso */
.teaser {
  position: relative; display: block; color: #f1eee8; text-decoration: none;
  background: var(--night); overflow: hidden;
}
.teaser img {
  width: 100%; height: clamp(380px, 62vw, 720px); object-fit: cover;
  opacity: .9; transition: opacity .5s;
}
.teaser:hover img { opacity: 1; }
.teaser-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
  background: linear-gradient(to top, rgba(8,9,11,.85), rgba(8,9,11,0));
}
.teaser-txt .wrap { padding: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.teaser h2 { margin: 0; font-size: var(--t-2xl); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -.02em; }
.teaser p { margin: .75rem 0 0; max-width: 46ch; color: #c9c5bc; }
.teaser .go { border-bottom-color: var(--signal); }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.about-txt p { margin: 0 0 1.1rem; max-width: 60ch; }
.about-txt p:first-child { font-size: var(--t-l); line-height: 1.35; font-weight: 500; }
.skills { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { border: 1px solid var(--ink); padding: .3rem .75rem; font-size: var(--t-s); border-radius: 999px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Accompagnement : des tuiles courtes avec un picto, comme sur une étiquette produit */
.offers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.offers > li { display: flex; }
.offer {
  flex: 1; background: #fff; border: 1px solid var(--rule);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; gap: .6rem;
  text-decoration: none; color: inherit;
}
.offer-ico {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--signal); color: var(--ink); margin-bottom: .6rem;
  transition: background .2s, color .2s;
}
.offer-ico svg { width: 36px; height: 36px; }
.offer h3 {
  margin: 0; font-size: var(--t-l); line-height: 1.15; font-weight: 800;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
}
.offer p { margin: 0; color: var(--graphite); font-size: var(--t-s); max-width: 40ch; }
.offer .go { margin-top: auto; padding-top: .5rem; font-size: var(--t-s); }
.offer.is-link { border-color: var(--ink); }
.offer.is-link:hover .offer-ico { background: var(--ink); color: var(--signal); }
.offer.is-link:hover .go { border-bottom-color: var(--ink); }
.sec-head.stack { grid-template-columns: 1fr; gap: 1.5rem; }
.sec-head.stack .h2 { max-width: 20ch; }
.contact .pricing .contact-list { margin-top: 2rem; }
.contact .pricing .contact-list a { font-size: var(--t-m); font-weight: 600; }

/* Pied de page discret */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap { align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.night .site-foot { border-top-color: #23262c; }
body.night .foot-links a { color: #e9e6df; }
.h2-sub {
  margin: 1rem 0 0; font-size: var(--t-m); font-weight: 600; color: var(--graphite);
  font-variation-settings: "wdth" 100;
}
.offer-cta {
  margin-top: clamp(1rem, 3vw, 2rem);
  background: var(--ink); color: #f2f2ef;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
}
.offer-cta h3 {
  margin: 0 0 .5rem; font-size: var(--t-xl); line-height: 1.1; font-weight: 800;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
}
.offer-cta p { margin: 0; color: #b4b7bd; max-width: 52ch; }
.offer-cta .btn-cta { padding: .9rem 1.35rem !important; white-space: nowrap; }
.offer-cta .btn-cta:hover { background: #fff; }
@media (max-width: 960px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } }

/* Tarifs : une étiquette de prix, même langage que l'étiquette d'accueil */
.pricing {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.pricing .lede { margin-top: 1.25rem; }
.pricing-notes { margin: 1.75rem 0 0; padding: 0; list-style: none; max-width: 56ch; }
.pricing-notes li {
  padding: .9rem 0 .9rem 1.5rem; border-top: 1px solid var(--rule); position: relative;
  font-size: var(--t-s);
}
.pricing-notes li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem;
  width: .55rem; height: .55rem; background: var(--signal);
}
.price-tag {
  position: relative; background: #fff; border: 2px solid var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}
.price-tag::before { /* l'œillet de l'étiquette */
  content: ""; position: absolute; top: 1.25rem; right: 3.25rem;
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink);
}
.price-tag::after {
  content: ""; position: absolute; top: -1px; left: calc(100% - 37px);
  width: 52px; height: 3px; background: var(--ink);
  transform-origin: 0 0; transform: rotate(45deg);
}
.price-label { margin: 0; font-size: var(--t-s); color: var(--graphite); }
.price-prefix { margin: .9rem 0 0; font-size: var(--t-m); font-weight: 600; }
.price-tag .price-prefix + .price { margin-top: .2rem; }
.contact .price-tag { color: var(--ink); }
.contact .pricing { align-items: start; }
.price-tag .pricing-notes { margin-top: 1.25rem; }
.price-tag .pricing-notes li { color: var(--graphite); }
.price { margin: .75rem 0 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price strong {
  font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: .9; font-weight: 850;
  font-variation-settings: "wdth" 125; letter-spacing: -.03em;
}
.price span { font-size: var(--t-l); font-weight: 600; }
.price-mention { margin: .75rem 0 0; font-size: var(--t-xs); color: var(--graphite); }
.price-btn { margin-top: 1.75rem; padding: .85rem 1.25rem !important; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--ink); color: #f2f2ef; }
.contact .lede { color: #a7abb2; }
.contact-mail {
  display: inline-block; text-decoration: none; word-break: break-all;
  font-size: clamp(1.4rem, 4.6vw, 3.75rem); font-weight: 800; line-height: 1.05;
  font-variation-settings: "wdth" 110; letter-spacing: -.02em;
  border-bottom: 4px solid var(--signal); padding-bottom: .2rem;
}
.contact-mail:hover { color: var(--signal); }
.contact-list { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2.5rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid #5c6068; }
.contact-list a:hover { border-bottom-color: var(--signal); }
.contact-list span { display: block; color: #a7abb2; font-size: var(--t-xs); }

/* Pied de page */
.site-foot { padding: 2rem 0; font-size: var(--t-xs); color: var(--graphite); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
main:has(> .contact:last-child) + .site-foot { background: var(--ink); color: #8a8f96; border-top: 1px solid #2a2d33; }

/* ---------- Étude de cas ---------- */
.case-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.crumb { font-size: var(--t-s); color: var(--graphite); margin-bottom: 2rem; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.case-title {
  margin: 0; font-size: clamp(2.5rem, 8vw, 7rem); line-height: .9; font-weight: 850;
  font-variation-settings: "wdth" 125; letter-spacing: -.03em; text-transform: uppercase;
}
.case-sub { font-size: var(--t-l); line-height: 1.35; max-width: 40ch; margin: 1.5rem 0 0; font-weight: 500; }
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2rem, 5vw, 4rem) 0 0;
  border-top: 2px solid var(--ink);
}
.case-meta div { padding: 1rem 1.25rem 0 0; }
.case-meta dt { font-size: var(--t-xs); color: var(--graphite); }
.case-meta dd { margin: .2rem 0 0; font-weight: 600; font-size: var(--t-s); }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }

/* Chiffres clés en haut de l'étude de cas */
.case-figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 clamp(3rem, 6vw, 5rem); background: var(--ink); color: #f2f2ef;
}
.case-figures > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-left: 1px solid #2a2d33;
}
.case-figures > div:first-child { border-left: 0; }
.case-figures dd {
  margin: 0; color: var(--signal);
  font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: .9; font-weight: 850;
  font-variation-settings: "wdth" 125; letter-spacing: -.03em;
}
.case-figures dt { font-size: var(--t-m); color: #c9cbc6; }
@media (max-width: 600px) { .case-figures > div { border-left: 0; border-top: 1px solid #2a2d33; } .case-figures > div:first-child { border-top: 0; } }
.case-cover { margin-bottom: clamp(3rem, 6vw, 5rem); }
.case-cover img { width: 100%; }

.case-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.toc { position: sticky; top: 96px; align-self: start; font-size: var(--t-s); }
.toc p { margin: 0 0 .75rem; font-weight: 700; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc a {
  display: block; text-decoration: none; color: var(--graphite);
  padding: .32rem 0 .32rem 1rem; margin-left: -1px; border-left: 2px solid transparent;
}
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .case-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.chapter { padding: 0 0 clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 90px; }
.chapter h2 {
  margin: 0 0 1rem; font-size: var(--t-xl); line-height: 1.1; font-weight: 800;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
}
.chapter > p { margin: 0 0 2rem; max-width: 64ch; color: #33363c; }
.chapter .zoom img { height: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.grid-2 .zoom img, .grid-3 .zoom img { aspect-ratio: 4 / 3; object-fit: cover; }
.grid-3.square .zoom img { aspect-ratio: 1; }
figure { margin: 0; }
figcaption { font-size: var(--t-xs); color: var(--graphite); padding-top: .5rem; }
.grid-nat { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: .75rem; align-items: start; }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-nat { grid-template-columns: 1fr; }
}
.client-name a { text-decoration: none; }
.client-name a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 5px; }
/* Réserve la place du contenu pendant le chargement */
#hero:empty { min-height: 70vh; }
#travaux:empty, #contenu:empty { min-height: 100vh; }

.next {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  text-decoration: none; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 2px solid var(--ink);
}
.next span { color: var(--graphite); font-size: var(--t-s); }
.next strong { display: block; font-size: var(--t-2xl); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 118; letter-spacing: -.02em; }
.next:hover strong { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* ---------- Univers perso (thème nuit) ---------- */
body.night { background: var(--night); color: #e9e6df; }
body.night .site-head { background: color-mix(in srgb, var(--night) 85%, transparent); border-bottom-color: #23262c; }
body.night .nav a:hover, body.night .nav a[aria-current="page"] { border-bottom-color: #e9e6df; }
body.night .lede, body.night .crumb, body.night figcaption { color: #8f938f; }
body.night .crumb a { border-bottom-color: #33363c; }
body.night .section + .section { border-top-color: #23262c; }
body.night .zoom { background: #16181c; }
body.night .site-foot { color: #6c7078; }
body.night .next { border-top-color: #e9e6df; }
body.night .next span { color: #8f938f; }

.night-hero { position: relative; }
.night-hero img { width: 100%; height: clamp(420px, 70vh, 820px); object-fit: cover; }
.night-hero .wrap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.night-hero h1 {
  margin: 0; color: #16181c; font-size: clamp(2.5rem, 8vw, 7rem); line-height: .9; font-weight: 850;
  font-variation-settings: "wdth" 125; letter-spacing: -.03em; text-transform: uppercase;
  mix-blend-mode: multiply;
}
.night-intro { font-size: var(--t-l); line-height: 1.35; max-width: 46ch; margin: 0; font-weight: 500; }

.gallery-3d { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; }
.gallery-3d .zoom:nth-child(1) { grid-column: span 12; }
.gallery-3d .zoom:nth-child(2) { grid-column: span 12; }
.gallery-3d .zoom:nth-child(3), .gallery-3d .zoom:nth-child(4) { grid-column: span 6; }
.gallery-ill { columns: 3 280px; column-gap: .75rem; }
.gallery-ill .zoom { break-inside: avoid; margin-bottom: .75rem; }
.gallery-ill .zoom img { height: auto; }
@media (max-width: 640px) {
  .gallery-3d .zoom:nth-child(3), .gallery-3d .zoom:nth-child(4) { grid-column: span 12; }
}

/* ---------- Lightbox ---------- */
.lb {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(10, 11, 13, .94); color: #fff;
}
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: fade .2s both; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lb-cap { margin-top: .9rem; font-size: var(--t-s); color: #b4b7bd; text-align: center; padding: 0 1rem; }
.lb-fig { display: flex; flex-direction: column; align-items: center; }
.lb-btn {
  position: fixed; background: none; border: 0; color: #fff; cursor: pointer;
  font: inherit; font-size: var(--t-s); padding: .8rem 1rem;
}
.lb-btn:hover { color: var(--signal); }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-btn svg { width: 28px; height: 28px; display: block; }

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