/* ==========================================================================
   REVOLT ENGINE — feuille de style principale
   Direction : atelier de préparation × bureau d'études.
   Signature : le plan technique (traits, cotes, règle graduée, plaque
   constructeur) et l'angle vif du logo (chanfreins).
   ========================================================================== */

/* ---------- Polices (Inter, licence SIL OFL 1.1 — voir /fonts/OFL-Inter.txt) */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('/fonts/InterDisplay-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('/fonts/InterDisplay-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Jetons de design */
:root {
  --carbon: #0d0e11;
  --graphite: #15161a;
  --panel: #1b1d22;
  --steel: #262930;
  --line: #363a43;
  --alloy: #959ba5;
  --bone: #e8e9ec;
  --white: #ffffff;
  --violet: #8a02fc; /* couleur du logo */
  --violet-hover: #9a24ff;
  --violet-text: #b388ff; /* violet lisible sur fond sombre (contraste AA) */
  --danger: #ff8f8f;
  --ok: #7fe0b0;

  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --chamfer: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --surface: var(--graphite);
  --grid-line: rgba(255, 255, 255, 0.035);
}

/* ---------- Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--carbon);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'cv05', 'cv08';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
p,
ul,
ol,
dl,
figure,
h1,
h2,
h3,
h4 {
  margin: 0;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--violet);
  color: var(--white);
}
:focus-visible {
  outline: 2px solid var(--violet-text);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--violet);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.98;
  font-synthesis: none;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 0.98;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--bone);
  max-width: 60ch;
}
.muted {
  color: var(--alloy);
}
.small {
  font-size: 0.875rem;
}
.todo {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--violet-text);
  color: var(--violet-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bone);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease);
}
.link-arrow .icon {
  width: 18px;
  height: 18px;
  color: var(--violet-text);
}
.link-arrow:hover,
a:hover .link-arrow {
  color: var(--white);
  border-color: var(--violet);
  gap: 14px;
}
.link-strong {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--violet);
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--alloy);
}
.link-button:hover {
  color: var(--bone);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Boutons (angle chanfreiné issu du logo) */
.btn {
  --btn-chamfer: 12px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--btn-chamfer)) 0, 100% var(--btn-chamfer), 100% 100%, 0 100%);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn--primary {
  background: var(--violet);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--violet-hover);
}
.btn--ghost {
  background: var(--line);
  color: var(--bone);
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--btn-chamfer) + 0.5px) 0, 100% calc(var(--btn-chamfer) - 0.5px), 100% 100%, 0 100%);
  transition: background-color 0.2s;
}
.btn--ghost:hover {
  background: var(--bone);
}
.btn--ghost:hover::before {
  background: var(--panel);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.9rem;
  --btn-chamfer: 10px;
}
.btn .icon {
  width: 18px;
  height: 18px;
}

/* ---------- En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 17, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--steel);
  background: rgba(13, 14, 17, 0.94);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: block;
  flex: none;
  padding-block: 8px;
}
.brand__logo {
  height: 42px;
  width: auto;
}
.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  gap: clamp(14px, 1.9vw, 30px);
}
.nav__link {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--alloy);
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--white);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  transform: scaleX(1);
}
.site-header__cta {
  --surface: var(--carbon);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
}
.menu-toggle .icon {
  width: 24px;
  height: 24px;
}
.menu-toggle__close {
  display: none;
}
.menu-toggle[aria-expanded='true'] .menu-toggle__open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .menu-toggle__close {
  display: block;
}
.mobile-menu {
  position: fixed;
  z-index: 49;
  inset: var(--header-h) 0 0 0;
  background: var(--carbon);
  overflow-y: auto;
  border-top: 1px solid var(--steel);
}
.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
}
.mobile-menu__nav li {
  border-bottom: 1px solid var(--steel);
}
.mobile-menu__nav li a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--bone);
}
.mobile-menu__nav li a[aria-current='page'] {
  color: var(--violet-text);
}
.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 28px 40px;
  color: var(--alloy);
}
.mobile-menu__meta a {
  color: var(--bone);
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) {
    animation: menu-in 0.32s var(--ease);
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

/* ---------- Sections */
.section {
  --surface: var(--graphite);
  padding-block: clamp(72px, 10vw, 136px);
}
.section--carbon {
  --surface: var(--carbon);
  background: var(--carbon);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: 18px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .h-section {
  grid-column: 1;
}
.section-head__intro {
  grid-column: 2;
  color: var(--alloy);
  max-width: 48ch;
}
.section-head .link-arrow {
  grid-column: 2;
  justify-self: start;
}

/* ---------- Figures et cadres */
.figure {
  position: relative;
}
.figure img {
  width: 100%;
}
.figure--frame {
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.figure figcaption {
  padding: 9px 14px;
  font-size: 0.78rem;
  color: var(--alloy);
  border-top: 1px solid var(--steel);
}

/* ---------- Plaque constructeur */
.plate {
  --rivet: radial-gradient(circle, var(--line) 0 2.2px, transparent 2.8px);
  position: relative;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.018);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: 2px 2px, calc(100% - 2px) 2px, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px);
}
.plate__title {
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--alloy);
}
.plate__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--steel);
}
.plate__row:last-child {
  border-bottom: 0;
}
.plate dt {
  font-size: 0.82rem;
  color: var(--alloy);
}
.plate dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bone);
}

