/* ERGOBOIS — prototype one page. Palette et dimensions centralisees. */
:root {
  --paper: #f6f3ed;
  --white: #fdfbf7;
  --ink: #252c26;
  --muted: #5e655c;
  --olive: #38473b;
  --olive-dark: #29372c;
  --accent: #ac784f;
  --border: #d9d4c9;
  --soft: #ece8df;
  --serif: Georgia,"Times New Roman",serif;
  --sans: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --max: 1320px;
  --pad: clamp(20px,5vw,76px);
  --header: 82px;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 22px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figure,p,h1,h2,h3 {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,button:focus-visible {
  outline: 3px solid #b17a50;
  outline-offset: 5px;
}

.container {
  max-width: var(--max);
  padding-inline: var(--pad);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 99;
  background: var(--white);
  padding: 12px;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,243,237,.97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
}

.brand-mark {
  width: 37px;
  height: 42px;
  color: var(--olive);
}

.brand-name {
  display: block;
  font-weight: 760;
  font-size: 30px;
  letter-spacing: -.065em;
}

.brand-name span {
  font-weight: 450;
}

.brand-name i,.footer-brand span {
  color: var(--accent);
  font-style: normal;
}

.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: .17em;
  font-weight: 700;
  margin-top: 8px;
}

.navigation {
  display: flex;
  gap: clamp(14px,2.4vw,36px);
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.navigation>a:not(.btn):hover,.text-link:hover {
  color: #8e603c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 20px;
  min-height: 51px;
  background: var(--olive);
  color: white;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  transition: background .2s,transform .2s;
  white-space: normal;
}

.btn:hover {
  background: #526451;
  transform: translateY(-2px);
}

.btn span,.text-link span {
  font-size: 18px;
  font-weight: 400;
}

.btn-small {
  padding: 10px 15px;
  min-height: 42px;
  gap: 17px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  color: var(--ink);
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.menu-toggle[hidden] {
  display: none;
}

.menu-lines {
  width: 20px;
  height: 12px;
  border-block: 1.5px solid currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.04fr);
  gap: clamp(28px,5.4vw,82px);
  padding-top: 35px;
  padding-bottom: 38px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 38px;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .19em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #697365;
  margin-bottom: 21px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

h1,h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(44px,5.25vw,79px);
  max-width: 740px;
}

h1 em,h2 em {
  font-weight: 400;
  color: #657561;
}

h1 em {
  display: inline;
}

h2 {
  font-size: clamp(36px,4vw,60px);
}

h3 {
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.hero-text {
  max-width: 470px;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(15px,1.3vw,17px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 650;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  line-height: 1.4;
  transition: color .2s;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 650;
  margin-top: 46px;
}

.line {
  width: 35px;
  height: 1px;
  background: #a49c8b;
}

.media {
  position: relative;
  overflow: hidden;
  background: #d4c6b6;
  isolation: isolate;
}

.media img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.3,1);
}

.hero-visual {
  min-width: 0;
  width: 100%;
  min-height: 530px;
  aspect-ratio: .95;
}

.hero-visual img {
  position: absolute;
  inset: 0;
}

.visual-index {
  position: absolute;
  top: 17px;
  left: 18px;
  background: rgba(251,249,245,.94);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: .13em;
  font-weight: 750;
  padding: 9px 12px;
}

.visual-note {
  position: absolute;
  bottom: 0;
  right: 0;
  display: grid;
  gap: 3px;
  background: var(--olive-dark);
  padding: 18px 24px;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .19em;
}

.value-strip {
  border-block: 1px solid var(--border);
}

.value-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding-block: 22px;
  gap: 16px;
}

.value-inner>span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
}

.value-inner b {
  font-size: 10px;
  font-weight: 500;
  color: #80674f;
}

.section {
  padding-block: clamp(68px,8vw,112px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: clamp(22px,6vw,88px);
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 680px;
}

.section-heading>p,.section-intro {
  color: var(--muted);
  max-width: 470px;
  font-size: 16px;
}

.door-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 445px;
}

