/* =========================================================================
   Event Productions — feuille de style unique
   Charte : rouge #E30613, anthracite #313131, blanc. Typo Source Sans.
   ========================================================================= */

/* ------------------------------------------------------------- 1. TOKENS */
:root {
  /* Couleurs de marque */
  --red: #e30613;
  --red-dark: #b80510;
  --red-light: #ff3a45;
  --ink: #17191c;
  --ink-2: #313131;
  --grey-700: #5c6066;
  --grey-500: #8b9098;
  --grey-300: #d8dbdf;
  --grey-100: #f1f2f4;
  --grey-50: #f8f9fa;
  --white: #fff;

  /* Surfaces */
  --bg: var(--white);
  --bg-soft: var(--grey-50);
  --bg-dark: #131518;
  --text: var(--ink-2);
  --text-strong: var(--ink);
  --border: var(--grey-300);

  /* Typographie */
  --font-title: 'Archivo', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* Échelle fluide */
  --fs-hero: clamp(2.4rem, 1.3rem + 4.4vw, 4.25rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --fs-base: 1.0625rem;

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --max: 1240px;
  --radius: 6px;
  --radius-lg: 14px;

  /* Effets */
  --shadow-sm: 0 2px 10px rgb(23 25 28 / 0.06);
  --shadow: 0 12px 34px rgb(23 25 28 / 0.1);
  --shadow-lg: 0 28px 70px rgb(23 25 28 / 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 128px;
}

/* --------------------------------------------------------------- 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-strong);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--red-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--text-strong); }
em { font-style: normal; color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--red); color: #fff; padding: 0.75rem 1.5rem;
  font-weight: 700; transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }

/* ------------------------------------------------------- 3. TYPO UTILITÉS */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
  margin: 0 0 1rem;
}
.kicker::before {
  content: ''; width: 34px; height: 3px; background: var(--red); flex: none;
}
.kicker-light { color: #fff; }
.kicker-light::before { background: var(--red); }

.section-title { font-size: var(--fs-h2); text-transform: uppercase; }
.section-note { color: var(--grey-700); font-size: var(--fs-lead); max-width: 46ch; }
.section-note-light { color: rgb(255 255 255 / 0.72); font-size: var(--fs-lead); max-width: 48ch; }
.lead-text { font-size: var(--fs-lead); color: var(--grey-700); }

.prose h2 { font-size: var(--fs-h3); text-transform: uppercase; margin-top: 2rem; }
.prose p { color: var(--grey-700); }

.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: rgb(255 255 255 / 0.78); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .section-title { margin-bottom: 0; }

/* ------------------------------------------------------------ 4. BOUTONS */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-title); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease),
              background-color 0.28s var(--ease), transform 0.2s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform 0.35s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn .icon { color: currentColor; }
