@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_pqTXtHA-Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKd3vXDXbtM.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --black: #10100f;
  --panel: #181715;
  --line: #42392e;
  --gold: #e2c597;
  --paper: #fbf5ec;
  --muted: #c8beb1;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font: 500 1em/1.12 var(--serif); text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6vw, 6.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.7rem; }
p { color: var(--muted); }
em { color: var(--gold); }
:focus-visible { outline: 2px solid #ffe6b0; outline-offset: 5px; }
.shell { width: min(1280px, calc(100% - 10vw)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--paper); color: var(--black); padding: .5rem 1rem; }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 90px; }
.brand { color: var(--gold); text-decoration: none; display: inline-grid; justify-items: center; width: fit-content; }
.brand span { font: 500 2.4rem/.95 var(--serif); letter-spacing: -.07em; padding-right: .08em; }
.brand small { font-size: .65rem; letter-spacing: .22em; margin-top: .5rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.7rem); }
nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--gold); text-decoration: underline; text-underline-offset: .5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.3rem; background: var(--gold); border: 1px solid var(--gold); color: #17130f; font: 700 .92rem/1.25 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { background: #f2ddbb; border-color: #f2ddbb; }
.button.small { min-height: 43px; }
.button.outline { background: transparent; color: var(--gold); border-color: #8d775c; }
.button.outline:hover { background: #28211a; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 6.5rem); padding-block: clamp(2.5rem, 6vw, 6.25rem); }
.hero figure { position: relative; }
.hero figure img { aspect-ratio: 1.13; border: 1px solid var(--line); object-position: 54% center; }
.hero figcaption { position: absolute; bottom: 0; left: 0; background: #151311; padding: .5rem .9rem; color: var(--gold); font-size: .87rem; }
.hero-copy .eyebrow, .intro .eyebrow { margin-bottom: 1.15rem; }
.eyebrow { color: var(--gold); font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.lead { margin-block: 1.5rem 1.8rem; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.section.first { border-top: none; padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-head .eyebrow, .split .eyebrow, .contact aside .eyebrow { margin-bottom: .7rem; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.35rem; }
.card { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.card img { aspect-ratio: 1.72; }
.card > div { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 1.35rem; }
.card h3 { margin-block: .45rem .65rem; }
.card .textlink { margin-top: auto; padding-top: 1rem; }
.textlink { color: var(--gold); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.textlink:hover { color: var(--paper); }
.back { display: inline-block; margin-bottom: 1.65rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); }
.split img { aspect-ratio: 1.6; }
.split p:not(.eyebrow) { margin-block: 1rem 1.35rem; }
.band { background: #201a14; border-block: 1px solid var(--line); }
.band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; padding-block: 3rem; }
.band p { margin-top: .65rem; }
.footer { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 1.5rem; padding-block: 2.5rem; color: var(--muted); }
.footer a:not(.brand), aside a { text-underline-offset: .22em; overflow-wrap: anywhere; }
.footer strong { color: var(--paper); }
.intro { padding-block: clamp(2.4rem, 6vw, 5rem) 2rem; }
.intro .lead { max-width: 46rem; }
.detail h1 { font-size: clamp(3rem, 5.5vw, 5.85rem); }
.detail figure img { aspect-ratio: 1.43; }
.features { margin-top: 1.6rem; }
.features article { border-top: 1px solid #8d775c; padding: 1.2rem .5rem 0 0; }
.features p, aside p + p { margin-top: .85rem; }
.contact { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1.5rem; }
.contact form, .contact aside { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--panel); }
.contact aside { align-self: start; }
.contact h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); margin-bottom: .8rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-block: 1.25rem; }
.fields label { min-width: 0; display: grid; gap: .3rem; }
.wide { grid-column: 1 / -1; }
input, select, textarea { color: var(--paper); background: var(--black); border: 1px solid #7d6b56; border-radius: 0; min-width: 0; width: 100%; min-height: 46px; padding: .55rem .65rem; font: inherit; }
textarea { resize: vertical; }
#email-help { margin-bottom: 1rem; }
#devis-status:not(:empty) { margin-top: .8rem; }
@media (max-width: 900px) {
  .header { flex-wrap: wrap; padding-block: .85rem; }
  .header nav { order: 1; width: 100%; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  nav { column-gap: 1rem; row-gap: .45rem; }
  .header { gap: .8rem; }
  .hero, .split, .grid, .footer { grid-template-columns: 1fr; }
  .hero { gap: 1.55rem; }
  .hero figure img { aspect-ratio: 1.28; }
  .fields { grid-template-columns: 1fr; }
  .footer { gap: 1rem; }
}

/* Portrait photos of the YSH equipment */
.hero figure:has(.machine-photo) { width: min(100%, 33rem); justify-self: center; }
.hero figure img.machine-photo { aspect-ratio: 4 / 5; object-position: center 56%; }
.card img.machine-photo { object-position: center 59%; }
.split img.machine-photo { aspect-ratio: 4 / 5; max-width: 27rem; margin-inline: auto; object-position: center 56%; }

.photo-grid { margin-top: 1.5rem; }
.photo-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid figure { display: grid; align-content: start; gap: .6rem; }
.photo-grid img { aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.photo-grid figcaption { color: var(--muted); }
@media (max-width: 640px) {
  .photo-grid-pair { grid-template-columns: 1fr; }
}