/* ---------- Règle graduée */
.ruler {
  height: 14px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--alloy) 0 1px, transparent 1px 120px);
  background-size: 100% 6px, 100% 13px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
  opacity: 0.7;
}

/* ---------- Étiquettes */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--alloy);
  white-space: nowrap;
}
.tag--accent {
  border-color: rgba(138, 2, 252, 0.65);
  color: var(--violet-text);
}

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.hero {
  --surface: var(--carbon);
  position: relative;
  overflow: hidden;
  background-color: var(--carbon);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  border-bottom: 1px solid var(--steel);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  min-height: min(calc(100svh - var(--header-h) - 120px), 760px);
}
.hero__text {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 6;
  grid-row: 1;
  padding-top: clamp(40px, 7vh, 88px);
  padding-bottom: 32px;
}
.hero__title {
  margin: 0;
  font-weight: inherit;
}
.hero__brand {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--violet-text);
}
.hero__tagline {
  display: block;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.9;
  color: var(--white);
  max-width: 11.5ch;
}
.hero__lead {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--bone);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__drawing {
  position: relative;
  z-index: 1;
  grid-column: 5 / -1;
  grid-row: 1;
  align-self: end;
  margin-right: calc(var(--gutter) * -0.5);
  margin-bottom: 8px;
}
.blueprint {
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero__plate {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
}
.hero__plate .plate {
  background-color: rgba(13, 14, 17, 0.82);
}
.hero__plate .plate__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero__plate .plate__row {
  display: block;
  padding: 4px 18px;
  border-bottom: 0;
  border-left: 1px dashed var(--steel);
}
.hero__plate .plate__row:first-child {
  border-left: 0;
  padding-left: 0;
}
.hero__plate dd {
  margin-top: 2px;
}

/* Plan animé : le tracé se dessine une fois au chargement */
.js .blueprint.is-ready .draw {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.js .blueprint.is-ready .drawing > :not(.draw),
.js .blueprint.is-ready .callouts > g {
  opacity: 0;
}
.js .blueprint.is-drawn .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.55, 0, 0.2, 1);
}
.js .blueprint.is-drawn .drawing > :not(.draw) {
  opacity: 1;
  transition: opacity 0.9s ease 1.1s;
}
.js .blueprint.is-drawn .callouts > g {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.js .blueprint.is-drawn .callouts > g:nth-child(1) { transition-delay: 1.6s; }
.js .blueprint.is-drawn .callouts > g:nth-child(2) { transition-delay: 1.75s; }
.js .blueprint.is-drawn .callouts > g:nth-child(3) { transition-delay: 1.9s; }
.js .blueprint.is-drawn .callouts > g:nth-child(4) { transition-delay: 2.05s; }
.js .blueprint.is-drawn .callouts > g:nth-child(5) { transition-delay: 2.2s; }
.js .blueprint.is-drawn .callouts > g:nth-child(6) { transition-delay: 2.35s; }

/* Présentation */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: start;
}
.intro__statement {
  grid-column: 1 / span 6;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  color: var(--white);
}
.intro__text {
  grid-column: 8 / -1;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.intro__text p:not(.lead) {
  color: var(--alloy);
}
.principles {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 22px 0;
  border-block: 1px solid var(--steel);
}
.principles li {
  position: relative;
  padding-left: 26px;
  color: var(--alloy);
}
.principles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 4px;
  background: var(--violet);
  transform: skewX(-35deg);
}
.principles strong {
  color: var(--bone);
  font-weight: 600;
}

/* Domaines : liste + visuel synchronisé */
.domains__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}
.domains__list {
  border-top: 1px solid var(--steel);
  counter-reset: none;
}
.domains__item {
  position: relative;
  border-bottom: 1px solid var(--steel);
}
.domains__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--violet);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.domains__link {
  display: grid;
  gap: 6px;
  padding: 22px 0 22px 0;
  text-decoration: none;
  transition: padding 0.35s var(--ease);
}
.domains__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1;
  color: var(--alloy);
  transition: color 0.25s;
}
.domains__summary {
  color: var(--alloy);
  font-size: 0.98rem;
}
.domains__item.is-active::before {
  transform: scaleY(1);
}
.domains__item.is-active .domains__link {
  padding-left: 24px;
}
.domains__item.is-active .domains__name,
.domains__link:hover .domains__name {
  color: var(--white);
}
.domains__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.domains__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.domains__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.domains__img.is-active {
  opacity: 1;
}
.domains__caption {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--alloy);
}

