/* ==========================================================================
   DSM – Décolletage Sur Métaux · feuille de style
   Charte : anthracite + rouge DSM, Rubik. Motif : triangle rouge du logo.
   ========================================================================== */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/rubik-latin.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;
}

/* Police de repli aux mêmes proportions que Rubik : évite les sauts de mise en page au chargement. */
@font-face {
  font-family: "Rubik Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  ascent-override: 89.06%;
  descent-override: 23.81%;
  line-gap-override: 0%;
  size-adjust: 104.98%;
}

:root {
  --ink: #19191b;
  --ink-2: #222225;
  --ink-3: #2d2d31;
  --text: #2b2c2f;
  --muted: #5d6167;
  --muted-d: #a8acb3;
  --line: #e2e4e8;
  --line-d: rgba(255, 255, 255, .13);
  --mist: #f3f4f6;
  --white: #fff;
  --red: #c4161c;
  --red-h: #a31117;
  --red-l: #f2392f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 25, .05), 0 12px 32px -12px rgba(20, 20, 25, .18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 20, 25, .35);
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 2.6rem + 4.5vw, 7rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Rubik", "Rubik Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.35rem + 3.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.028em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.65rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-h); }
strong { font-weight: 600; color: inherit; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red-l); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem; background: var(--red); color: #fff; font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 0; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Typo utilitaire ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .65em;
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before {
  content: ""; width: .8em; height: .62em; flex: none;
  background: linear-gradient(180deg, var(--red-l), var(--red));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.kicker--light { color: #fff; }
.accent { color: var(--red-l); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: .15em; }
.link-arrow .icon { transition: transform .25s var(--ease); color: var(--red); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section-more { margin: 2.5rem 0 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3.1rem; padding: .8rem 1.65rem;
  font: inherit; font-size: .97rem; font-weight: 600; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.2rem; font-size: .9rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(196, 22, 28, .8); }
.btn--red:hover { background: var(--red-h); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(25, 25, 27, .97);
  border-bottom: 1px solid var(--line-d);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.site-nav__list { display: flex; gap: .25rem; list-style: none; }
.site-nav__list a {
  position: relative; display: block; padding: .5rem .85rem;
  color: #d9dbdf; font-weight: 500; font-size: .97rem; text-decoration: none; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
  background: var(--red-l); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__list a:hover { color: #fff; }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__extra { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-phone .icon { color: var(--red-l); }
.header-phone:hover { color: var(--red-l); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem;
  padding: .55rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; color: #fff;
  background: transparent; border: 1px solid var(--line-d); border-radius: 999px; cursor: pointer;
}
.nav-toggle .icon { width: 1.3em; height: 1.3em; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1100px) {
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-phone .icon { width: 1.4em; height: 1.4em; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--ink); border-bottom: 1px solid var(--line-d);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding: .95rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--line-d); border-radius: 0; }
  .site-nav__list a::after { left: 0; right: auto; width: 2.5rem; bottom: -1px; }
  .site-nav__extra { flex-direction: column; align-items: stretch; gap: 1rem; }
  .header-phone { justify-content: center; padding: .7rem; border: 1px solid var(--line-d); border-radius: 999px; }
  .header-phone span { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .header-phone .icon { width: 1.15em; height: 1.15em; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: #e9eaec;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 20, 22, .94) 0%, rgba(20, 20, 22, .82) 38%, rgba(20, 20, 22, .35) 72%, rgba(20, 20, 22, .15) 100%),
    linear-gradient(0deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, 0) 45%);
}
.hero__inner { padding-block: clamp(4rem, 9vh, 8rem) clamp(2.5rem, 6vh, 4.5rem); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .45em; }
.hero h1 .accent { display: block; }
.hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #d4d6da; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__toggle {
  position: absolute; right: var(--gutter); top: 1.25rem; z-index: 2;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  color: #fff; background: rgba(20, 20, 22, .55); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; cursor: pointer;
  transition: background-color .2s;
}
.hero__toggle:hover { background: rgba(20, 20, 22, .85); }
.hero__toggle .icon--play { display: none; }
.hero__toggle[aria-pressed="true"] .icon--play { display: block; }
.hero__toggle[aria-pressed="true"] .icon--pause { display: none; }
.hero__specs { background: rgba(20, 20, 22, .74); border-top: 1px solid var(--line-d); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.specs > div { padding: 1.35rem 1.5rem; border-left: 1px solid var(--line-d); }
.specs > div:first-child { border-left: 0; padding-left: 0; }
.specs dt { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin-bottom: .2rem; }
.specs dd { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.specs dd small { font-size: .55em; font-weight: 500; color: #cfd1d5; letter-spacing: 0; }
@media (max-width: 760px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div { padding: 1rem 1rem; border-left: 0; border-top: 1px solid var(--line-d); }
  .specs > div:nth-child(-n+2) { border-top: 0; }
  .specs > div:nth-child(odd) { padding-left: 0; }
  .specs > div:nth-child(even) { border-left: 1px solid var(--line-d); }
  .specs dt { letter-spacing: .1em; }
  .specs dd small { display: block; font-size: .5em; margin-top: .1rem; }
  .hero::before { background: linear-gradient(0deg, rgba(20, 20, 22, .95) 0%, rgba(20, 20, 22, .78) 55%, rgba(20, 20, 22, .55) 100%); }
}

/* ---------- Héros des pages intérieures ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #d4d6da; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 20, 22, .95) 0%, rgba(20, 20, 22, .82) 50%, rgba(20, 20, 22, .45) 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: var(--gutter); bottom: 0; width: clamp(60px, 9vw, 120px); aspect-ratio: 1.3;
  background: linear-gradient(180deg, var(--red-l), var(--red)); clip-path: polygon(0 100%, 100% 100%, 50% 0); opacity: .9;
}
.page-hero__inner { padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.8rem); }
.page-hero h1 .accent { display: block; }
.page-hero .lead { max-width: 58ch; margin: 0; color: #cfd1d5; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #c9ccd1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head__text { margin: 0; color: var(--muted); max-width: 56ch; }
.section--dark .section-head__text { color: var(--muted-d); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Savoir-faire (cartes) ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.service {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.4rem; }
.service__num {
  position: absolute; top: -1.35rem; left: 1.6rem;
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem;
  font-weight: 700; font-size: .95rem; color: #fff; background: var(--red); border-radius: 50%;
  border: 3px solid #fff; font-variant-numeric: tabular-nums;
}
.service h3 { margin-top: .9rem; }
.service p { color: var(--muted); font-size: 1rem; }
.service__spec {
  margin: auto 0 0; padding-top: .9rem; border-top: 1px dashed #cfd2d7;
  font-size: .86rem !important; font-weight: 500; color: var(--ink) !important; font-variant-numeric: tabular-nums;
}
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ---------- Bloc image + texte ---------- */
.split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split__media, .feature__media { position: relative; }
.split__media img, .feature__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split__body > p { color: var(--muted-d); }
.corner { position: absolute; width: 56px; height: 56px; pointer-events: none; }
.corner--tl { top: -14px; left: -14px; border-top: 3px solid var(--red-l); border-left: 3px solid var(--red-l); border-top-left-radius: 6px; }
.corner--br { right: -14px; bottom: -14px; border-right: 3px solid var(--red-l); border-bottom: 3px solid var(--red-l); border-bottom-right-radius: 6px; }
@media (max-width: 860px) {
  .split__inner { grid-template-columns: 1fr; }
  .corner { width: 40px; height: 40px; }
  .corner--tl { top: -10px; left: -10px; }
  .corner--br { right: -10px; bottom: -10px; }
}

.checklist { list-style: none; display: grid; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: #e4e6e9; }
.checklist .icon { margin-top: .2em; color: #fff; background: var(--red); border-radius: 50%; padding: .2em; width: 1.4em; height: 1.4em; }
.checklist strong { color: #fff; }

/* ---------- Matières ---------- */
.materials { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.material { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--ink); }
.material img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.material:hover img { transform: scale(1.06); }
.material::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 22, .92) 0%, rgba(20, 20, 22, .35) 45%, rgba(20, 20, 22, 0) 70%); }
.material__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem 1.1rem; color: #d4d6da; }
.material__label strong { display: block; color: #fff; font-size: 1.08rem; font-weight: 600; line-height: 1.25; margin-bottom: .2rem; }
.material__label span { display: block; font-size: .84rem; line-height: 1.4; }
@media (max-width: 1100px) { .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); } .material { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } .material { aspect-ratio: 1; } }

/* ---------- Secteurs (accueil) ---------- */
.sectors--home { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sector-card a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--ink); text-decoration: none; }
.sector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.sector-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 22, .88) 0%, rgba(20, 20, 22, .1) 60%); transition: background-color .3s; }
.sector-card a:hover img { transform: scale(1.06); }
.sector-card__name {
  position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1.1rem;
  display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: 1.12rem; line-height: 1.25;
}
.sector-card__name::before { content: ""; width: .75em; height: .58em; flex: none; background: var(--red-l); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@media (max-width: 900px) { .sectors--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sectors--home { grid-template-columns: 1fr; } }

/* ---------- Secteurs (page) ---------- */
.sectors:not(.sectors--home) { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.sector { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: box-shadow .3s, border-color .3s; }
.sector:target { border-color: var(--red); box-shadow: 0 0 0 3px rgba(196, 22, 28, .18); }
.sector:hover { box-shadow: var(--shadow); }
.sector__media { aspect-ratio: 3 / 2; overflow: hidden; }
.sector__media img { width: 100%; height: 100%; object-fit: cover; }
.sector__body { padding: 1.5rem 1.6rem 1.7rem; }
.sector__body h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.sector__body p { margin: 0; color: var(--muted); font-size: 1rem; }
.sector--more { justify-content: center; background: var(--mist); border-style: dashed; border-color: #c9ccd2; }
.sector--more p { margin-bottom: 1.25rem; }
@media (max-width: 1024px) { .sectors:not(.sectors--home) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sectors:not(.sectors--home) { grid-template-columns: 1fr; } }

.europe { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; }
.europe h2 { margin-bottom: .4rem; }
.europe p { margin: 0; color: var(--muted-d); }
.europe__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--ink-3); color: var(--red-l); }
.europe__icon .icon { width: 2.4rem; height: 2.4rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .5rem 1.05rem; border-radius: 999px; font-weight: 500; font-size: .95rem; background: var(--mist); color: var(--ink); }
.chips--dark li { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.europe .chips { max-width: 360px; justify-content: flex-end; }
@media (max-width: 960px) { .europe { grid-template-columns: 1fr; } .europe .chips { justify-content: flex-start; max-width: none; } }

/* ---------- Galerie ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.gallery__item figure { margin: 0; }
.gallery__item a { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--mist); transition: transform .4s var(--ease), box-shadow .4s; }
.gallery__item a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__item figcaption { padding: .7rem .15rem 0; font-size: .95rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.gallery__item figcaption span { display: block; margin-top: .15rem; font-size: .82rem; font-weight: 400; color: var(--muted); }
.gallery__item[hidden] { display: none; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.25rem; }
.filter {
  display: inline-block; text-decoration: none; line-height: 1.4;
  padding: .55rem 1.1rem; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid #cfd2d7; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active, .filter.is-active:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 3rem);
  border: 0; background: rgba(15, 15, 17, .96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.lightbox::backdrop { background: rgba(15, 15, 17, .8); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.lightbox__figure img { max-height: calc(100dvh - 9rem); width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { font-weight: 500; color: #d4d6da; text-align: center; }
.lightbox button { display: grid; place-items: center; width: 3rem; height: 3rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; }
}

/* ---------- Bandeau stock (accueil) ---------- */
.stock { padding-block: 0 var(--section); }
.stock__inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, #fff 0%, var(--mist) 100%);
}
.stock h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.stock p { margin: 0; color: var(--muted); max-width: 64ch; }
.stock .kicker { margin-bottom: .6rem; }
.stock__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 18px; background: var(--ink); color: #fff; }
.stock__icon .icon { width: 2.2rem; height: 2.2rem; }
.section--mist + .stock { padding-top: var(--section); }
@media (max-width: 860px) { .stock__inner { grid-template-columns: 1fr; } }

/* ---------- Appel à l'action ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-2); color: #c9ccd1; }
.cta-band::before {
  content: ""; position: absolute; left: -6%; top: -40%; width: 40%; aspect-ratio: 1.15;
  background: linear-gradient(180deg, rgba(242, 57, 47, .22), rgba(196, 22, 28, 0)); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem 4rem; align-items: center; padding-block: clamp(3.5rem, 6vw, 5rem); }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--muted-d); font-size: .97rem; border-top: 3px solid var(--red); }
.site-footer a { color: #e4e6e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; gap: 2.5rem 3rem; padding-block: 4rem 3rem; }
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__title { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer__links { list-style: none; display: grid; gap: .45rem; }
.site-footer__contact p, .site-footer__hours { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 .75rem; }
.site-footer .icon { margin-top: .25em; color: var(--red-l); }
.site-footer__access { margin: 1rem 0 0; font-size: .9rem; }
.labels { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.label-img { height: 64px; width: auto; border-radius: 8px; background: #fff; padding: .35rem .5rem; }
.label-img--ff { padding: .35rem .6rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line-d); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 1.5rem; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page Savoir-faire ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .55rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: .45rem .9rem; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: 999px; }
.subnav a:hover { color: var(--ink); background: var(--mist); }
.subnav a.is-active { color: #fff; background: var(--ink); }
.page--inner .subnav + .section { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 4.5rem); }

.feature-rows { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__body > p { color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

.cartouche { margin: 1.75rem 0 0; border: 1.5px solid var(--ink); border-radius: 4px; font-variant-numeric: tabular-nums; }
.cartouche > div { display: grid; grid-template-columns: minmax(8rem, 38%) 1fr; border-top: 1px solid #c9ccd2; }
.cartouche > div:first-child { border-top: 0; }
.cartouche dt { padding: .65rem .9rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid #c9ccd2; background: var(--mist); display: flex; align-items: center; }
.cartouche dd { margin: 0; padding: .65rem .9rem; font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-d); border-radius: var(--radius); }
.machines { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.machines th, .machines td { padding: 1.1rem 1.4rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line-d); }
.machines thead th { border-top: 0; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); background: var(--ink-2); }
.machines tbody th { color: #fff; font-weight: 600; width: 26%; }
.machines td { color: #c9ccd1; }
.machines__cap { color: #fff !important; font-weight: 600; white-space: nowrap; }
.machines tbody tr:hover { background: rgba(255, 255, 255, .03); }
.machine-photos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.machine-photos li { display: grid; place-items: center; padding: 1.25rem; background: #fff; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.machine-photos img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 760px) { .machine-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step { position: relative; padding: 1.75rem 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step__num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
  font-weight: 700; color: var(--red); border: 2px solid var(--red); border-radius: 50%; font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Page Entreprise ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 4rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.intro-grid h2 { max-width: 16ch; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.prose { color: var(--text); }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }

.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; padding-top: 2.75rem; }
.timeline::before { content: ""; position: absolute; top: .9rem; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--line) 85%); }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; top: -2.45rem; left: 0; width: 1.3rem; height: 1rem;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.timeline__year { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; padding: 0 0 0 2.25rem; gap: 2rem; }
  .timeline::before { top: 0; bottom: 0; left: .6rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--red), var(--line)); }
  .timeline__item::before { top: .45rem; left: -2.25rem; }
}

.values { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 1.9rem 1.6rem; background: #fff; border-radius: var(--radius); border-top: 3px solid var(--red); box-shadow: 0 1px 2px rgba(20, 20, 25, .04); }
.value__num { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; color: var(--red); margin-bottom: 1.1rem; }
.value h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.relance { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); }
.relance__logo { width: min(280px, 60vw); }
.relance h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.relance p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .relance { grid-template-columns: 1fr; } }

/* ---------- Page Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: clamp(1.75rem, 3vw, 2.4rem); background: var(--ink); color: #c9ccd1; border-radius: calc(var(--radius) + 4px); }
@media (max-width: 960px) { .contact-card { position: static; } }
.contact-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { margin-top: .2em; width: 1.3em; height: 1.3em; color: var(--red-l); }
.contact-list a { color: #fff; }
.contact-list__big { font-size: 1.45rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.contact-card__access { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-d); }
.contact-card__access h3 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }
.contact-card__access p { font-size: .97rem; margin-bottom: 1.25rem; }

.form-panel { scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-panel__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .5rem; }
.form-panel__intro { color: var(--muted); margin-bottom: 1.75rem; }
.req { color: var(--red); font-weight: 600; }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form__row--3 { grid-template-columns: 1.3fr .8fr 1.6fr; }
@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cdd0d5; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319191b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.1rem; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9da1a8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(196, 22, 28, .16); }
.field [aria-invalid="true"] { border-color: var(--red) !important; background-color: #fff8f8; }
.field__hint { margin: 0; font-size: .86rem; color: var(--muted); }
.field__error { margin: 0; font-size: .9rem; font-weight: 500; color: var(--red); }
.field--file { padding: 1.1rem 1.2rem; border: 1.5px dashed #c3c7cd; border-radius: var(--radius-sm); background: var(--mist); }
.field--file label { display: inline-flex; align-items: center; gap: .5rem; }
.field--file input[type="file"] { font: inherit; font-size: .93rem; color: var(--muted); max-width: 100%; }
.field--file input[type="file"]::file-selector-button { margin-right: .9rem; padding: .5rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }
.field--check { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.field--check input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; font-size: .95rem; color: var(--text); }
.field--check .field__error { grid-column: 2; }
.form__submit { padding-top: .25rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); margin-bottom: 1.75rem; }
.notice:focus { outline: none; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { padding-left: 1.2rem; }
.notice--err { background: #fff3f3; border: 1px solid #f0b9bb; border-left: 4px solid var(--red); color: #5a1013; }
.notice--err a { color: #8e0f14; }
.notice--ok { padding: 1.75rem; background: #f1faf4; border: 1px solid #b9e2c6; border-left: 4px solid #1f8a4c; color: #173d26; }
.notice--ok > .icon { width: 2.2rem; height: 2.2rem; padding: .35rem; color: #fff; background: #1f8a4c; border-radius: 50%; }
.notice--ok h2 { font-size: 1.4rem; color: #173d26; margin-bottom: .5rem; }

.map { line-height: 0; background: var(--mist); }
.map__frame { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Pages légales / 404 ---------- */
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
.notfound { text-align: center; padding-block: clamp(5rem, 10vw, 9rem); }
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 1rem; }
.notfound .lead { color: var(--muted); }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__media, .hero__toggle, .cta-band, .map, .filters, .subnav { display: none !important; }
  .hero, .page-hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--dark h2 { color: #000 !important; }
}
