@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #f7f6fa;
  --surface-2: #efedf4;
  --line: #e4e1ea;
  --line-strong: #cfc9da;
  --text: #111014;
  --muted: #5b5566;
  --violet: #8b5cf6;
  --violet-deep: #6d3fd6;
  --violet-text: #6d3fd6;
  --green: #4ade80;
  --green-deep: #22c55e;
  --green-text: #15803d;
  --ink: #07140c;
  --danger: #b4232f;
  --field: #8f879f;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --header: 76px;
  --shadow: 0 14px 34px rgba(30, 20, 60, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, .35); color: var(--text); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--violet);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}
.sec { padding: 28px 0; position: relative; z-index: 2; }
.sec-services,
.sec-features,
.sec-categories,
.sec-gallery,
.sec-story,
.sec-faq,
.sec-quote,
.sec-legal,
.sec-trust,
.sec-machines { background: var(--surface); }
.site-header, .site-footer, .nav-mobile { position: relative; z-index: 5; }

h1, h2, .title, .brand-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: .96;
  margin: 0;
}
h1, .hero .title { font-size: clamp(46px, 6.4vw, 88px); }
h2, .sec .title { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
h3 { margin: 0; font-size: 1.05rem; }
p { margin: 0; }
.lede, .feat-text, .step-text, .svc-text, .gal-text { color: var(--muted); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--violet-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--violet-text);
  border-radius: 2px;
}
.hero-home .eyebrow { gap: 32px; }
.hero-home .eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-text);
  box-shadow: 9px 0 0 var(--line-strong), 18px 0 0 var(--green-deep);
}
.accent { color: var(--violet-text); }
.accent.is-green, .subtitle.is-green { color: var(--green-text); }
.hero-service .title .accent { display: block; margin-top: .08em; font-style: italic; font-weight: 500; }
.rule {
  display: block;
  width: 72px;
  height: 2px;
  margin: 14px 0 16px;
  background: linear-gradient(90deg, var(--violet), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  height: 48px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn .arr, .btn .ico { flex: none; }
.btn-violet {
  color: #fff;
  background: linear-gradient(180deg, #9a6cf8 0%, var(--violet-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-green {
  color: var(--ink);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
}
.btn-outline { border-color: var(--violet); background: transparent; }
.btn-outline:hover { background: rgba(139, 92, 246, .1); }
.btn-violet:hover { filter: brightness(1.06); }
.btn-green:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .65; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header);
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.logo { width: auto; height: 40px; color: var(--violet-text); flex: none; display: block; }
.brand { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand-sign {
  margin-top: 3px;
  color: var(--violet-text);
  font-size: 8px;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.nav-desk {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}
.nav-desk > a, .sub-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-desk > a:hover, .sub-btn:hover, .nav-desk > a.is-active, .sub-btn.is-active { color: var(--text); }
.nav-desk > a.is-active::after, .sub-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
}
.sub-btn { display: inline-flex; align-items: center; gap: 5px; }
.has-sub { position: relative; }
.nav-desk .submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-desk .has-sub.is-open .submenu,
.nav-desk .has-sub:hover .submenu,
.nav-desk .has-sub:focus-within .submenu { display: grid; }
.submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.submenu a:hover { background: rgba(139, 92, 246, .12); }
.nav-cta { flex: none; height: 44px; min-height: 44px; }
.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex: none;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: 18px 22px 32px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-close {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.nav-mobile-links > a, .nav-mobile .sub-btn {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
}
.nav-mobile .sub-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-mobile .submenu { display: none; padding: 0 0 8px 8px; }
.nav-mobile .has-sub.is-open .submenu { display: grid; }
.nav-mobile .submenu a { font-family: var(--sans); font-size: 16px; color: var(--muted); padding: 8px 0; }
.nav-cta-mobile { width: 100%; margin-top: auto; }
body.menu-open { overflow: hidden; }

.hero-home, .hero-service {
  display: grid;
  align-items: center;
  gap: 20px;
}
.hero-home {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
  grid-template-areas: "copy visual" "actions visual";
  min-height: 520px;
}
.hero-home .hero-copy { grid-area: copy; min-width: 0; align-self: end; }
.hero-home .hero-visual { grid-area: visual; }
.hero-home .hero-actions { grid-area: actions; align-self: start; }
.hero-home .title {
  font-size: clamp(2.85rem, 8.5vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: .88;
  max-width: 100%;
}
.hero-service {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  min-height: 560px;
  align-items: stretch;
  gap: 8px;
}
.hero-service .hero-copy { min-width: 0; align-self: center; padding: 28px 0; }
.hero-service .hero-copy { position: relative; z-index: 3; }
.hero-service .title {
  font-size: clamp(3.5rem, 5.8vw, 6rem);
  line-height: .9;
  max-width: none;
}
.hero-service.is-caps .title { text-transform: uppercase; letter-spacing: -0.02em; }
.hero-service .title .accent { font-size: .62em; line-height: 1.05; }
.hero .subtitle { margin: 14px 0 0; font-size: clamp(18px, 2vw, 24px); color: var(--muted); max-width: 36ch; }
.hero .lede { margin-top: 12px; max-width: 46ch; }
.hero-actions .btns, .hero-copy .btns { margin-top: 22px; }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.badges li, .perks li, .trust li, .pros-list li, .pack-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badges .ico, .perks .ico { color: var(--violet-text); }
.hero-visual {
  position: relative;
  background: var(--surface-2);
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-home .hero-visual { min-height: 520px; }
.hero-service .hero-visual { min-height: 560px; }
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: none;
  object-fit: cover;
  object-position: 84% 40%;
  display: block;
}
.hero-service .hero-visual img { object-position: 68% center; }

.media {
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero-visual.media { background: var(--surface-2); overflow: hidden; border-radius: 18px; }

.svc-grid, .feat-grid, .cat-grid, .gal, .pack-grid {
  display: grid;
  gap: 14px;
}
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.svc {
  position: relative;
  display: block;
  min-height: 198px;
  padding: 18px 16px 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.svc:hover { border-color: var(--line-strong); }
.svc-copy { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 164px; min-width: 0; }
.svc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.svc-ic {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--violet-text);
  flex: none;
}
.svc h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.svc-text { margin-top: 8px; font-size: 14px; max-width: 28ch; padding-right: 112px; }
.svc-more {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.svc-more .arr { color: var(--violet-text); }
.svc-photo {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: 112px;
  background: #0c0a12;
  border-radius: 10px;
  overflow: hidden;
  z-index: 0;
}
.svc-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 58%;
}
.svc-go { display: none; color: var(--violet-text); }
/* Photo sur fond blanc qui déborde vers le texte (grands écrans seulement, la place manque en dessous) */
.svc-photo-wide img { object-position: 18% 58%; }
@media (min-width: 1181px) { .svc-photo-wide { width: 172px; background: #fff; } }

.feat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.feat-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  min-width: 0;
  padding: 22px 20px 18px;
  background: var(--bg);
  border: 0;
  border-radius: 0;
}
.feat-top { display: flex; align-items: center; gap: 8px; color: var(--violet-text); }
.feat h3 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feat .lead { color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.35; }
.feat-text { font-size: 14px; }
.feat .btns, .feat .chips { margin-top: auto; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip small { color: var(--muted); font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.chip-swatch {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}
.chip-swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; flex: none; box-shadow: inset 0 0 0 1px rgba(17, 16, 20, .18); }
.chip-ico { flex-direction: row; align-items: center; gap: 8px; }
.chip-ico .ico { color: var(--violet-text); }
.chip-photo { margin: 0; width: 74px; }
.chip-photo .media { border-radius: 8px; }
.chip-photo figcaption { margin-top: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }

.step-row { display: flex; align-items: flex-start; gap: 0; margin-top: 18px; }
.step { flex: 1 1 0; min-width: 0; }
.step-kicker { display: flex; align-items: center; gap: 8px; color: var(--green-text); margin-bottom: 8px; min-height: 28px; }
.step-kicker .ico { width: 22px; height: 22px; color: var(--green-text); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--ink);
  border: 0;
  font-size: 13px; font-weight: 800;
  flex: none;
}
.step h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.step-text { margin-top: 6px; font-size: 14px; }
.step-arrow {
  color: var(--green-text);
  flex: none;
  width: 22px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 2px;
}
.step-arrow .arr { width: 16px; height: 16px; }

.pros-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.pros-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: auto !important;
}
.pros-bg img { object-fit: cover; opacity: .34; }
.pros-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 246, 250, .66), rgba(247, 246, 250, .9));
  pointer-events: none;
}
.pros-copy { position: relative; z-index: 1; }
.pros-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.pros-list li { align-items: flex-start; }
.pros-list .check {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; flex: none;
  background: rgba(74, 222, 128, .16);
  color: var(--green-text);
  margin-top: 1px;
}
.pros-list .check .ico { width: 14px; height: 14px; }
.pros-list strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.pros-list span { display: block; color: var(--muted); font-size: 14px; }
.pros-card .btns { margin-top: 8px; }

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust li { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.trust .ico { color: var(--violet-text); flex: none; }

.sec-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 8px; }
.pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.pack-grid[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.pack.is-hot {
  border-color: rgba(74, 222, 128, .75);
  background: linear-gradient(180deg, rgba(34, 197, 94, .08), var(--surface) 42%);
}
.pack-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--green);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pack-name { display: flex; align-items: center; gap: 8px; }
.pack-name .ico { color: var(--violet-text); }
.pack h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.pack-desc { color: var(--muted); font-size: 14px; }
.pack-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-feats .ico { color: var(--green-text); flex: none; }
.price { margin-top: auto; font-family: var(--serif); font-size: clamp(22px, 1.7vw, 30px); line-height: 1; white-space: nowrap; }
.pack .btns { margin-top: 4px; }
.pack .btn { width: 100%; }

.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.gal { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.cat, .gal-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cat h3, .gal-card h3 { padding: 12px 14px 4px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.gal-text { padding: 0 14px 14px; font-size: 14px; }
.media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Vidéo sur fond blanc : pas de cadre, le blanc se fond dans la page (multiply) */
.hero-visual.media.is-video { background: transparent; border: 0; box-shadow: none; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.hero-visual.is-video video {
  object-fit: contain; mix-blend-mode: multiply; aspect-ratio: 1/1; height: auto; max-height: 100%;
  /* Fondu des bords : l'ombre au sol ne s'arrête pas net au bord de la vidéo */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
/* Objet à faire tourner : pas de cadre, le blanc de l'image se fond dans la page (multiply) */
.hero-visual.is-spin { background: transparent; border: 0; box-shadow: none; border-radius: 0; cursor: grab; touch-action: pan-y; user-select: none; display: flex; align-items: center; justify-content: center; }
.hero-visual.is-spin.is-dragging { cursor: grabbing; }
.hero-visual.is-spin img { object-fit: contain; object-position: center; mix-blend-mode: multiply; pointer-events: none; }
.hero-visual.is-spin:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 18px; }
.spin-hint { position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); transition: opacity .4s; white-space: nowrap; }
.is-spin.was-turned .spin-hint { opacity: 0; }
.vid-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.cat { position: relative; }
.cat .tag, .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--green-text);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filters button {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--violet); border-color: transparent; color: #fff; }

.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .8fr); gap: 28px; align-items: center; }
.story-copy p { margin-top: 12px; color: var(--muted); max-width: 58ch; }
.story-visual { border-radius: 16px; }

.faq-wrap { width: min(980px, calc(100% - 40px)); }
.faq-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.faq-mascot { width: min(150px, 34vw); background: #0c0a12; border-radius: 16px; flex: none; overflow: hidden; box-shadow: var(--shadow); }
.faq-mascot img {
  object-fit: cover;
  display: block;
}
.faq-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-ic {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  color: var(--green-text);
}
.faq-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.faq-kicker { font-weight: 700; }
.faq-ask { color: var(--muted); font-size: 14px; font-weight: 400; }
.faq-btn .chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.faq-item.is-open .chev { transform: rotate(180deg); }
.js .faq-item:not(.is-open) .faq-panel { display: none; }
.faq-panel { padding: 0 16px 16px 60px; color: var(--text); }
.faq-panel p, .faq-panel li { margin: 0 0 8px; }
.faq-panel a { color: var(--green-text); }
.faq-foot { margin-top: 16px; color: var(--muted); }
.faq-foot a { color: var(--green-text); }

.quote-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 32px; align-items: start; }
.quote-aside { min-width: 0; }
.quote-aside .title { font-size: clamp(2.35rem, 6.2vw, 2.9rem); line-height: 1.02; max-width: 11em; }
.quote-aside .lede { margin-top: 12px; max-width: 36ch; }
.quote-aside .logo { width: auto; height: 64px; margin-bottom: 16px; }
.perks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.privacy {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.privacy .ico { color: var(--violet-text); flex: none; }
.privacy p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.q-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.q-card fieldset { border: 0; margin: 0 0 16px; padding: 0; min-inline-size: 0; max-width: 100%; }
.q-card legend, .q-card label > span, .seg-set legend {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick-opt, .q-card, .quote-grid { min-width: 0; }
.pick-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
}
.pick-opt .ico { color: var(--violet-text); }
.pick-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick-opt .tick {
  display: none;
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  place-items: center;
}
.pick-opt:has(input:checked) { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); background: rgba(139, 92, 246, .08); }
.pick-opt:has(input:checked) .tick { display: grid; }
.pick-opt:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 3px; }
.area { position: relative; }
textarea, input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--text);
}
textarea:focus-visible, input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="tel"]:focus-visible, select:focus-visible {
  border-color: var(--violet);
}
.q-card select, .q-who input, .field-co input {
  height: 48px;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}