/* Machines */
.machines__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.machines__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.machine-panel__link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  border: 1px solid var(--steel);
  background: var(--panel);
  transition: border-color 0.25s;
}
.machine-panel__link:hover {
  border-color: rgba(138, 2, 252, 0.7);
}
.machine-panel__visual {
  overflow: hidden;
  border-bottom: 1px solid var(--steel);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 18px 18px 6px;
}
.machine-panel__visual img {
  transition: transform 0.6s var(--ease);
}
/* Les visuels des machines conservent leur orientation d'origine. */
.machine-panel__link:hover .machine-panel__visual img {
  transform: translateX(10px);
}
.machine-panel__body {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px 26px 30px;
}
.machine-panel__body > p {
  color: var(--alloy);
}
.machine-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1;
}
.machine-panel .link-arrow {
  justify-self: start;
}

/* Cartes projets / articles / produits / expertises */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 28px;
}
.project-card,
.article-card,
.product-card,
.expertise-card {
  height: 100%;
}
.project-card__link,
.article-card__link,
.product-card__link,
.expertise-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--steel);
  transition: border-color 0.25s;
}
.project-card__link:hover,
.article-card__link:hover,
.product-card__link:hover,
.expertise-card__link:hover {
  border-color: rgba(138, 2, 252, 0.7);
}
.project-card .figure--frame,
.article-card .figure--frame,
.product-card .figure--frame,
.expertise-card .figure--frame {
  border: 0;
  border-bottom: 1px solid var(--steel);
}
.project-card__body,
.article-card__body,
.product-card__body,
.expertise-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
  flex: 1;
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card__title,
.article-card__title,
.product-card__title,
.expertise-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
a:hover .project-card__title,
a:hover .article-card__title,
a:hover .product-card__title,
a:hover .expertise-card__title {
  color: var(--violet-text);
}
.project-card__summary,
.article-card__body > p:last-child,
.product-card__body > p,
.expertise-card__body > p {
  color: var(--alloy);
  font-size: 0.97rem;
}
.project-card__machine {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--steel);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bone);
}
.project-card--large .project-card__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.projects-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
}
.projects-home__side {
  display: grid;
  gap: 28px;
}
.projects-home__side .project-card__link {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.projects-home__side .figure--frame {
  border-bottom: 0;
  border-right: 1px solid var(--steel);
  align-self: stretch;
  display: grid;
  align-items: center;
}
.projects-home__side .project-card__summary {
  display: none;
}
.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.82rem;
  color: var(--alloy);
}
.article-card__meta span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--violet);
  transform: skewX(-35deg);
}
.product-card__price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--steel);
  font-weight: 600;
  color: var(--bone) !important;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.expertise-card__title {
  font-size: 1.45rem;
}
.expertise-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Étapes (vraie séquence : de l'idée à la pièce) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-block: 30px 34px;
}
.steps__item {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 16px;
  padding-bottom: 22px;
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--violet-text);
}
.steps__item::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.steps__item:last-child::after {
  display: none;
}
.steps__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.steps__item p {
  color: var(--alloy);
  font-size: 0.97rem;
}
.steps--wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.steps--wide .steps__item {
  display: block;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.steps--wide .steps__item::before {
  display: block;
  margin-bottom: 14px;
  font-size: 2.2rem;
}
.steps--wide .steps__item::after {
  left: 0;
  top: -1px;
  bottom: auto;
  width: 34px;
  height: 3px;
  background: var(--violet);
}
.steps--wide .steps__title {
  margin-bottom: 8px;
}
.design-home__grid {
  display: block;
}
.design-home__text {
  width: 100%;
  max-width: 980px;
}
.design-home__text .steps {
  max-width: 880px;
}
.design-home__text .lead {
  margin-top: 20px;
}

/* Réseaux sociaux */
.social-home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.social-home__member {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.social-home__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1;
}
.social-home__role {
  color: var(--alloy);
  margin-bottom: 14px;
}
.social-home__buttons,
.social-row,
.member__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.2s, background-color 0.2s;
}
.social-btn .icon {
  width: 24px;
  height: 24px;
}
.social-btn span {
  display: grid;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.25;
}
.social-btn small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--alloy);
}
a.social-btn:hover {
  border-color: var(--violet);
  background: rgba(138, 2, 252, 0.09);
}
.social-btn--soon {
  border-style: dashed;
  color: var(--alloy);
}