.btn .icon svg { width: 1.1em; height: 1.1em; }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--grey-300); }
.btn-outline:hover { color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.45); }
.btn-ghost::after { background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: #fff; }

/* ------------------------------------------------------------- 5. ICÔNES */
.icon { display: inline-flex; flex: none; color: var(--red); }
.icon svg { width: 1.5rem; height: 1.5rem; }
.icon-xs svg { width: 1.05em; height: 1.05em; }
.icon-lg svg { width: 2.5rem; height: 2.5rem; stroke-width: 1.4; }

/* -------------------------------------------------------------- 6. ENTÊTE */
.header { position: sticky; top: 0; z-index: 100; }

.header-top { background: var(--ink); color: rgb(255 255 255 / 0.7); font-size: 0.8125rem; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.header-top-claim { margin: 0; letter-spacing: 0.02em; }
.header-top-links { margin: 0; display: flex; gap: 1.5rem; }
.header-top-links a { color: rgb(255 255 255 / 0.82); display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.header-top-links a:hover { color: #fff; }
.header-top-links .icon { color: var(--red-light); }

.header-main {
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-stuck .header-main { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 84px; }
.brand { flex: none; }
.brand img { width: clamp(150px, 16vw, 200px); height: auto; }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 2rem); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0; font-family: var(--font-title); font-weight: 600;
  font-size: 0.9375rem; letter-spacing: 0.02em; color: var(--ink);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--red); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-caret {
  width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor;
  margin-top: 3px; transition: transform 0.25s var(--ease);
}
.has-mega:hover .nav-caret, .has-mega.is-open .nav-caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* Méga-menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--grey-100);
  box-shadow: var(--shadow); padding-block: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-mega:hover .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.mega-card {
  display: grid; grid-template-rows: auto 1fr; gap: 0.85rem;
  padding: 0.75rem; border-radius: var(--radius); color: var(--ink);
  transition: background 0.25s var(--ease);
}
.mega-card:hover { background: var(--grey-50); color: var(--ink); }
.mega-card-media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; }
.mega-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.mega-card:hover .mega-card-media img { transform: scale(1.06); }
.mega-card-title {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.mega-card:hover .mega-card-title { color: var(--red); }
.mega-card-title .icon { color: inherit; }
.mega-card-title .icon svg { width: 1rem; height: 1rem; }
.mega-card-desc { display: block; font-size: 0.875rem; color: var(--grey-700); line-height: 1.45; }
.mega-foot { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--grey-100); font-size: 0.9rem; color: var(--grey-700); }

/* Burger + tiroir mobile */
.burger {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: #fff;
  overflow-y: auto; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: translateY(0); }
.drawer-inner { padding: 2rem var(--gutter) 3rem; display: grid; gap: 0.35rem; }
.drawer-link {
  display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--grey-100);
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.drawer-link:hover { color: var(--red); }
.drawer-link-lg { font-size: 1.25rem; font-weight: 700; }
.drawer-group { padding-block: 0.5rem; }
.drawer-group-title {
  font-family: var(--font-title); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin: 0.75rem 0 0.25rem;
}
.drawer-foot { margin-top: 1.5rem; display: grid; gap: 1rem; justify-items: center; }
.drawer-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- 7. HERO */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(560px, 88vh, 900px);
  padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 6vh, 5rem);
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(19 21 24 / 0.55) 0%, rgb(19 21 24 / 0.35) 35%, rgb(19 21 24 / 0.92) 100%),
    linear-gradient(105deg, rgb(19 21 24 / 0.8) 0%, rgb(19 21 24 / 0.1) 62%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: var(--fs-hero); color: #fff; text-transform: uppercase;
  letter-spacing: -0.035em; margin-bottom: 1.25rem; max-width: 16ch;
}
.hero-title em { color: var(--red-light); }
.hero-lead { font-size: var(--fs-lead); color: rgb(255 255 255 / 0.86); max-width: 62ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.hero-figures li { display: grid; gap: 0.15rem; }
.hero-figures strong {
  font-family: var(--font-title); font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  color: #fff; line-height: 1; letter-spacing: -0.03em;
}
.hero-figures span { font-size: 0.875rem; color: rgb(255 255 255 / 0.66); line-height: 1.35; }

/* Hero de page intérieure */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(380px, 52vh, 560px);
  padding-block: clamp(4rem, 10vh, 7rem) clamp(2.5rem, 5vh, 4rem);
  color: #fff; overflow: hidden; isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(19 21 24 / 0.6) 0%, rgb(19 21 24 / 0.45) 40%, rgb(19 21 24 / 0.9) 100%);
}
.page-hero-title { font-size: var(--fs-h1); color: #fff; text-transform: uppercase; max-width: 20ch; margin-bottom: 1rem; }
.page-hero-lead { font-size: var(--fs-lead); color: rgb(255 255 255 / 0.84); max-width: 62ch; margin: 0; }

/* --------------------------------------------------------- 8. FIL D'ARIANE */
.breadcrumb { border-bottom: 1px solid var(--grey-100); background: #fff; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-block: 0.9rem; font-size: 0.875rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: var(--grey-500); }
.breadcrumb a { color: var(--grey-700); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ 9. MARQUEE */
.marquee {
  background: var(--red); color: #fff; overflow: hidden; padding-block: 0.9rem;
  --marquee-duration: 34s;
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee-item {
  font-family: var(--font-title); font-weight: 700; font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.marquee-dot { opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* -------------------------------------------------------- 10. PRÉSENTATION */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-left { position: sticky; top: calc(var(--header-h) + 2rem); }
.prose p { font-size: var(--fs-lead); }

/* Parc machines */
.machines { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.machine-list { display: grid; gap: 0.85rem; margin: 2rem 0; }
.machine-list li { display: flex; gap: 0.85rem; align-items: flex-start; line-height: 1.5; }
.machine-list .icon { color: var(--red-light); margin-top: 0.28em; }
.machines-media { position: relative; }
.machines-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4 / 5; }
.machines-media-2 {
  position: absolute; right: -8%; bottom: -12%; width: 52%;
  aspect-ratio: 4 / 3 !important; border: 6px solid var(--bg-dark);
}

/* --------------------------------------------------- 11. CARTES PRODUITS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
.product-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  color: #fff; min-height: 420px; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.product-card-media { position: absolute; inset: 0; z-index: -2; display: block; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(19 21 24 / 0.15) 0%, rgb(19 21 24 / 0.55) 45%, rgb(19 21 24 / 0.94) 100%);
  transition: opacity 0.4s var(--ease);
}
.product-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card-content { position: relative; display: grid; gap: 0.5rem; padding: 1.75rem; align-content: end; min-height: 420px; }
.product-card-title {
  font-family: var(--font-title); font-weight: 800; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
}
.product-card-desc {
  font-size: 0.9375rem; color: rgb(255 255 255 / 0.78); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem;
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-light);
}
.product-card-link .icon { color: inherit; }
.product-card-link .icon svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.product-card-link .icon svg { transform: translateX(5px); }

/* ------------------------------------------------------- 12. ENGAGEMENTS */
.commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.commit-card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.commit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.commit-card .icon { margin-bottom: 1.1rem; }
.commit-title { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 0.5rem; }
.commit-card p { color: var(--grey-700); font-size: 0.9375rem; margin: 0; }

/* ---------------------------------------------------------- 13. STEPPER */
.stepper { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.step-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--grey-300); }
.step-tab {
  display: grid; gap: 0.35rem; justify-items: start; text-align: left;
  padding: 1.25rem 1.25rem 1.25rem 0; background: none; border: 0; border-top: 2px solid transparent;
  margin-top: -2px; cursor: pointer; color: var(--grey-500);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.step-tab:hover { color: var(--ink); }
.step-tab.is-active { color: var(--ink); border-top-color: var(--red); }
.step-n { font-family: var(--font-title); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--red); }
.step-label { font-family: var(--font-title); font-weight: 700; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); line-height: 1.15; }

.step-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.step-panel[hidden] { display: none; }
.step-panel.is-active { animation: fade-up 0.45s var(--ease) both; }
.step-panel-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.step-lead { font-family: var(--font-title); font-weight: 700; font-size: var(--fs-h3); color: var(--ink); line-height: 1.2; }
.step-panel-body p { color: var(--grey-700); }
@media (prefers-reduced-motion: reduce) { .step-panel.is-active { animation: none; } }

/* ------------------------------------------------------ 14. BLOCS PRODUIT */
.section-intro { padding-bottom: 0; }
.feature { padding-block: clamp(3rem, 6vw, 5.5rem); }
.feature-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-reverse .feature-media { order: 2; }
.feature-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.feature-title { font-size: var(--fs-h2); text-transform: uppercase; }
.feature-body > p { color: var(--grey-700); }
.feature-body .btn { margin-top: 1.5rem; }

.tick-list { display: grid; gap: 0.5rem; margin: 1.25rem 0; }
.tick-list li { position: relative; padding-left: 1.75rem; color: var(--grey-700); }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--grey-100); }
.spec-table th { font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--grey-700); text-align: right; font-variant-numeric: tabular-nums; }
.note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--grey-50); border-left: 3px solid var(--red);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem; color: var(--grey-700); margin: 1.25rem 0 0;
}
.note .icon { margin-top: 0.15em; }