.door-visual {
  min-height: 445px;
}

.door-visual img {
  position: absolute;
  inset: 0;
}

.photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  background: rgba(251,249,245,.95);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.feature-copy {
  background: var(--olive);
  color: var(--white);
  padding: clamp(28px,4.2vw,58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.light {
  color: #d7dfd1;
}

.feature-copy h3 {
  font-family: var(--serif);
  font-size: clamp(29px,3vw,41px);
  font-weight: 400;
  line-height: 1.13;
}

.feature-copy>p:not(.eyebrow) {
  font-size: 14px;
  color: #e5e9e1;
  margin-top: 17px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 25px;
}

.detail-list li {
  font-size: 13px;
  border-bottom: 1px solid #ffffff2d;
  padding: 9px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.detail-list li::before {
  content: "+";
  color: #e4c4a4;
}

.light-link {
  color: #fff;
}

.light-link:hover {
  color: #e9c5a1;
}

.section-muted {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
}

.service-card .media {
  aspect-ratio: 1.13;
}

.service-card .media:hover img {
  transform: scale(1.035);
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 22px 0 9px;
}

.service-number {
  font-size: 11px;
  color: #80674f;
  font-weight: 700;
}

.service-head h3 {
  font-size: clamp(19px,2vw,23px);
}

.service-card>p {
  font-size: 14px;
  color: var(--muted);
  padding-left: 29px;
  max-width: 380px;
}

.demo-disclaimer {
  margin-top: 32px;
  font-size: 11px;
  color: var(--muted);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px,8vw,100px);
  align-items: start;
}

.section-intro {
  margin: 22px 0 28px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.steps li {
  display: flex;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}

.steps li>span {
  font-size: 12px;
  color: #80674f;
  font-weight: 700;
  padding-top: 4px;
}

.steps h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.steps p {
  color: var(--muted);
  font-size: 14px;
}

.showroom {
  background: var(--olive-dark);
  color: var(--white);
}

.showroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px,6vw,90px);
  align-items: center;
}

.showroom h2 em {
  color: #c1cfbb;
}

.showroom-copy>p:not(.eyebrow) {
  color: #e1e6dd;
  margin: 24px 0;
  font-size: 15px;
  max-width: 510px;
}

.showroom-copy .showroom-location {
  display: flex;
  gap: 10px;
  align-items: center;
}

.showroom-location span {
  font-size: 23px;
  line-height: 1;
}

.showroom-visual {
  aspect-ratio: 1.17;
}

.btn-light {
  background: var(--paper);
  color: var(--olive-dark);
}

.btn-light:hover {
  background: #dedfd4;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(25px,7vw,100px);
  align-items: center;
}

.contact>div:first-child>p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--muted);
  max-width: 500px;
}

.contact-details {
  padding: clamp(24px,4vw,44px);
  border: 1px solid var(--border);
}

.contact-details .eyebrow {
  margin-bottom: 12px;
}

.phone {
  display: block;
  font: 400 clamp(27px,3.2vw,43px)/1.2 var(--serif);
  letter-spacing: -.04em;
}

.phone:hover {
  color: #8e603c;
}

.contact-details p {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  background: #e8e4da;
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-block: 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px var(--pad);
}

.legal h1 {
  font-size: clamp(36px,6vw,60px);
  margin: 22px 0;
}

.legal h2 {
  font-size: 27px;
  margin: 28px 0 12px;
  letter-spacing: 0;
}

.legal p {
  margin: 12px 0;
}

.legal .draft {
  background: #e9dfcd;
  padding: 16px;
  border-left: 3px solid var(--accent);
}