/* Bandeau d'appel à l'action */
.cta-band {
  --surface: var(--panel);
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: end;
  padding-block: clamp(64px, 8vw, 112px);
}
.cta-band__title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  margin-bottom: 20px;
  max-width: 16ch;
}
.cta-band__text p {
  color: var(--alloy);
  max-width: 54ch;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.cta-band__chevron {
  position: absolute;
  right: -40px;
  top: 50%;
  width: clamp(180px, 22vw, 320px);
  height: auto;
  transform: translateY(-50%);
  fill: var(--violet);
  opacity: 0.16;
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */
.page-hero {
  --surface: var(--carbon);
  background-color: var(--carbon);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px 24px;
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.page-hero__text {
  grid-column: 1 / span 8;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.page-hero--split .page-hero__text {
  grid-column: 1 / span 6;
}
.page-hero__media {
  grid-column: 8 / -1;
}
.page-hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  color: var(--white);
  max-width: 16ch;
  overflow-wrap: break-word;
  hyphens: manual;
}
.page-hero--split .page-hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--alloy);
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  color: var(--line);
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--bone);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--bone);
}

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(21, 22, 26, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}
.subnav ul {
  display: flex;
  gap: 4px 26px;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.subnav a {
  display: block;
  padding: 16px 0;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--alloy);
}
.subnav a:hover {
  color: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px 72px;
  align-items: start;
}
.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 18px;
  justify-items: start;
}
.detail-aside > .plate,
.detail-aside > .figure,
.detail-aside > .notice {
  width: 100%;
}
.detail-aside__rider {
  display: grid;
  gap: 10px;
}

/* Texte long */
.prose {
  max-width: 68ch;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}
.prose h2:first-child,
.prose .h-sub:first-child,
.prose .h-section:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.9em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.3;
}
.prose p,
.prose li {
  color: #c9ccd2;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--violet-text);
}
.prose a {
  color: var(--violet-text);
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--white);
}
.prose strong {
  color: var(--bone);
}
.prose blockquote {
  margin-inline: 0;
  padding-left: 20px;
  border-left: 3px solid var(--violet);
  color: var(--bone);
}
.prose code {
  padding: 1px 6px;
  background: var(--steel);
  font-size: 0.9em;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--steel);
}
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px 72px;
}
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0 !important;
  list-style: none;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 !important;
  color: var(--bone);
}
.checklist .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--violet-text);
}
.notice {
  padding: 16px 20px;
  border-left: 3px solid var(--violet);
  background: rgba(138, 2, 252, 0.08);
}
.notice p {
  color: var(--bone) !important;
  font-size: 0.95rem;
}
.wrap > .notice {
  margin-top: 40px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--bone);
}
.empty-state {
  padding: 48px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--alloy);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.pager__link {
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.pager__link--next {
  text-align: right;
}
.pager__dir {
  font-size: 0.82rem;
  color: var(--alloy);
}
.pager__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.05;
  transition: color 0.2s;
}
.pager__link:hover .pager__label {
  color: var(--violet-text);
}

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--alloy);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.filter:hover {
  color: var(--white);
  border-color: var(--alloy);
}
.filter.is-active {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--carbon);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.gallery__item {
  display: block;
  border: 1px solid var(--steel);
  background: var(--panel);
  transition: border-color 0.2s;
  cursor: zoom-in;
}
.gallery__item:hover {
  border-color: var(--violet);
}
.lightbox {
  width: min(92vw, 1280px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--carbon);
  color: var(--bone);
}
.lightbox::backdrop {
  background: rgba(6, 6, 8, 0.86);
}
.lightbox__figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox__figure figcaption {
  padding: 12px 64px 14px 18px;
  color: var(--alloy);
  font-size: 0.9rem;
}
.lightbox__btn,
.lightbox__close {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(13, 14, 17, 0.8);
  color: var(--bone);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__prev {
  left: 12px;
  top: 40%;
}
.lightbox__next {
  right: 12px;
  top: 40%;
}
.lightbox__close {
  right: 12px;
  top: 12px;
}

/* Équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 48px;
}
.member {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 28px;
  align-items: start;
}
.member__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.member__placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet-text);
}
.member__body {
  display: grid;
  gap: 16px;
}
.member__body > p {
  color: var(--alloy);
}
.member__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
}
.member__role {
  color: var(--violet-text) !important;
  font-weight: 600;
}

/* Conception */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.showcase__body {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding-top: 16px;
}
.showcase__kind {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violet-text);
}
.showcase__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.showcase__slot {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--alloy);
}

/* Shop */
.shop-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.shop-cats__item {
  padding-top: 22px;
  border-top: 3px solid var(--violet);
}
.shop-cats__item h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.shop-cats__item p {
  color: var(--alloy);
}

