/* ==========================================================================
   Inopackaging — feuille de style principale
   Mobile d'abord. Aucune dépendance externe : polices et icônes sont locales.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #0b1822;
  --ink-2: #102535;
  --ink-3: #1b3448;
  --brand: #16b74d;
  --brand-hi: #25d55f;
  --brand-ink: #0a7a31;      /* vert lisible sur fond clair */
  --bg: #f3f6f5;
  --card: #ffffff;
  --line: #dfe7e4;
  --text: #1b2a33;
  --muted: #566871;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(11, 24, 34, .06), 0 14px 34px -14px rgba(11, 24, 34, .22);
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; user-select: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: #04130a; font-weight: 600;
  padding: .7rem 1rem; border-radius: var(--radius-s);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Mise en page ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--white { background: #fff; }
.section--dark { background: var(--ink); color: #cfdcd6; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 600 .78rem/1.5 var(--font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { flex: none; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--brand); }

.h2 {
  font: 700 clamp(2.1rem, 5vw, 3.4rem)/1.04 var(--font-head);
  letter-spacing: -.005em; color: var(--ink);
  margin-top: .9rem;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead { margin-top: 1rem; }
.section--dark .lead { color: #9fb3ab; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.3rem; border-radius: var(--radius-s);
  font: 600 .95rem/1.2 var(--font); border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ico-go { transform: translateX(4px); }
.btn--brand { background: var(--brand); color: #04130a; }
.btn--brand:hover { background: var(--brand-hi); box-shadow: 0 10px 24px -10px rgba(22, 183, 77, .8); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: .62rem 1rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(11, 24, 34, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; position: relative; z-index: 2; }
.brand-name { font: 700 1.9rem/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase; color: #fff; }
.brand-name span { color: var(--brand); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nav-toggle {
  position: relative; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-s); color: #fff;
}
.nav-toggle .ico { width: 1.4rem; height: 1.4rem; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.nav {
  position: fixed; inset: 0; padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--ink); display: flex; flex-direction: column; gap: 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav ul { display: flex; flex-direction: column; }
.nav li a {
  display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .09);
  font: 600 1.5rem/1.1 var(--font-head); letter-spacing: .02em;
}
.nav li a[aria-current] { color: var(--brand); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto; padding: 0; background: none; flex-direction: row; align-items: center; gap: 1.6rem;
    opacity: 1; visibility: visible; transform: none; overflow: visible;
  }
  .nav ul { flex-direction: row; gap: .3rem; }
  .nav .btn { white-space: nowrap; }
  .nav li a {
    position: relative; padding: .5rem .65rem; border: 0; white-space: nowrap;
    font: 500 .93rem/1 var(--font); letter-spacing: 0; color: rgba(255, 255, 255, .86);
    transition: color .2s;
  }
  .nav li a::after {
    content: ""; position: absolute; left: .65rem; right: .65rem; bottom: -.1rem; height: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav li a:hover, .nav li a[aria-current] { color: #fff; }
  .nav li a:hover::after, .nav li a[aria-current]::after { transform: scaleX(1); }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(7rem, 12vw, 9rem);
  min-height: min(100svh, 900px); display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(22, 183, 77, .22), transparent 60%),
    linear-gradient(105deg, rgba(8, 19, 28, .84) 0%, rgba(8, 19, 28, .68) 48%, rgba(8, 19, 28, .5) 100%),
    url("../img/hero-bg.png") center / cover no-repeat,
    var(--ink);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }

.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
.hero h1 {
  font: 700 clamp(2.7rem, 7.4vw, 5.3rem)/.98 var(--font-head);
  letter-spacing: -.01em; margin-top: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: #b8cac3; margin-top: 1.4rem; max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-points { display: grid; gap: .65rem; margin-top: 2.2rem; color: #d4e0db; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .65rem; }
.hero-points .ico { color: var(--brand); }

.hero-card {
  display: block; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease);
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card-media { position: relative; aspect-ratio: 16 / 9; background: #e8eeec; overflow: hidden; }
.hero-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-card-body h2 { font: 700 1.6rem/1 var(--font-head); letter-spacing: .01em; }
.hero-card-body p { font-size: .88rem; color: var(--muted); margin-top: .25rem; }
.hero-card-go {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--brand); color: #04130a;
  display: grid; place-items: center; flex: none; transition: transform .3s var(--ease);
}
.hero-card:hover .hero-card-go { transform: rotate(-45deg); }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 4rem; }
  .hero-card { justify-self: end; max-width: 34rem; }
  .hero-card-media { aspect-ratio: 3 / 2; }
}

/* ---------- Chiffres clés ---------- */
.stats { position: relative; z-index: 2; margin-top: -4.8rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.6rem 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n + 2) { border-bottom: 0; }
.stat-num { font: 700 clamp(2.5rem, 6vw, 3.6rem)/1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(2n), .stat:nth-last-child(-n + 2) { border-right: 1px solid var(--line); border-bottom: 0; padding: 2rem 1.8rem; }
  .stat:last-child { border-right: 0; }
}

/* ---------- À propos ---------- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-text p { margin-top: 1.2rem; color: #3d4f58; }
.about-text .h2 { margin-bottom: 1.4rem; }
.about-text strong { color: var(--ink); }
.about-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.about-tags li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500;
}
.about-tags .ico { color: var(--brand-ink); width: 1.05em; height: 1.05em; }
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; left: 1rem; bottom: -1.4rem; right: 1rem; max-width: 22rem;
  background: var(--ink); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-s);
  display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.about-badge .ico { width: 1.7rem; height: 1.7rem; color: var(--brand); }
.about-badge b { display: block; font: 700 1.2rem/1.1 var(--font-head); letter-spacing: .03em; }
.about-badge span { font-size: .82rem; color: #9fb3ab; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr .95fr; gap: 5rem; }
  .about-badge { left: -2rem; right: auto; }
}

/* ---------- Références clients ---------- */
.clients { padding-block: 2.6rem; background: #fff; border-block: 1px solid var(--line); }
.clients-title { text-align: center; font: 600 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: clamp(2.4rem, 6vw, 4.6rem); padding-right: clamp(2.4rem, 6vw, 4.6rem); flex: none; }
.marquee-set img {
  height: 46px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s;
}
.marquee-set img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Savoir-faire (fond sombre) ---------- */
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
}
.section--dark > .container { position: relative; }
.section--dark .eyebrow { color: var(--brand); }
.expertise { display: grid; gap: 1px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); overflow: hidden; }
.expertise li { background: var(--ink-2); padding: 1.8rem 1.6rem; transition: background .3s; position: relative; }
.expertise li:hover { background: var(--ink-3); }
.expertise li::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand); transition: width .5s var(--ease);
}
.expertise li:hover::after { width: 100%; }
.expertise .ico { width: 2rem; height: 2rem; color: var(--brand); margin-bottom: 1.3rem; }
.expertise h3 { font: 700 1.55rem/1.1 var(--font-head); letter-spacing: .01em; margin-bottom: .6rem; }
.expertise p { font-size: .93rem; color: #9fb3ab; }
@media (min-width: 640px) { .expertise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .expertise { grid-template-columns: repeat(6, 1fr); } .expertise li { grid-column: span 2; } .expertise li:nth-child(n + 4) { grid-column: span 3; } }

/* ---------- Services ---------- */
.services { display: grid; gap: 1.2rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-ico {
  width: 3.2rem; height: 3.2rem; border-radius: 12px; display: grid; place-items: center;
  background: rgba(22, 183, 77, .12); color: var(--brand-ink); margin-bottom: 1.2rem;
}
.service-ico .ico { width: 1.5rem; height: 1.5rem; }
.service h3 { font: 700 1.55rem/1.1 var(--font-head); color: var(--ink); margin-bottom: .55rem; }
.service p { font-size: .95rem; color: var(--muted); }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

.projects-cta {
  margin-top: 1.2rem; display: grid; gap: 1.4rem; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative; overflow: hidden;
}
.projects-cta::after {
  content: ""; position: absolute; right: -6rem; top: -6rem; width: 20rem; height: 20rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 183, 77, .3), transparent 65%);
}
.projects-cta > * { position: relative; z-index: 1; }
.projects-cta h3 { font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.05 var(--font-head); }
.projects-cta p { color: #9fb3ab; margin-top: .5rem; max-width: 40rem; }
.projects-cta .ico-play { width: 2.4rem; height: 2.4rem; color: var(--brand); margin-bottom: .9rem; }
@media (min-width: 800px) { .projects-cta { grid-template-columns: 1fr auto; } }

/* ---------- Catalogue ---------- */
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.05rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font: 600 .88rem/1 var(--font); color: var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.filter .ico { width: 1.15rem; height: 1.15rem; color: var(--brand-ink); transition: color .25s; }
.filter[aria-pressed="true"] .ico { color: var(--brand); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-count { font-size: .9rem; color: var(--muted); }

.machines { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .machines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .machines { grid-template-columns: repeat(3, 1fr); } }

.m-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.m-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.m-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e8eeec; }
.m-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.m-card:hover .m-card-media img { transform: scale(1.06); }
.badge {
  position: absolute; left: .9rem; top: .9rem; padding: .38rem .7rem; border-radius: 999px;
  background: rgba(11, 24, 34, .88); color: #fff; font: 600 .72rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge--auto { background: var(--brand); color: #04130a; }
.m-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.m-card-title { font: 700 1.7rem/1.05 var(--font-head); color: var(--ink); }
.m-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.m-card-body p { margin-top: .5rem; font-size: .93rem; color: var(--muted); }
.m-card-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.m-card-chips li { padding: .28rem .6rem; background: var(--bg); border-radius: 6px; font-size: .78rem; font-weight: 600; color: #34464f; }
.m-card-more {
  margin-top: auto; padding-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; color: var(--brand-ink);
}
.m-card-more .ico { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.m-card:hover .m-card-more .ico { transform: translateX(5px); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { text-align: center; }
.cta-band .h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 1.1rem auto 0; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; } }
.info-list { display: grid; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; }
.info-ico { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 12px; background: var(--ink); color: var(--brand); display: grid; place-items: center; }
.info-item h3 { font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.info-item a { display: block; font-weight: 500; color: var(--ink); padding-block: .1rem; transition: color .2s; }
.info-item a:hover { color: var(--brand-ink); }
.info-item address { font-style: normal; font-weight: 500; color: var(--ink); }

.map { position: relative; margin-top: 2rem; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 1.5rem; color: #cfdcd6;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-ph .ico { width: 2.2rem; height: 2.2rem; color: var(--brand); }
.map-ph small { font-size: .78rem; color: #8ea39a; max-width: 24rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form h3 { font: 700 1.9rem/1.05 var(--font-head); color: var(--ink); margin-bottom: 1.4rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label i { color: #c0392b; font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; background: #f8faf9; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(22, 183, 77, .16); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 1.3rem; }
.consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--brand-ink); }
.form-status.err { color: #b3261e; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Pied de page ---------- */
.site-footer { background: #07121a; color: #9fb3ab; font-size: .92rem; }
.footer-top { display: grid; gap: 2.4rem; padding-block: 4rem 3rem; }
.footer-top h3 { font: 600 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer-top li + li { margin-top: .6rem; }
.footer-top a { transition: color .2s; }
.footer-top a:hover { color: var(--brand); }
.footer-brand p { margin-top: 1.1rem; max-width: 26rem; }
.footer-brand .brand { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ico { color: var(--brand); margin-top: .2rem; width: 1.05em; height: 1.05em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: #dbe6e1; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--brand); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Fiche machine ---------- */
.m-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 2.4rem) 0 clamp(6.5rem, 10vw, 8rem);
  background:
    radial-gradient(50rem 24rem at 90% 0%, rgba(22, 183, 77, .2), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.m-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: #8ea39a; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { width: .9em; height: .9em; opacity: .6; }
.crumbs [aria-current] { color: #dbe6e1; }
.m-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.tag { padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 .75rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.tag--brand { background: var(--brand); color: #04130a; }
.m-hero h1 { font: 700 clamp(2.8rem, 8vw, 5.4rem)/.98 var(--font-head); letter-spacing: -.01em; margin-top: 1rem; }
.m-hero .lead { color: #b8cac3; margin-top: 1.2rem; max-width: 46rem; }
.m-hero .hero-cta { margin-top: 1.8rem; }

.m-main { position: relative; z-index: 2; margin-top: -4.5rem; display: grid; gap: 1.4rem; }
.m-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.m-media-frame { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #f1f5f4, #e2eae7); }
.m-media-frame img { width: 100%; height: 100%; object-fit: contain; }
.m-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); align-self: start; }
.m-aside h2 { font: 600 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.keyfigs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.keyfig { background: #fff; padding: 1rem 1.1rem; }
.keyfig b { display: block; font: 700 clamp(1.7rem, 3.4vw, 2.2rem)/1 var(--font-head); color: var(--ink); }
.keyfig span { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.m-aside .btn { margin-top: 1.1rem; }
.m-aside .btn + .btn { margin-top: .6rem; }
@media (min-width: 960px) {
  .m-main { grid-template-columns: 1.55fr 1fr; gap: 1.8rem; }
  .m-aside { position: sticky; top: calc(var(--header-h) + 1.2rem); }
}

.m-sec { padding-block: clamp(2.8rem, 6vw, 4.6rem) 0; }
.m-sec:last-of-type { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.m-cols { display: grid; gap: 2rem; }
@media (min-width: 900px) { .m-cols { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.prose { margin-top: 1.4rem; }
.prose p { color: #3d4f58; }
.prose p + p { margin-top: 1.1rem; }
.checks { display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: #2e414a; }
.checks .ico { color: var(--brand-ink); margin-top: .2rem; width: 1.15em; height: 1.15em; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.panel h3 { font: 700 1.5rem/1.1 var(--font-head); color: var(--ink); margin-bottom: 1.1rem; }

.features { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { width: 1.7rem; height: 1.7rem; color: var(--brand-ink); margin-bottom: .9rem; }
.feature h3 { font: 700 1.3rem/1.15 var(--font-head); color: var(--ink); margin-bottom: .4rem; }
.feature p { font-size: .92rem; color: var(--muted); }

.specs { width: 100%; margin-top: 1.8rem; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { padding: 1rem 1.3rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; font-weight: 600; font-size: .9rem; color: var(--muted); background: #f8faf9; }
.specs td { font-weight: 500; color: var(--ink); }
.note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 559px) { .specs th, .specs td { padding: .8rem .9rem; } .specs th { width: 42%; } }

.related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.related { margin-top: 2rem; }
.pager { display: grid; gap: 1rem; margin-top: 2.4rem; }
.pager a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .3s var(--ease);
}
.pager a:hover { border-color: var(--ink); transform: translateY(-2px); }
.pager small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager b { font: 700 1.4rem/1.1 var(--font-head); color: var(--ink); }
.pager .next { justify-content: flex-end; text-align: right; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }

/* ---------- Page 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }
.nf b { display: block; font: 700 clamp(6rem, 24vw, 13rem)/.9 var(--font-head); color: var(--brand); }
.nf h1 { font: 700 clamp(2rem, 5vw, 3rem)/1.1 var(--font-head); margin-top: .5rem; }
.nf p { color: #9fb3ab; margin: 1rem auto 0; max-width: 32rem; }
.nf .hero-cta { justify-content: center; }

/* ---------- Animations d'apparition (actives seulement avec JavaScript) ---------- */
/* Animation (et non transition) : elle ne gêne pas les effets de survol des cartes. */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: rise .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.ico-flip { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-set[aria-hidden] { display: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Page projets : lecteur de réalisations ---------- */
.showcase { display: grid; gap: 1.6rem; }
.stages { scroll-margin-top: calc(var(--header-h) + 1rem); }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stage + .stage { margin-top: 1.6rem; }
.stage-media { aspect-ratio: 16 / 9; background: #050b10; }
.stage-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-info { display: grid; gap: 1rem 2.5rem; padding: clamp(1.3rem, 3vw, 2.2rem); }
.stage-head h2 { font: 700 clamp(1.9rem, 3.6vw, 2.7rem)/1.05 var(--font-head); color: var(--ink); margin-top: .7rem; }
.stage-info > p { color: #3d4f58; }
.stage-foot { align-self: end; }
@media (min-width: 760px) {
  .stage-info { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .stage-head { grid-column: 1 / -1; }
  .stage-foot { grid-column: 1 / -1; }
}
.playlist { display: grid; gap: .7rem; }
.pl-item {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pl-item:hover { border-color: var(--ink); transform: translateX(3px); }
.pl-item[aria-current="true"] { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand), var(--shadow); }
.pl-ico { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 10px; background: var(--ink); color: var(--brand); }
.pl-ico .ico { width: 1.55rem; height: 1.55rem; }
.pl-txt b { display: block; font: 700 1.25rem/1.1 var(--font-head); letter-spacing: .01em; color: var(--ink); }
.pl-txt small { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.pl-n { margin-left: auto; font: 700 1.1rem/1 var(--font-head); color: #a3b3ad; }
.js .stages { order: -1; }
@media (min-width: 1000px) {
  .js .showcase { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; }
  .js .stages { order: 0; grid-column: 1; grid-row: 1; }
  .js .playlist { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 1.2rem); }
}
@media (prefers-reduced-motion: reduce) { .pl-item:hover { transform: none; } }