@media (max-width:1050px) {
  .hero-actions {
    gap: 16px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .navigation {
    gap: 15px;
  }

  .hero-copy {
    padding-block: 28px;
  }

  .brand-name {
    font-size: 27px;
  }

  .hero-foot {
    margin-top: 32px;
  }

}

@media (max-width:800px) {
  :root {
    --header: 70px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .brand-mark {
    width: 30px;
    height: 35px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-sub {
    font-size: 7px;
    margin-top: 5px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }

  .navigation>a:not(.btn) {
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }

  .navigation .btn {
    margin-top: 6px;
  }

  .js .navigation:not(.is-open) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    gap: 22px;
  }

  .hero-copy {
    padding: 13px 0 8px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 1.15;
  }

  .hero-foot {
    margin-top: 29px;
  }

  .value-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

  .section-heading,.door-feature,.approach,.showroom-grid,.contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 28px;
  }

  .door-visual {
    min-height: 0;
    aspect-ratio: 1.35;
  }

  .service-grid {
    gap: 15px;
  }

  .service-head {
    gap: 8px;
    flex-wrap: wrap;
  }

  .service-card>p {
    padding-left: 0;
  }

  .contact-details {
    max-width: 530px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

}

@media (max-width:560px) {
  h1 {
    font-size: clamp(43px,11vw,57px);
  }

  h2 {
    font-size: clamp(35px,8.5vw,46px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    aspect-ratio: .96;
  }

  .visual-note {
    padding: 13px 16px;
    font-size: 9px;
  }

  .value-inner>span {
    font-size: 11px;
    gap: 7px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card .media {
    aspect-ratio: 1.32;
  }

  .service-head {
    margin-top: 16px;
  }

  .section {
    padding-block: 60px;
  }

  .footer-links {
    gap: 15px;
  }

  .showroom-visual {
    aspect-ratio: 1.2;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    transition: none !important;
    animation: none !important;
  }

}

/* V2: gallery, privacy-first map, contact form. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button.btn { border: 0; cursor: pointer; }
.gallery-demo { padding: 12px 16px; background: var(--soft); border-left: 2px solid var(--accent); color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.gallery-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filters button { border: 1px solid var(--border); padding: 8px 14px; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; }
.gallery-filters button[aria-pressed="true"] { background: var(--olive); color: #fff; border-color: var(--olive); }
.gallery-filters button:hover:not([aria-pressed="true"]) { background: var(--soft); }
.gallery-count { color: var(--muted); font-size: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 30px 22px; }
.gallery-item { grid-column: span 2; min-width: 0; }
.gallery-grid:not(.is-filtered) .gallery-item:nth-child(-n+2) { grid-column: span 3; }
.gallery-link { display: block; position: relative; aspect-ratio: 1.26; }
.gallery-grid:not(.is-filtered) .gallery-item:nth-child(-n+2) .gallery-link { aspect-ratio: 1.7; }
.gallery-link:hover img { transform: scale(1.035); }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); color: var(--olive-dark); font-size: 24px; }
.gallery-item figcaption { padding: 12px 0 0; }
.gallery-item figcaption span { font-size: 10px; font-weight: 650; letter-spacing: .12em; color: var(--muted); }
.gallery-item h3 { font-size: 22px; margin-top: 4px; }
.gallery-dialog { border: 0; padding: 18px; width: min(94vw, 1000px); max-width: 100%; max-height: 94dvh; overflow: auto; background: var(--olive-dark); color: var(--white); }
.gallery-dialog::backdrop { background: rgba(15,20,16,.84); }
.lightbox-open { overflow: hidden; }
.lightbox-top,.lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox-top { margin-bottom: 10px; }
.lightbox-bottom { margin-top: 12px; }
.lightbox-top button,.lightbox-bottom button { border: 1px solid #879488; color: var(--white); background: transparent; padding: 9px 14px; cursor: pointer; }
.lightbox-bottom button { font-size: 20px; min-width: 44px; }
.lightbox-bottom button:disabled { opacity: .35; cursor: default; }
.lightbox-media { display: grid; place-items: center; background: #202b23; }
.lightbox-media img { width: auto; max-width: 100%; max-height: 67dvh; object-fit: contain; }
.lightbox-caption { text-align: center; min-width: 0; }
.lightbox-caption h3 { font-size: clamp(17px,3vw,24px); }
.lightbox-caption span { font-size: 12px; color: #d3dbd1; }
.location-section { padding-block: clamp(36px,6vw,78px); }
.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(28px,6vw,80px); }
.location-copy h2 { font-size: clamp(34px,4.2vw,56px); }
.location-copy>p:not(.eyebrow) { margin: 20px 0; color: var(--muted); }
.map-component { min-width: 0; }
.map-placeholder { min-height: 340px; padding: 24px; display: grid; place-items: center; background: #d9e0d4; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); }
.map-placeholder::before { content: ''; position: absolute; inset: -50%; z-index: -1; opacity: .45; transform: rotate(-24deg); background: repeating-linear-gradient(90deg,transparent 0 70px,#f9f8f2 70px 82px,transparent 82px 150px), repeating-linear-gradient(0deg,transparent 0 105px,#f9f8f2 105px 118px,transparent 118px 210px); }
.map-panel { max-width: 420px; padding: 22px; text-align: center; background: var(--white); color: var(--olive-dark); border: 1px solid var(--border); }
.map-panel h3 { font-size: 26px; margin: 5px 0 10px; }
.map-panel p { font-size: 12px; color: var(--muted); }
.map-panel p a,.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.map-enable { margin-top: 17px; text-align: left; }
.map-frame iframe { border: 0; width: 100%; height: 340px; display: block; }
.map-disable { border: 0; background: transparent; font-size: 12px; color: var(--olive-dark); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.contact-expanded { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: start; gap: clamp(24px,5vw,64px); }
.contact-intro .contact-details { margin-top: 32px; }
.form-card { padding: clamp(20px,3vw,36px); border: 1px solid var(--border); background: var(--white); min-width: 0; }
.form-card h3 { font-size: clamp(25px,3vw,34px); }
.form-hint { font-size: 12px; color: var(--muted); margin: 9px 0 24px; }
.contact-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 13px; font-weight: 650; }
.form-field input,.form-field select,.form-field textarea { font: inherit; font-size: 16px; width: 100%; min-width: 0; border: 1px solid #b5b7ad; background: var(--paper); color: var(--ink); padding: 11px 12px; border-radius: 0; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field :is(input,textarea,select):focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.form-privacy { color: var(--muted); font-size: 12px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 14px; margin: 0 0 20px; font-size: 14px; border-left: 3px solid var(--olive); background: #e5ecdf; }
.form-notice.error { border-color: #9c462e; background: #f3e4da; }
.form-notice ul { margin: 8px 0 0; padding-left: 20px; }
.contact-form .btn { justify-self: start; }
@media (max-width: 1020px) { .navigation { gap: 12px; font-size: 12px; } }
@media (max-width: 900px) { .header-inner { gap: 12px; } .navigation .btn { padding-inline: 9px; gap: 7px; } }
@media (max-width: 800px) { .location-grid,.contact-expanded { grid-template-columns: 1fr; } .gallery-grid { gap: 20px 12px; } .gallery-item,.gallery-grid:not(.is-filtered) .gallery-item:nth-child(-n+2) { grid-column: span 3; } .gallery-grid:not(.is-filtered) .gallery-item:nth-child(-n+2) .gallery-link { aspect-ratio: 1.26; } }
@media (max-width: 560px) { .gallery-item,.gallery-grid:not(.is-filtered) .gallery-item:nth-child(-n+2) { grid-column: span 6; } .form-grid { grid-template-columns: 1fr; } .map-placeholder { padding: 14px; } .map-panel { padding: 18px 14px; } .map-frame iframe { height: 320px; } .gallery-dialog { padding: 12px; } }