/* Journal */
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.88rem;
  color: var(--alloy);
}
.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 48px 72px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.toc ol {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 0.92rem;
  color: var(--alloy);
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  color: var(--white);
}
.article__body {
  font-size: 1.1rem;
}
.article__author {
  margin-top: 2.4em !important;
  padding-top: 18px;
  border-top: 1px solid var(--steel);
  font-size: 0.92rem;
  color: var(--alloy) !important;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px 80px;
  align-items: start;
}
.contact-form-wrap {
  display: grid;
  gap: 10px;
}
.form {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bone);
}
.field input[type='text'],
.field input[type='email'],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--carbon);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--alloy) 50%), linear-gradient(135deg, var(--alloy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138, 2, 252, 0.3);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.field__hint {
  font-size: 0.85rem;
  color: var(--alloy);
}
.field__error {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--danger);
}
.field--antispam input {
  max-width: 160px;
}
.field--check {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 4px 14px;
}
.field--check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--violet);
}
.field--check label {
  font-weight: 400;
  color: var(--alloy);
}
.field--check label a {
  color: var(--violet-text);
}
.field--check .field__error {
  grid-column: 2;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  justify-self: start;
  min-width: 240px;
}
.form-status {
  padding: 16px 20px;
  border-left: 3px solid var(--violet);
  background: rgba(138, 2, 252, 0.08);
  font-weight: 600;
}
.form-status[data-tone='ok'] {
  border-color: var(--ok);
  background: rgba(127, 224, 176, 0.08);
}
.form-status[data-tone='error'] {
  border-color: var(--danger);
  background: rgba(255, 143, 143, 0.08);
}
.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 22px;
  justify-items: start;
}
.contact-aside > .plate {
  width: 100%;
}
.contact-aside__social {
  display: grid;
  gap: 10px;
  width: 100%;
}
.contact-aside__who {
  margin-top: 6px;
  font-weight: 600;
}

/* Pages légales */
.legal-list {
  display: grid;
  border-top: 1px solid var(--steel);
}
.legal-list > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--steel);
}
.legal-list dt {
  color: var(--alloy);
}
.legal-list dd {
  margin: 0;
}

/* 404 */
.not-found {
  padding-block: clamp(80px, 14vw, 180px);
  background-color: var(--carbon);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.not-found .wrap {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.not-found__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet-text);
}
.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 18ch;
}

/* Pied de page */
.site-footer {
  background: var(--carbon);
  border-top: 1px solid var(--steel);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
}
.site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 22px;
}
.site-footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}
.site-footer__brand p {
  color: var(--alloy);
  max-width: 40ch;
}
.site-footer__title {
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--alloy);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col ul {
  display: grid;
  gap: 10px;
}
.site-footer__col a {
  text-decoration: none;
  color: var(--bone);
}
.site-footer__col a:hover {
  color: var(--violet-text);
}
.site-footer__social li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__who {
  min-width: 7.2em;
  color: var(--alloy);
}
.site-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
}
.site-footer__social a:hover {
  border-color: var(--violet);
}
.site-footer__bottom {
  display: grid;
  gap: 10px;
  margin-top: 56px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--steel);
  font-size: 0.82rem;
  color: var(--alloy);
}
.site-footer__notice {
  max-width: 100ch;
}

/* Bandeau de consentement (uniquement si Google Analytics est activé) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  justify-content: center;
}
.consent__inner {
  --surface: var(--panel);
  max-width: 640px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 12px;
}
.consent__title {
  font-size: 1.05rem;
  font-weight: 600;
}
.consent p {
  color: var(--alloy);
  font-size: 0.92rem;
}
.consent a {
  color: var(--violet-text);
}
.consent__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ==========================================================================
   ADAPTATION AUX ÉCRANS
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__list {
    gap: 16px;
  }
  .nav__link {
    font-size: 0.9rem;
  }
}
@media (max-width: 1080px) {
  .nav,
  .site-header__cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero__text {
    grid-column: 1 / span 8;
  }
  .hero__drawing {
    grid-column: 3 / -1;
  }
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .machines__grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .brand__logo {
    height: 34px;
  }
  .hero__grid {
    display: block;
    min-height: 0;
  }
  .hero__text {
    padding-top: 44px;
  }
  .hero__tagline {
    font-size: clamp(2.3rem, 10.4vw, 4.4rem);
  }
  .hero__drawing {
    margin: 8px calc(var(--gutter) * -0.4) 0;
  }
  .blueprint .callouts {
    display: none;
  }
  .hero__plate .plate__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
  .hero__plate .plate__row:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .section-head,
  .intro__grid,
  .domains__grid,
  .design-home__grid,
  .projects-home__grid,
  .detail-grid,
  .prose-grid,
  .contact-grid,
  .article__grid,
  .cta-band__inner,
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head .h-section,
  .section-head__intro,
  .section-head .link-arrow,
  .intro__statement,
  .intro__text,
  .page-hero__text,
  .page-hero--split .page-hero__text,
  .page-hero__media {
    grid-column: 1;
  }
  .domains__aside {
    display: none;
  }
  .domains__item::before {
    display: none;
  }
  .domains__item.is-active .domains__link {
    padding-left: 0;
  }
  .domains__name {
    color: var(--bone);
  }
  .machines__grid,
  .machines__grid--three,
  .team-grid,
  .expertise-grid,
  .social-home__grid,
  .showcase,
  .shop-cats {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-aside,
  .contact-aside,
  .toc {
    position: static;
  }
  .toc {
    display: none;
  }
  .steps--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cta-band__chevron {
    top: auto;
    bottom: -60px;
    transform: none;
    opacity: 0.12;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }
  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta-band__actions .btn,
  .form .btn {
    width: 100%;
  }
  .projects-home__side .project-card__link {
    display: flex;
  }
  .projects-home__side .figure--frame {
    border-right: 0;
    border-bottom: 1px solid var(--steel);
  }
  .member {
    grid-template-columns: minmax(0, 1fr);
  }
  .member__placeholder {
    aspect-ratio: 16 / 9;
  }
  .field-row,
  .steps--wide,
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager__link--next {
    text-align: left;
  }
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .plate__row {
    grid-template-columns: minmax(6.5rem, 40%) 1fr;
  }
}

/* Préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Impression */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .menu-toggle,
  .consent {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}