/* --------------------------------------------------------- 15. GALERIE */
.gallery-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.gallery-bar .section-title { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1.1rem; border: 1px solid var(--grey-300); border-radius: 999px;
  background: #fff; font-family: var(--font-title); font-weight: 600; font-size: 0.85rem;
  color: var(--grey-700); cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 220px; gap: 1rem; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grey-100); }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile.is-hidden { display: none; }
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile-btn img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgb(19 21 24 / 0.85));
  color: #fff; font-size: 0.9rem; font-weight: 600; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease);
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: translateY(0); }
.tile-tag {
  display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.5rem;
  background: var(--red); border-radius: 3px; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.gallery-empty { margin-top: 2rem; text-align: center; color: var(--grey-500); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); max-height: 92vh;
}
.lightbox::backdrop { background: rgb(10 11 13 / 0.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); margin-inline: auto; }
.lightbox-caption { color: #fff; text-align: center; margin: 1rem 0 0; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -0.5rem; right: -0.5rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}

/* --------------------------------------------------------- 16. CTA BAND */
.cta-band {
  position: relative; background: var(--ink); color: rgb(255 255 255 / 0.75);
  padding-block: clamp(3.5rem, 7vw, 6rem); overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -10%; top: -40%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(227 6 19 / 0.35), transparent 62%);
}
.cta-band-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-band-title { font-size: var(--fs-h2); color: #fff; text-transform: uppercase; max-width: 18ch; }
.cta-band-text { max-width: 56ch; margin: 0; }
.cta-band-actions { display: grid; gap: 0.85rem; justify-items: stretch; }

/* ----------------------------------------------------------- 17. CONTACT */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-title); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  padding: 0.8rem 1rem; border: 1px solid var(--grey-300); border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgb(227 6 19 / 0.14);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { margin: 0; font-size: 0.8125rem; color: var(--red); font-weight: 600; min-height: 0; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field-check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--red); }
.field-check label { font-weight: 400; font-family: var(--font-body); font-size: 0.9rem; color: var(--grey-700); }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.is-ok { color: #0a7d33; }
.form-status.is-error { color: var(--red); }

.contact-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.info-card { background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 1.75rem; }
.info-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.hours { margin: 0; display: grid; gap: 0.75rem; }
.hours div { display: grid; gap: 0.1rem; }
.hours dt { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.hours dd { margin: 0; color: var(--grey-700); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.info-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }

.notfound { text-align: center; padding-block: clamp(5rem, 14vw, 10rem); }
.notfound .kicker, .notfound .hero-actions { justify-content: center; }
.notfound .lead-text { margin-inline: auto; max-width: 50ch; }

/* ------------------------------------------------- 17 bis. MENTIONS LÉGALES */
.legal-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal-head .section-note { max-width: 52ch; }
.legal-grid {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}

.legal-toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.legal-toc-title {
  font-family: var(--font-title); font-size: 0.8125rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin: 0 0 1rem;
}
.legal-toc ol { display: grid; gap: 0.2rem; }
.legal-toc a {
  display: flex; gap: 0.65rem; padding: 0.4rem 0;
  font-size: 0.9rem; line-height: 1.35; color: var(--grey-700);
}
.legal-toc a span {
  font-family: var(--font-title); font-weight: 700; font-size: 0.75rem;
  color: var(--grey-500); padding-top: 0.15em; flex: none;
}
.legal-toc a:hover { color: var(--red); }
.legal-toc a:hover span { color: var(--red); }

.legal-section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-section + .legal-section { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.legal-title {
  display: flex; gap: 0.75rem; align-items: baseline;
  font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 1rem;
}
.legal-n { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--red); flex: none; }
.legal-body p { color: var(--grey-700); }
.legal-body .tick-list { margin-top: 1rem; }
.legal-muted { color: var(--grey-500); font-size: 0.9375rem; }

.legal-identity {
  display: grid; gap: 0; margin: 1.5rem 0 0;
  border: 1px solid var(--grey-100); border-radius: var(--radius-lg); overflow: hidden;
}
.legal-identity > div {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-soft);
}
.legal-identity > div + div { border-top: 1px solid var(--grey-100); }
.legal-identity dt {
  font-family: var(--font-title); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.legal-identity dd { margin: 0; color: var(--grey-700); font-size: 0.9375rem; line-height: 1.5; }

.legal-lexicon { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.legal-lexicon dt { font-family: var(--font-title); font-weight: 700; color: var(--ink); }
.legal-lexicon dd { margin: 0.2rem 0 0; color: var(--grey-700); }

/* --------------------------------------------------------- 18. PIED DE PAGE */
.footer { background: var(--bg-dark); color: rgb(255 255 255 / 0.62); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; }
.footer-logo { background: #fff; padding: 0.6rem 0.9rem; border-radius: var(--radius); width: 190px; }
.footer-brand p { margin-top: 1.25rem; font-size: 0.9375rem; max-width: 40ch; }
.footer-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #fff; font-size: 0.875rem; }
.footer-badge .icon { color: var(--red-light); }
.footer-title { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col { display: grid; gap: 0.6rem; align-content: start; }
.footer-col a { color: rgb(255 255 255 / 0.62); font-size: 0.9375rem; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; font-size: 0.9375rem; }
.footer-contact .icon { color: var(--red-light); margin-top: 0.15em; }
.footer-contact a { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgb(255 255 255 / 0.62); }
.footer-bottom a:hover { color: #fff; }

/* Le pied de page contact utilise la carte claire */
.contact-aside .footer-contact { color: var(--grey-700); }
.contact-aside .footer-contact a { color: var(--grey-700); }
.contact-aside .footer-contact a:hover { color: var(--red); }
.contact-aside .footer-contact .icon { color: var(--red); }

/* ------------------------------------------------------- 19. ANIMATIONS */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
}
.no-js [data-reveal], html:not(.js) [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ------------------------------------------------------- 20. RESPONSIVE */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-actions { grid-auto-flow: column; justify-content: start; }
}

@media (max-width: 960px) {
  :root { --header-h: 122px; }
  .nav { display: none; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
  .split, .machines, .feature-inner, .step-panel, .contact-grid,
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--grey-100); }
  .split-left, .contact-aside { position: static; }
  .feature-reverse .feature-media { order: 0; }
  .machines-media-2 { position: static; width: 100%; margin-top: 1rem; border: 0; }
  .step-panel-media { order: -1; }
  .hero-figures { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
  .tiles { grid-auto-rows: 200px; }
}

@media (max-width: 720px) {
  .header-top-claim { display: none; }
  .header-top-inner { justify-content: center; }
  .step-tabs { grid-template-columns: repeat(2, 1fr); }
  .step-tab { padding-right: 0.75rem; }
  .form { grid-template-columns: 1fr; }
  .legal-identity > div { grid-template-columns: 1fr; gap: 0.35rem; }
  .tile-wide, .tile-tall { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band-actions { grid-auto-flow: row; }
}

@media (max-width: 480px) {
  .hero-actions .btn, .cta-band-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}

@media print {
  .header, .footer, .marquee, .cta-band, .drawer { display: none; }
  body { color: #000; }
}