.q-card select {
  appearance: none;
  padding-right: 36px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b5566' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea { min-height: 120px; resize: vertical; padding-bottom: 28px; border: 1px solid var(--field); }
.counter { position: absolute; right: 12px; bottom: 8px; color: var(--muted); font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 124px;
  padding: 22px 18px;
  border: 1px dashed var(--field);
  border-radius: 14px;
  background: #fff;
}
.drop.is-over { border-color: var(--violet); background: rgba(139, 92, 246, .06); }
.drop-copy { display: flex; flex-direction: row; align-items: center; gap: 14px; min-width: 0; }
.drop-text { min-width: 0; }
.drop-copy .ico { color: var(--violet-text); width: 42px; height: 42px; flex: none; }
.drop .browse { flex: none; height: 42px; min-height: 42px; }
.file-input, .hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.file-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.q-meta, .q-who { display: grid; gap: 12px; margin-bottom: 14px; }
.q-meta { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.q-meta .seg-set { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.q-who { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .95fr); }
.q-who label, .field-co { display: flex; flex-direction: column; gap: 6px; }
.q-meta > *, .q-who > * { min-width: 0; max-width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.seg label {
  flex: 0 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { border-color: var(--violet); background: rgba(139, 92, 246, .16); box-shadow: inset 0 0 0 1px var(--violet); }
.field-co { display: none; margin-bottom: 14px; }
.q-card:has([name="clientType"][value="professionnel"]:checked) .field-co { display: flex; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
.consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  border: 2px solid var(--violet);
  border-radius: 5px;
  background: rgba(139, 92, 246, .12);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
  display: grid;
  place-content: center;
}
.consent input:checked { background: var(--violet); }
.consent input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.consent a { color: var(--violet-text); }
.btn-submit { width: 100%; height: 52px; }
.field-error, .form-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.q-success {
  margin: 0;
  padding: 28px 8px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.25;
}

.cta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120px 80px at 36px 50%, rgba(139, 92, 246, .12), transparent 70%),
    var(--surface);
  min-width: 0;
}
.cta-mark { flex: none; display: grid; place-items: center; width: 48px; }
.cta-mark .logo { height: 40px; width: auto; }
.cta-copy { min-width: 0; flex: 1; }
.cta-copy .title { font-size: clamp(1.7rem, 2.2vw, 2.35rem); font-style: italic; }
.cta-copy .lede { margin-top: 4px; }
.cta-bar .btns { margin-left: auto; flex: none; flex-wrap: nowrap; }

.legal { width: min(72ch, 100%); padding-bottom: 24px; }
.legal h1 { font-size: clamp(42px, 6vw, 64px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 8px; }
.legal h2 { font-size: 32px; margin: 1.4em 0 .4em; }
.legal p { margin: 0 0 .9em; color: var(--text); }
.legal a { color: var(--violet-text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 52px 0 28px; background: var(--surface); }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.ft-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 38ch; }
.ft-col h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }
.ft-col a, .ft-legal a, .ft-social a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; }
.ft-social a { display: inline-flex; padding: 0; }
.ft-col a:hover, .ft-legal a:hover { color: var(--text); }
.ft-base {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ft-social { display: flex; gap: 14px; align-items: center; }
.ft-base p { margin: 0; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-left: auto; }
.ft-legal a { padding: 0; }

.js .reveal.wait { opacity: 0; transform: translateY(12px); }
.js .reveal.wait.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

@media (min-width: 1040px) {
  main:has(.sec-steps + .sec-pros) {
    display: grid;
    --cw: min(1240px, calc(100vw - 48px));
    grid-template-columns: 1fr calc((var(--cw) - 18px) * .622) calc((var(--cw) - 18px) * .378 + 18px) 1fr;
    column-gap: 0;
    width: 100%;
    align-items: stretch;
  }
  main:has(.sec-steps + .sec-pros) .sec-steps .title,
  main:has(.sec-steps + .sec-pros) .sec-pros .title {
    font-size: clamp(2rem, 2.5vw, 2.7rem);
  }
  main:has(.sec-steps + .sec-pros) > .sec { grid-column: 1 / -1; }
  main:has(.sec-steps + .sec-pros) > .sec-steps:has(+ .sec-pros) { grid-column: 2; display: flex; }
  main:has(.sec-steps + .sec-pros) > .sec-steps + .sec-pros { grid-column: 3; display: flex; padding-left: 18px; }
  main:has(.sec-steps + .sec-pros) .sec-steps .wrap, main:has(.sec-steps + .sec-pros) .sec-pros .wrap { width: 100%; max-width: none; margin-inline: 0; }
  main:has(.sec-steps + .sec-pros) .steps-in,
  main:has(.sec-steps + .sec-pros) .pros-in { flex: 1; display: flex; flex-direction: column; }
  main:has(.sec-steps + .sec-pros) .pros-card { flex: 1; }
  .sec-steps + .sec-pros .pros-list { grid-template-columns: 1fr; }
}
@media (min-width: 860px) {
  .sec-pros .pros-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .sec-steps + .sec-pros .pros-list { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .nav-desk, .header-in > .nav-cta { display: none; }
  .header-in { position: relative; padding-right: 56px; }
  .burger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    margin-left: 0;
    transform: translateY(-50%);
    z-index: 6;
  }
}
@media (min-width: 1181px) {
  .burger { display: none; }
}
@media (max-width: 1000px) {
  .feat-grid, .feat-grid[data-n="3"], .pack-grid, .pack-grid[data-n="4"], .cat-grid, .gal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid, .story, .q-meta { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .wrap, .faq-wrap { width: min(1200px, calc(100% - 32px)); }
  .brand-sign { display: none; }
  .hero-home {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "actions";
    min-height: 0;
  }
  .hero-home .title { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .hero-home .hero-visual, .hero-home .hero-visual img { min-height: 280px; max-height: 340px; }
  .hero-home .hero-visual img { object-position: center 35%; }
  .hero-service {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero-service .hero-copy { padding-bottom: 8px; }
  .hero-service .title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero-service .hero-visual, .hero-service .hero-visual img {
    position: relative;
    inset: auto;
    min-height: 300px;
    max-height: 380px;
    object-fit: cover;
    object-position: 70% center;
  }
  .hero .btns, .cta-bar .btns, .pros-card .btns { flex-direction: column; align-items: stretch; }
  .hero .btn, .cta-bar .btn, .pros-card .btn { width: 100%; min-height: 54px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;
  }
  .svc-copy { min-height: 0; flex: 1; }
  .svc-text { padding-right: 0; }
  .svc-more, .svc-photo { display: none; }
  .svc-go { display: grid; place-items: center; flex: none; }
  .svc h3 { font-size: 22px; white-space: normal; }
  .svc-ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .step-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0 0 0 6px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .cta-bar .btns { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-who, .q-meta { grid-template-columns: 1fr; }
  .drop { flex-direction: column; align-items: stretch; }
  .faq-panel { padding-left: 16px; }
  .faq-head { align-items: start; }
}
@media (max-width: 640px) {
  .feat-grid, .feat-grid[data-n="3"], .pack-grid, .pack-grid[data-n="4"], .cat-grid, .gal, .ft-grid, .trust {
    grid-template-columns: 1fr;
  }
  .ft-legal { margin-left: 0; }
  .pick { grid-template-columns: 1fr 1fr; }
}

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

/* Corrections de recette */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { flex: none; }

.chip-t { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.chip-t small { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.req { margin-left: 6px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.req::before { content: "("; }
.req::after { content: ")"; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.media.is-empty { display: none; }
img[hidden] { display: none; }


@media (min-width: 1040px) {
  main:has(.sec-steps + .sec-pros) .step-row { flex: 1; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 0; margin-top: 14px; }
  main:has(.sec-steps + .sec-pros) .step { flex: 1 1 0; display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; align-content: center; padding: 14px 0; border-top: 1px solid var(--line); }
  main:has(.sec-steps + .sec-pros) .step-kicker { grid-row: 1 / span 2; margin: 0; align-self: start; }
  main:has(.sec-steps + .sec-pros) .step-text { margin-top: 2px; }
  main:has(.sec-steps + .sec-pros) .step-arrow { display: none; }
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: stretch; }
  .sec-head-side .btns { justify-content: flex-start; }
}

/* Flotte des machines */
.mach-fleet { margin-top: 28px; }
.mach-tabs { display: none; }
.mach-panel + .mach-panel { margin-top: 44px; }
.mach-title { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 0 0 16px; }
.mach-fleet.is-tabs .mach-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mach-fleet.is-tabs .mach-tabs {
  display: flex; gap: 8px; margin: 0 0 26px; padding: 0 0 2px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.mach-tabs::-webkit-scrollbar { display: none; }
.mach-tab {
  flex: none; position: relative; padding: 12px 18px 14px; border: 0; background: none;
  font: 600 15px/1.2 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.mach-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--violet); transform: scaleX(0); transition: transform .25s;
}
.mach-tab:hover { color: var(--violet-text); }
.mach-tab[aria-selected="true"] { color: var(--violet-text); }
.mach-tab[aria-selected="true"]::after { transform: scaleX(1); }
.mach-tab:focus-visible, .mach-open:focus-visible, .mach-close:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.mach-count { font-weight: 500; opacity: .75; }
.mach-panel:not([hidden]) { animation: mach-in .35s ease; }
@keyframes mach-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.mach {
  position: relative; display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mach:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.mach-ph {
  aspect-ratio: 4 / 4.4; display: grid; place-items: center; padding: 18px;
  background: linear-gradient(180deg, #f7f6fa, #efeaff);
}
.mach-ph img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s; }
.mach:hover .mach-ph img { transform: scale(1.04); }
.mach-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.mach-name { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.05; margin: 0; }
.mach-model { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mach-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.mach-badges li { padding: 4px 10px; border-radius: 999px; background: #f0eafe; color: var(--violet-text); font-size: 12px; font-weight: 600; }
.mach-stat { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.mach-stat strong { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--violet-text); line-height: 1; }
.mach-stat span { font-size: 13px; color: var(--muted); }
.mach-open {
  margin-top: auto; align-self: flex-start; padding: 9px 16px; border: 1px solid var(--violet);
  border-radius: 999px; background: transparent; color: var(--violet-text);
  font: 600 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s;
}
.mach-open:hover { background: var(--violet); color: #fff; }
.mach-body > .mach-name + .mach-open, .mach-body > .mach-model + .mach-open, .mach-body > .mach-badges + .mach-open { margin-top: auto; }

.mach.is-soon { border: 2px dashed #c9b6fa; background: #fcfbff; }
.mach.is-soon:hover { border-color: var(--violet); }
.mach.is-soon .mach-ph { background: transparent; }
.mach-ph-soon { color: var(--violet); }
.mach-thread { width: 62%; height: auto; }
.mach-soon {
  position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px;
  background: #e8fbef; color: var(--green-text); font-size: 12px; font-weight: 700;
}
.mach-soon-in { position: static; display: inline-block; margin-bottom: 10px; }

.mach-dialog {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--bg); color: var(--text); overflow: auto;
  box-shadow: 0 30px 80px rgba(30, 20, 60, .35);
}
.mach-dialog::backdrop { background: rgba(17, 16, 20, .55); }
.mach-dialog[open] { animation: mach-in .3s ease; }
.mach-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.mach-sheet-ph .mach-ph { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mach-sheet-body { padding: 34px 32px 32px; }
.mach-sheet-title { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.05; margin: 0; }
.mach-dialog .mach-text { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mach-specs-title { margin: 22px 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-text); }
.mach-specs { margin: 0; }
.mach-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mach-specs dt { color: var(--muted); }
.mach-specs dd { margin: 0; font-weight: 600; text-align: right; }
.mach-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer;
}
.mach-close:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
body.mach-lock { overflow: hidden; }

@media (min-width: 1100px) {
  /* 4 par rangée, la dernière rangée incomplète est centrée (5 imprimantes = 4 + 1 au milieu) */
  .mach-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .mach-grid > * { flex: 0 0 calc((100% - 60px) / 4); }
}
@media (max-width: 760px) {
  .mach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mach-ph { padding: 10px; }
  .mach-body { padding: 12px 12px 14px; }
  .mach-name { font-size: 22px; }
  .mach-badges li { font-size: 11px; padding: 3px 8px; }
  .mach-stat strong { font-size: 24px; }
  .mach-open { padding: 8px 12px; font-size: 13px; }
  .mach-soon { top: 8px; left: 8px; font-size: 11px; }
  .mach-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .mach-sheet { grid-template-columns: 1fr; }
  .mach-sheet-ph .mach-ph { min-height: 0; aspect-ratio: 4 / 3; }
  .mach-sheet-body { padding: 22px 20px 28px; }
  .mach-sheet-title { font-size: 34px; }
}
@media (max-width: 339px) {
  .mach-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mach, .mach-ph img, .mach-tab, .mach-tab::after, .mach-open { transition: none; }
  .mach:hover { transform: none; }
  .mach:hover .mach-ph img { transform: none; }
  .mach-panel:not([hidden]), .mach-dialog[open] { animation: none; }
}

/* Scène des machines : une photo de famille par métier, chaque machine ouvre sa fiche */
.mach-stage {
  position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-end;
  height: clamp(300px, 36vw, 470px); padding: 24px 3% 64px; margin-top: 4px;
  border-radius: 22px; background: linear-gradient(180deg, #fbfaff 0%, #f3effd 100%);
  overflow: hidden;
}
.mach-stage::before {
  content: ""; position: absolute; z-index: -2; left: 10%; right: 10%; top: 6%; bottom: 40px;
  background: radial-gradient(ellipse 60% 70% at 50% 75%, rgba(139, 92, 246, .22), transparent 70%);
}
.mach-stage::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 70%); border-top: 1px solid rgba(139, 92, 246, .10);
}
.mach-actor {
  position: relative; flex: 0 1 auto; min-width: 0; height: calc(var(--h) * 100%);
  margin: 0 -1%; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform .35s ease, opacity .35s ease, filter .35s ease;
}
.mach-actor img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; display: block;
  filter: drop-shadow(0 14px 14px rgba(17, 16, 20, .18)) drop-shadow(0 2px 2px rgba(17, 16, 20, .12));
  pointer-events: none;
}
.mach-label {
  position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%);
  white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font: 600 12.5px/1.2 var(--sans); color: var(--ink, #111014); box-shadow: 0 2px 8px rgba(17, 16, 20, .06);
  transition: color .25s, border-color .25s;
}
.mach-stage[data-n="7"] .mach-label, .mach-stage[data-n="8"] .mach-label { white-space: normal; width: max-content; max-width: 9.5em; text-align: center; }
.mach-stage:has(.mach-actor:hover) .mach-actor:not(:hover),
.mach-stage:has(.mach-actor:focus-visible) .mach-actor:not(:focus-visible) { opacity: .5; filter: saturate(.5); }
.mach-actor:hover, .mach-actor:focus-visible { transform: translateY(-8px); z-index: 5; outline: none; }
.mach-actor:hover .mach-label, .mach-actor:focus-visible .mach-label { color: var(--violet-text); border-color: var(--violet); }
.mach-actor:focus-visible .mach-label { outline: 2px solid var(--violet); outline-offset: 2px; }
/* Machine à venir : en retrait, à moitié cachée derrière sa voisine (plus haute = plus loin) */
.mach-actor { z-index: 1; }
.mach-actor.is-soon { z-index: 0; margin-left: -4%; transform: translateY(-22px) scale(.92); transform-origin: bottom center; }
.mach-actor.is-soon:hover, .mach-actor.is-soon:focus-visible { transform: translateY(-30px) scale(.92); }
.mach-actor.is-soon .mach-label { top: calc(100% + 36px); }
.mach-ghost {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 100%; aspect-ratio: 3 / 4; border: 2px dashed rgba(139, 92, 246, .55); border-radius: 18px;
  background: rgba(255, 255, 255, .55); color: var(--violet-text);
}
.mach-ghost svg { width: 46%; height: auto; }
.mach-ghost em { font: italic 500 20px/1 var(--serif); }
.mach-chips { display: none; }
@media (max-width: 760px) {
  .mach-stage { height: 250px; padding: 16px 2% 28px; }
  .mach-label { display: none; }
  .mach-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .mach-hint { flex-basis: 100%; font-size: 13px; color: var(--muted); }
  .mach-chip {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font: 600 13px/1.2 var(--sans); color: var(--violet-text); cursor: pointer;
  }
  .mach-chip.is-soon { border-style: dashed; }
}
@media (prefers-reduced-motion: reduce) { .mach-actor { transition: none; } .mach-actor:hover, .mach-actor:focus-visible { transform: none; } }

/* Carte gravée en 3D : on la fait pivoter à la souris, un reflet glisse sur la gravure */
.story-visual.c3d {
  position: relative; aspect-ratio: 4 / 5; background: transparent; border: 0; box-shadow: none; overflow: visible;
  display: flex; align-items: center; justify-content: center; perspective: 1100px;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.story-visual.c3d::before {
  content: ""; position: absolute; inset: 8% 0; z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 50% 52%, rgba(139, 92, 246, .22), transparent 70%);
}
.story-visual.c3d.is-dragging { cursor: grabbing; }
.story-visual.c3d:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 18px; }
.c3d-float { width: 92%; animation: c3d-float 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes c3d-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.c3d-card {
  position: relative; width: 100%; aspect-ratio: 1100 / 696; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -24deg)) rotateZ(-6deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.c3d.is-dragging .c3d-card { transition: none; }
.c3d-face {
  position: absolute; inset: 0; border-radius: 4.5% / 7%; overflow: hidden; backface-visibility: hidden;
  box-shadow: 0 30px 50px -18px rgba(17, 16, 20, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.c3d-front { transform: translateZ(1.5px); background: #0d0c0f; }
.c3d-front img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.c3d-back {
  transform: rotateY(180deg) translateZ(1.5px); background: radial-gradient(ellipse at 30% 20%, #26232b, #0d0c0f 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.c3d-back img { width: 22%; height: auto; filter: grayscale(1) brightness(1.6) contrast(.9); opacity: .85; pointer-events: none; }
.c3d-back span { font: 500 clamp(11px, 1.3vw, 15px)/1 var(--sans); letter-spacing: .2em; color: #bdb8c6; text-transform: uppercase; }
.c3d-shine {
  position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 48%, rgba(255, 255, 255, .05) 56%, transparent 64%);
  transform: translateX(var(--shine, 0%));
}
.c3d.was-turned .spin-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .c3d-float { animation: none; } .c3d-card { transition: none; } }

/* Pièce à faire tourner dans une carte de la galerie */
.gal-spin { background: #fff; cursor: grab; touch-action: pan-y; user-select: none; }
.gal-spin.is-dragging { cursor: grabbing; }
.gal-spin img { object-fit: contain; pointer-events: none; }
.gal-spin:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.gal-spin .spin-hint { bottom: 12px; font-size: 12px; }

/* Filtre de la galerie : une carte masquée doit vraiment disparaître (display: block l emportait sur hidden) */
.gal-card[hidden] { display: none; }

/* Pièce à faire tourner dans une fiche */
.mach-ph-spin { position: relative; background: #fff; cursor: grab; touch-action: pan-y; user-select: none; height: 100%; display: flex; align-items: center; justify-content: center; }
.mach-ph-spin.is-dragging { cursor: grabbing; }
.mach-ph-spin img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.mach-ph-spin .spin-hint { bottom: 12px; font-size: 12px; }

/* Deux pièces seules : on les espace au lieu de les faire se chevaucher */
.mach-stage[data-n="2"] .mach-actor { margin: 0 3%; }
.mach-stage[data-n="3"] .mach-actor { margin: 0 1.5%; }

/* Sceau « Fabriqué en France » en haut à droite du visuel d'accueil */
.hero-visual { position: relative; }
.hero-stamp {
  position: absolute; z-index: 3; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(17, 16, 20, .08); backdrop-filter: blur(6px);
}
.hero-stamp-flag { display: inline-flex; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(17, 16, 20, .12); flex: none; }
.hero-stamp-flag i { flex: 1; }
.hero-stamp-flag i:nth-child(1) { background: #002395; }
.hero-stamp-flag i:nth-child(2) { background: #fff; }
.hero-stamp-flag i:nth-child(3) { background: #ed2939; }
.hero-stamp-txt { display: flex; flex-direction: column; line-height: 1.15; }
.hero-stamp-txt strong { font: 600 13px/1.2 var(--sans); color: var(--ink, #111014); }
.hero-stamp-txt small { font: 500 11px/1.2 var(--sans); color: var(--muted); }
@media (max-width: 760px) { .hero-stamp { top: 8px; right: 8px; padding: 6px 10px 6px 8px; } .hero-stamp-txt small { display: none; } }

/* Page de liens (QR code et bio des réseaux) */
.links { padding: 40px 16px 64px; background: radial-gradient(120% 60% at 50% 0%, rgba(139, 92, 246, .14), transparent 70%), var(--bg); }
.lk-wrap { max-width: 480px; margin: 0 auto; }
.lk-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; }
.lk-logo { width: 72px; height: 72px; }
.lk-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 9vw, 44px); line-height: 1.05; }
.lk-text { color: var(--muted); font-size: 15px; max-width: 34ch; }
.lk-stamp { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); }
.lk-stamp strong { color: var(--text); font-weight: 600; }
.lk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lk-sub { margin: 30px 0 12px; text-align: center; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-text); }
.lk-btn { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 2px 10px rgba(30, 20, 60, .05); transition: transform .2s, border-color .2s, box-shadow .2s; }
.lk-btn:hover, .lk-btn:focus-visible { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow); }
.lk-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.lk-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--surface-2); color: var(--violet-text); }
.lk-btn.is-net .lk-ic { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff; }
.lk-btn.is-site .lk-ic { background: rgba(74, 222, 128, .16); color: var(--green-text); }
.lk-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.lk-txt strong { font-weight: 600; font-size: 16px; }
.lk-txt small { color: var(--muted); font-size: 13px; }
.lk-btn .arr { color: var(--muted); flex: none; }
@media (prefers-reduced-motion: reduce) { .lk-btn { transition: none; } .lk-btn:hover { transform: none; } }

/* Mention discrète sur les images générées par IA ("imageIA": true) */
.ia-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 20px);
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .02em;
  pointer-events: none;
}
.chip-photo .ia-tag { display: none; }
.mach-ph { position: relative; }
.cf-turnstile { margin: 4px 0 12px; max-width: 100%; overflow: hidden; }