/* ==========================================================================
   THÈMES — sombre par défaut, clair sur demande
   ========================================================================== */
:root {
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
  --carbon: #f1eef5;
  --graphite: #ffffff;
  --panel: #f7f5fa;
  --steel: #e7e2ec;
  --line: #d2cbd9;
  --alloy: #686372;
  --bone: #292431;
  --white: #17131f;
  --violet: #7800d9;
  --violet-hover: #6500bb;
  --violet-text: #7020a5;
  --danger: #b42318;
  --ok: #087443;
  --grid-line: rgba(38, 24, 54, 0.065);
}
:root[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.88);
}
:root[data-theme='light'] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}
:root[data-theme='light'] .hero__plate .plate {
  background-color: rgba(255, 255, 255, 0.88);
}
:root[data-theme='light'] .btn--primary {
  color: #ffffff;
}
:root[data-theme='light'] .mobile-menu {
  background: var(--carbon);
}
.theme-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface, var(--graphite));
  color: var(--bone);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--violet);
  color: var(--violet-text);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--violet-text);
  outline-offset: 3px;
}
@media (max-width: 1079px) {
  .theme-toggle {
    margin-left: auto;
  }
  .menu-toggle {
    margin-left: 0;
  }
}


/* Corrections du thème clair : sous-navigation, bandeau et logo. */
html.js[data-theme='light'] body main#contenu nav.subnav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  color: var(--bone);
}
html.js[data-theme='light'] body main#contenu nav.subnav a {
  color: var(--alloy);
}
html.js[data-theme='light'] body main#contenu nav.subnav a:hover,
html.js[data-theme='light'] body main#contenu nav.subnav a[aria-current='page'] {
  color: var(--white);
}
html.js[data-theme='light'] body main#contenu .cta-band {
  background: var(--panel);
  color: var(--bone);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}
html.js[data-theme='light'] body main#contenu .cta-band__title {
  color: var(--white);
}
html.js[data-theme='light'] body main#contenu .cta-band__text p {
  color: var(--alloy);
  border-color: var(--line);
}
html.js[data-theme='light'] .brand__logo path[fill='#FFFFFF'],
html.js[data-theme='light'] .site-footer__logo path[fill='#FFFFFF'] {
  fill: #17131f;
}


/* Schémas des machines : fond blanc visuellement transparent sur les deux thèmes. */
.machine-schema img {
  /* Inverse le noir vers le blanc sans désaturer les annotations bleues. */
  filter: invert(1) hue-rotate(180deg);
}
:root[data-theme='light'] .machine-schema img {
  filter: none;
}


/* ==========================================================================
   REVOLT ENGINE — harmonisation visuelle
   Plus de respiration, des images mieux mises en valeur et des parcours lisibles.
   La palette graphite / violet et les angles techniques restent inchangés.
   ========================================================================== */
:root {
  --wrap: 1360px;
  --chamfer: 10px;
}
.section {
  padding-block: clamp(68px, 8.5vw, 112px);
}
.section-head {
  margin-bottom: clamp(30px, 4vw, 48px);
  gap: 16px 56px;
}
.section-head__intro {
  line-height: 1.65;
}
.figure--frame {
  overflow: hidden;
}
.machine-panel {
  min-width: 0;
}
.machine-panel__link,
.project-card__link,
.article-card__link,
.product-card__link,
.expertise-card__link {
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.machine-panel__link:hover,
.project-card__link:hover,
.article-card__link:hover,
.product-card__link:hover,
.expertise-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}
.machine-panel__visual {
  display: grid;
  align-items: center;
  min-height: 250px;
  aspect-ratio: 16 / 9;
  padding: 12px 20px;
}
.machine-panel__visual .figure {
  display: grid;
  align-items: center;
  height: 100%;
}
.machine-panel__visual img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
}
.machine-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.machine-panel__body {
  gap: 14px;
}
.machine-panel__body .plate {
  padding: 12px 16px;
}
.machine-panel__body .plate__row {
  padding-block: 6px;
}
.machine-panel__title {
  font-size: clamp(1.45rem, 2.15vw, 1.9rem);
}
.project-card .figure,
.article-card .figure,
.product-card .figure,
.expertise-card .figure {
  aspect-ratio: 16 / 10;
  display: grid;
  align-items: center;
}
.project-card .figure img,
.article-card .figure img,
.product-card .figure img,
.expertise-card .figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-card__body,
.article-card__body,
.product-card__body,
.expertise-card__body {
  padding: 22px 22px 24px;
}
.domains__link {
  gap: 9px;
  padding-block: 24px;
}
.domains__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--violet-text);
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.82;
  transition: gap 0.25s var(--ease), opacity 0.2s;
}
.domains__more .icon {
  width: 15px;
  height: 15px;
}
.domains__link:hover .domains__more {
  gap: 12px;
  opacity: 1;
}
.domains__visual {
  aspect-ratio: 4 / 3;
}
.domains__img {
  object-fit: contain;
  padding: 14px;
}
.domains__caption {
  line-height: 1.5;
}
.team-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.team-home__card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-width: 0;
  border: 1px solid var(--steel);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.35s var(--ease);
}
.team-home__card:hover {
  border-color: rgba(138, 2, 252, 0.72);
  transform: translateY(-3px);
}
.team-home__image {
  display: grid;
  align-items: center;
  min-height: 300px;
  padding: 12px;
  border-right: 1px solid var(--steel);
  background-color: var(--carbon);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.team-home__image .figure {
  display: grid;
  align-items: center;
  height: 100%;
}
.team-home__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-home__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
}
.team-home__role {
  color: var(--violet-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.team-home__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.team-home__intro {
  color: var(--alloy);
  font-size: 0.96rem;
  line-height: 1.6;
}
.team-home__machine {
  display: grid;
  gap: 3px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--steel);
}
.team-home__machine span {
  color: var(--alloy);
  font-size: 0.78rem;
}
.team-home__machine strong {
  font-size: 0.95rem;
}
.team-home__body .link-arrow {
  margin-top: 4px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--violet-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.member-profile__intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 36px 72px;
  align-items: start;
}
.member-profile__heading {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.member-profile__heading .h-section {
  max-width: 12ch;
}
.member-profile__intro .prose {
  max-width: 72ch;
}
.member-profile__social {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px 64px;
  align-items: end;
}
.member-profile__social .section-head {
  display: block;
  margin: 0;
}
.member-profile__social .section-head__intro {
  max-width: 42ch;
  margin-top: 14px;
}
.machine-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.machine-history__item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
}
.machine-history__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
}
.machine-history__step::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.machine-history .machine-panel__visual {
  min-height: 210px;
}
.social-home__member {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.social-home__member--brand {
  border-color: rgba(138, 2, 252, 0.5);
  background: linear-gradient(135deg, rgba(138, 2, 252, 0.09), transparent 70%);
}
.social-home__member .link-arrow {
  justify-self: start;
  margin-top: 12px;
}
.social-btn {
  min-height: 50px;
  padding: 9px 14px;
}
.social-btn:hover {
  transform: translateY(-2px);
}
.site-footer {
  padding-top: clamp(52px, 6vw, 76px);
}
.site-footer__grid {
  gap: 32px;
}
:root[data-theme='light'] .social-home__member {
  background: rgba(24, 18, 34, 0.025);
}
:root[data-theme='light'] .team-home__image {
  background-color: var(--panel);
}


@media (max-width: 1080px) {
  .team-home__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .member-profile__heading {
    position: static;
  }
  .machine-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .domains__aside {
    display: block;
    position: static;
    max-width: 680px;
    margin-top: 22px;
  }
  .domains__visual {
    aspect-ratio: 16 / 9;
  }
  .member-profile__intro,
  .member-profile__social {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .machine-history {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .machine-history__item {
    max-width: 640px;
  }
}
@media (max-width: 620px) {
  .team-home__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-home__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--steel);
  }
  .team-home__body {
    padding: 22px;
  }
  .machine-panel__visual {
    min-height: 190px;
  }
  .social-home__member {
    padding: 22px 18px;
  }
}

.member__machine-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--steel);
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.member__machine-art .figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
}
.member__machine-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.member__machine-art > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 12px;
  background: rgba(13, 14, 17, 0.88);
  border-top: 1px solid var(--steel);
  color: #e8e9ec;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 620px) {
  .member__machine-art {
    aspect-ratio: 16 / 9;
  }
}

/* Les illustrations techniques claires restent lisibles sur les surfaces pâles. */
:root[data-theme='light'] .machine-panel__visual img[src$='.svg'],
:root[data-theme='light'] .team-home__image img[src$='.svg'],
:root[data-theme='light'] .member__machine-art img[src$='.svg'],
:root[data-theme='light'] .detail-aside img[src$='.svg'] {
  filter: invert(1) hue-rotate(180deg);
}


/* Les photos sont détourées côté navigateur pour rendre leur fond transparent à l'affichage. */
.machine-photo img {
  background: transparent;
}


/* Parcours des membres : image entièrement contenue dans le cadre, titre hors de la zone photo. */
.machine-history .machine-panel__visual {
  box-sizing: border-box;
  height: 320px;
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.machine-history .machine-panel__visual .figure {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-history .machine-panel__visual .figure img,
.machine-history .machine-panel__visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  transform: none;
}
.machine-history .machine-panel__link:hover .machine-panel__visual img {
  transform: none;
}
@media (max-width: 620px) {
  .machine-history .machine-panel__visual {
    height: 300px;
    padding: 12px;
  }
}

/* Léger recentrage des machines vers la gauche ; miroir fixe de l'Angwatt X1. */
.machine-history .machine-panel__visual .machine-photo img {
  position: relative;
  left: -16px;
}
.machine-history .machine-panel__visual .machine-photo--angwatt-x1 img {
  left: -16px;
  transform: scaleX(-1) !important;
  transition: none !important;
}
.machine-history .machine-panel__link:hover .machine-panel__visual .machine-photo--angwatt-x1 img {
  transform: scaleX(-1) !important;
}


/* Cartes équipe : l'image reste dans sa zone et sa légende est placée dessous. */
.team-home__image {
  min-width: 0;
  overflow: hidden;
}
.team-home__image .figure {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.team-home__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.member__machine-art {
  display: grid;
  place-items: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
}
.member__machine-art-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px;
}
.member__machine-art-visual .figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.member__machine-art-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.member__machine-art > span {
  position: static;
  padding: 10px 12px;
  background: rgba(13, 14, 17, 0.88);
  border-top: 1px solid var(--steel);
  color: #e8e9ec;
}

/* Sur petits écrans, les schémas et photos de machines ne sont jamais rognés. */
@media (max-width: 620px) {
  .team-home__card {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
  }
  .team-home__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 10px;
  }
  .team-home__image .figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .team-home__image img {
    width: 100%;
    height: 100%;
  }
  .team-home__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    background: var(--panel);
  }
  .member__machine-art {
    aspect-ratio: auto;
    min-height: 230px;
    grid-template-rows: minmax(190px, 1fr) auto;
  }
}

/* Les cartes machines utilisées ailleurs gardent toute l'image sur mobile. */
@media (max-width: 620px) {
  .machine-panel__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
    height: 260px;
    min-height: 0;
    padding: 14px;
  }
  .machine-panel__visual .figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  .machine-panel__visual img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
}


/* Sélecteur de langue FR / EN */
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-inline: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.language-switch__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.language-switch__link:hover,
.language-switch__link:focus-visible,
.language-switch__link.is-current {
  color: var(--text);
}
.language-switch__link.is-current {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.language-switch__separator {
  color: var(--line);
  user-select: none;
}
.language-switch--mobile {
  display: none;
  justify-content: flex-start;
  margin: 12px 0 0;
  font-size: 0.82rem;
}
@media (max-width: 1079px) {
  .site-header__inner > .language-switch {
    display: none;
  }
  .mobile-menu .language-switch--mobile {
    display: inline-flex;
  }
}

/* Espace client — blocs réutilisables et responsive. */
.account-section{padding-top:clamp(2rem,5vw,4.5rem)}.account-shell{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(2rem,5vw,5rem);align-items:start;max-width:1100px;margin-inline:auto}.account-intro{position:sticky;top:7rem}.account-benefits{display:grid;gap:.8rem;padding:0;margin:2rem 0 0;list-style:none}.account-benefits li::before{content:'✓';color:var(--accent);margin-right:.65rem}.account-panel{min-width:0;padding:clamp(1.25rem,3vw,2rem);border:1px solid var(--line);border-radius:18px;background:var(--surface,var(--bg))}.account-message{padding:.85rem 1rem;border-radius:10px;background:var(--surface-2,var(--line));margin:0 0 1rem}.account-message[data-state=error]{border:1px solid #b54a4a}.account-message[data-state=success]{border:1px solid #39815b}.account-tabs{display:flex;gap:.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}.account-tab{padding:.75rem 1rem;border:0;border-bottom:2px solid transparent;background:transparent;color:inherit;cursor:pointer}.account-tab.is-active{border-color:var(--accent)}.account-form{display:grid;gap:1rem}.account-form[hidden],[data-auth-view][hidden],[data-auth-form][hidden]{display:none!important}.account-field{display:grid;gap:.4rem;font-size:.9rem}.account-field input,.account-field select{width:100%;min-height:46px;padding:.7rem .8rem;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:inherit;font:inherit}.account-field-row{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.account-divider{display:flex;align-items:center;gap:1rem;color:var(--muted);font-size:.85rem;margin:1rem 0}.account-divider:before,.account-divider:after{content:'';height:1px;flex:1;background:var(--line)}.account-google{width:100%;display:flex;justify-content:center;align-items:center;gap:.7rem;min-height:46px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;text-decoration:none;font-weight:600}.account-link{color:var(--accent);background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}.account-addresses{display:grid;gap:.75rem;margin:1.2rem 0}.account-address{padding:1rem;border:1px solid var(--line);border-radius:10px}.account-future{margin-top:2rem;padding:1rem;border-radius:10px;background:var(--surface-2,var(--line))}@media(max-width:800px){.account-shell{grid-template-columns:1fr}.account-intro{position:static}}@media(max-width:520px){.account-field-row{grid-template-columns:1fr}.account-panel{padding:1rem}}
