/* Be in Web : feuille de style du site vitrine (v2, monde « atelier de précision ») */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/geistmono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/geistmono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons : gris froid du logo, orange du logo, thème clair unique ---------- */
:root {
  color-scheme: light;
  --ground: #f3f4f6;
  --paper: #fbfbfc;
  --paper-2: #ffffff;
  --ink: #16181c;
  --ink-2: #4f555d;
  --ink-3: #7c828a;
  --line: #dfe2e6;
  --line-2: #c9ced4;
  --orange: #f15a24;
  --orange-hover: #e04f1b;
  --orange-deep: #c9430f;
  --orange-tint: #fff0e8;
  --orange-line: #f9c4ac;
  --on-orange: #1a120d;
  --shadow: 0 24px 48px -28px rgb(22 24 28 / .28);
  --shadow-soft: 0 12px 32px -20px rgb(22 24 28 / .22);
  --radius: 16px;
  --radius-s: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; accent-color: var(--orange); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .faq dt, :lang(de) .links-grid span, :lang(de) .tile h3 { hyphens: auto; }
sup { font-size: .6em; line-height: 0; vertical-align: super; }
::selection { background: var(--orange-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }

.wrap { width: min(100% - 2 * clamp(20px, 5vw, 40px), 1160px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--ink); color: var(--paper); font-weight: 500;
}
.skip:focus { top: 12px; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 64px; width: auto; }

.site-nav { display: flex; gap: 26px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.site-nav a { padding: 6px 0; transition: color 150ms ease; }
.nav-cta { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px;
  font: inherit; font-size: .875rem; font-weight: 500;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-s);
  cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.menu-toggle .ico { width: 18px; height: 18px; }
.menu-toggle:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--ink); }
  .menu-toggle:hover { border-color: var(--ink-3); }
}

@media (max-width: 1099px) {
  .site-nav {
    position: absolute; top: 100%; left: calc(-1 * clamp(20px, 5vw, 40px)); right: calc(-1 * clamp(20px, 5vw, 40px));
    flex-direction: column; gap: 0;
    padding: 6px clamp(20px, 5vw, 40px) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav a { padding: 13px 0; font-size: 1.0625rem; color: var(--ink); border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: 0; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 479px) {
  .header-inner { gap: 20px; }
  .brand img { height: 50px; }
  .header-actions .btn { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 6px; font-weight: 600; color: var(--orange-deep); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: var(--radius-s);
  font-size: .9375rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out), box-shadow 150ms ease;
}
.btn .ico { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 1px 0 rgb(22 24 28 / .06), 0 8px 20px -12px rgb(241 90 36 / .7); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-primary:hover .ico { transform: translateX(3px); }
  .btn-ghost:hover { border-color: var(--ink-3); }
}

/* ---------- Accueil : texte + panneau orange avec l'assemblage ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
h1 {
  font-size: clamp(2.5rem, 1.3rem + 3.9vw, 4.25rem);
  line-height: 1.02; letter-spacing: -.035em;
}
.lead {
  margin-top: 26px; max-width: 30em;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-panel {
  position: relative; overflow: hidden;
  min-height: 520px; border-radius: 24px;
  background: var(--orange);
  background-image: radial-gradient(120% 90% at 100% 0%, rgb(255 255 255 / .18), transparent 55%);
  box-shadow: var(--shadow);
}
.assembly { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; }

.dim {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; width: 260px;
  color: var(--on-orange); font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
}
.dim-line { flex: 1; height: 1px; background: currentColor; opacity: .7; }
.dim-tick { width: 1px; height: 12px; background: currentColor; opacity: .7; }
.dim-label { white-space: nowrap; }

@keyframes hover-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.js [data-enter] { animation: enter 800ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 100ms + 60ms); }
@keyframes enter {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { min-height: 380px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tight { padding-top: clamp(40px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }

/* Savoir-faire : grille bento (6 cases exactement) */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b c"
    "d e f f";
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 150ms ease;
}
.tile-a { grid-area: a; } .tile-b { grid-area: b; } .tile-c { grid-area: c; }
.tile-d { grid-area: d; } .tile-e { grid-area: e; } .tile-f { grid-area: f; }
.tile-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ground); color: var(--orange-deep); }
.tile-icon .ico { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; }
.tile p { color: var(--ink-2); font-size: 1rem; }
.tile-tint { background: var(--orange-tint); border-color: var(--orange-line); }
.tile-tint .tile-icon { background: rgb(255 255 255 / .8); }
.tile-tint .dim { position: static; transform: none; width: auto; margin-top: 4px; padding-top: 12px; color: var(--orange-deep); }
.tile-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile-ink p { color: rgb(251 251 252 / .78); }
.tile-ink .tile-icon { background: rgb(255 255 255 / .1); color: var(--orange); }
.tile-note { margin-top: 4px; padding-top: 6px; font-family: var(--mono); font-size: .8125rem; color: var(--orange) !important; }
.tile-dots { background-color: var(--paper-2); background-image: linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / .9)), radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 100% 100%, 16px 16px; background-position: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-2); }
  .tile-tint:hover { border-color: var(--orange); }
  .tile-ink:hover { border-color: var(--ink); }
}
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e" "f f"; }
}
@media (max-width: 599px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e" "f"; gap: 12px; }
  .tile { padding: 24px 22px 22px; }
}

/* Facturation électronique : bandeau orange pleine largeur */
.band { background: var(--orange); color: var(--on-orange); padding-block: clamp(64px, 8vw, 112px); }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.band h2 { color: var(--on-orange); }
.band-copy > p { margin-top: 18px; font-size: 1.125rem; max-width: 34em; color: rgb(26 18 13 / .88); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.checks .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--on-orange); background: rgb(255 255 255 / .55); border-radius: 50%; padding: 3px; }
.band-date { border-left: 1px solid rgb(26 18 13 / .3); padding-left: clamp(24px, 3vw, 40px); }
.date-big { display: flex; flex-direction: column; line-height: .95; letter-spacing: -.04em; font-weight: 700; color: #fff8f4; }
.date-day { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); }
.date-year { font-size: clamp(4.5rem, 2.5rem + 8vw, 9rem); }
.date-text { margin-top: 18px; font-size: 1.125rem; font-weight: 500; max-width: 22em; }
.date-sub { margin-top: 10px; font-size: .9375rem; color: rgb(26 18 13 / .78); }
@media (max-width: 899px) {
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band-date { border-left: 0; border-top: 1px solid rgb(26 18 13 / .3); padding-left: 0; padding-top: 28px; }
}

/* Méthode : rail d'étapes numérotées (une vraie séquence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--orange); }
.step-n { display: inline-block; font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--orange-deep); margin-bottom: 12px; }
.steps h3 { font-size: 1.1875rem; letter-spacing: -.015em; line-height: 1.3; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 899px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Engagements : grille d'icônes */
.pledges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 6vw, 80px); }
.pledges li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; align-items: start; }
.pledge-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); color: var(--orange-deep); grid-row: span 2; }
.pledge-icon .ico { width: 24px; height: 24px; }
.pledges h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; margin-top: 8px; }
.pledges p { grid-column: 2; color: var(--ink-2); }
@media (max-width: 719px) { .pledges { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Bandeau de marque : le logo complet */
.strip { padding-block: 8px clamp(56px, 7vw, 96px); }
.strip-inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); padding: 28px clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.strip-inner img { width: 260px; flex-shrink: 0; }
.strip-inner p { color: var(--ink-2); font-size: 1.0625rem; max-width: 40em; }
.strip-copy { display: grid; gap: 12px; justify-items: start; }
.strip-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--orange-deep); }
.strip-more .ico { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .strip-more:hover .ico { transform: translateX(3px); } }
@media (max-width: 639px) { .strip-inner { flex-direction: column; align-items: flex-start; } .strip-inner img { width: 220px; } }

/* Contact */
.section-contact { padding-top: 0; }
.contact-box {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); border-radius: 24px;
  background: var(--ink); color: var(--paper);
}
.contact-box h2 { color: var(--paper); }
.contact-copy > p { margin-top: 18px; font-size: 1.125rem; color: rgb(251 251 252 / .74); max-width: 34em; }
.contact-side { display: grid; gap: 18px; justify-items: start; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.2rem, .9rem + 1.6vw, 1.75rem); color: var(--paper); }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .875rem; font-weight: 500;
  height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgb(251 251 252 / .28); background: transparent; color: rgb(251 251 252 / .85); cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.copy .ico { width: 16px; height: 16px; }
.copy:active { transform: scale(.97); }
.copy.is-done { color: var(--orange); border-color: var(--orange); }
.small { font-size: .9375rem; color: rgb(251 251 252 / .6); }
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: rgb(251 251 252 / .08); color: var(--paper); }
}
@media (max-width: 899px) { .contact-box { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: 56px 28px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-brand img { width: 200px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9375rem; color: var(--ink-2); }
.footer-links a { transition: color 150ms ease; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--ink); } }

/* ---------- Pages simples (mentions légales, 404) ---------- */
.prose { max-width: 720px; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); }
.prose h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.03em; line-height: 1.08; }
.prose .intro { margin-top: 20px; font-size: 1.125rem; color: var(--ink-2); }
.prose h2 { font-size: 1.375rem; letter-spacing: -.02em; margin-top: 48px; }
.prose p { margin-top: 14px; color: var(--ink-2); }
.prose a { color: var(--orange-deep); border-bottom: 1px solid transparent; transition: border-color 150ms ease; }
.prose a:hover { border-bottom-color: currentColor; }
.legal { margin: 18px 0 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; }
.legal dt { color: var(--ink-3); font-size: .9375rem; padding-top: 2px; }
.legal dd { margin: 0; color: var(--ink); }
@media (max-width: 559px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .legal dd { margin-bottom: 12px; } }
.prose .updated { margin-top: 48px; font-size: .875rem; color: var(--ink-3); }
.prose .actions { margin-top: 32px; }

/* ---------- Apparitions au défilement ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Bouton de langue (FR/EN) */
.lang { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .04em; transition: color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--ink); border-color: var(--ink-3); } }

/* Technologies : grille de logos (Simple Icons) */
.tech { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.tech li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem; font-weight: 500; text-align: center; transition: border-color 150ms ease, color 150ms ease, transform 220ms var(--ease-out); }
.tech .ico { width: 30px; height: 30px; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tech li:hover { border-color: var(--orange); color: var(--ink); transform: translateY(-2px); } }
@media (max-width: 1023px) { .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tech li { padding: 14px 6px 12px; font-size: .75rem; } }

/* Orbite 3D des technologies autour du logo (gadget) */
.tech-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.tech-head .section-head { margin-bottom: 0; }
.orbit { --r: 190px; position: relative; height: 340px; perspective: 1100px; display: grid; place-items: center; touch-action: pan-y; overflow: hidden; }
.orbit-ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(-16deg + var(--oy, 0deg))) rotateY(var(--ox, 0deg)); transition: transform 700ms var(--ease-out); }
.orbit-item {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-soft); color: var(--ink);
  transform: rotateY(calc(var(--n) * 22.5deg)) translateZ(var(--r)) rotateY(calc(var(--n) * -22.5deg));
}
.orbit-item .ico { width: 26px; height: 26px; }
/* le logo est au centre de l'anneau, dans la même 3D : les logos qui passent devant le couvrent,
   ceux de derrière passent dessous ; tourné face à l'écran (inverse de l'inclinaison de l'anneau) */
.orbit-core { position: absolute; left: 50%; top: 50%; width: 168px; height: auto; translate: -50% -50%; transform: rotateY(calc(var(--ox, 0deg) * -1)) rotateX(calc(16deg - var(--oy, 0deg))); transition: transform 700ms var(--ease-out); filter: drop-shadow(0 12px 24px rgb(22 24 28 / .18)); }
.js .orbit.is-idle .orbit-item { animation: orbit-turn 40s linear infinite; animation-delay: calc(var(--n) * -2.5s); }
@keyframes orbit-turn {
  0% { transform: rotateY(0deg) translateZ(var(--r)) rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(180deg) translateZ(var(--r)) rotateY(-180deg); opacity: .35; }
  100% { transform: rotateY(360deg) translateZ(var(--r)) rotateY(-360deg); opacity: 1; }
}
@media (max-width: 899px) {
  .tech-head { grid-template-columns: minmax(0, 1fr); }
  .orbit { --r: 140px; height: 280px; }
  .orbit-core { width: 136px; }
}
@media (max-width: 479px) {
  .orbit { --r: 112px; height: 240px; }
  .orbit-item { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .orbit-item .ico { width: 22px; height: 22px; }
  .orbit-core { width: 116px; }
}

/* ---------- v3 : pages métier, langues, pied de page ---------- */

/* Menu des langues (details/summary, sans dépendance) */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px;
  border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink-2); font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
  cursor: pointer; list-style: none; transition: color 150ms ease, border-color 150ms ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .ico { width: 16px; height: 16px; }
.lang-menu summary .ico:last-child { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
.lang-menu[open] summary .ico:last-child { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-origin: top right; animation: lang-in 160ms var(--ease-out);
}
@keyframes lang-in { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .9375rem; transition: background-color 150ms ease; }
.lang-list a span { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.lang-list a[aria-current="true"] { background: var(--orange-tint); }
.lang-list a[aria-current="true"] span { color: var(--orange-deep); }
@media (hover: hover) and (pointer: fine) {
  .lang-menu summary:hover { color: var(--ink); border-color: var(--ink-3); }
  .lang-list a:hover { background: var(--ground); }
}

/* Accueil : lien « En savoir plus » des tuiles (toute la tuile est cliquable) */
.tile-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--orange-deep); }
.tile-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-more .ico { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.tile-ink .tile-more { color: var(--orange); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-more .ico { transform: translateX(3px); } }

/* Pages métier : en-tête */
.hero-page h1 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.05; }
.hero-page .hero-panel { min-height: 460px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 22px; font-size: .875rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); transition: color 150ms ease; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }
.crumb-sep { color: var(--line-2); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }
@media (max-width: 899px) { .hero-page .hero-panel { min-height: 340px; } }

/* Bandeau : phrase forte à la place d'une date */
.aside-big { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: #fff8f4; text-wrap: balance; }

/* Questions fréquentes */
.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 6vw, 80px); }
.faq-item { padding-top: 20px; border-top: 1px solid var(--line-2); }
.faq dt { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.35; text-wrap: balance; }
.faq dd { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 719px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* Liens vers les autres savoir-faire */
.links-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.links-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.links-grid a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line); font-weight: 500; color: var(--ink);
  transition: border-color 150ms ease, transform 200ms var(--ease-out);
}
.links-grid a .ico { width: 22px; height: 22px; color: var(--orange-deep); }
.links-grid a .ico:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--ink-3); transition: transform 200ms var(--ease-out), color 150ms ease; }
.links-grid a:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .links-grid a:hover { border-color: var(--orange); }
  .links-grid a:hover .ico:last-child { transform: translateX(3px); color: var(--orange-deep); }
}
@media (max-width: 899px) { .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .links-grid, .links-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Notre histoire : frise */
.timeline { list-style: none; margin: 0 0 0 7px; padding: 0; border-left: 2px solid var(--line-2); display: grid; gap: 30px; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 28px; padding-left: 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 2px var(--orange); }
.timeline li:last-child::before { background: var(--orange); }
.tl-when { font-family: var(--mono); font-size: .9375rem; font-weight: 500; color: var(--orange-deep); padding-top: 2px; }
.tl-body h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; }
.tl-body p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 639px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }

/* Pied de page en colonnes */
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 36px clamp(32px, 5vw, 64px); align-items: start; }
.footer-title { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-title-gap { margin-top: 24px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer-list a { color: var(--ink-2); font-size: .9375rem; transition: color 150ms ease; }
.footer-langs { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 18px; }
.footer-langs a[aria-current="true"] { color: var(--orange-deep); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .footer-list a:hover { color: var(--ink); } }
@media (max-width: 899px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 559px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-list-2 { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 379px) {
  .header-inner { gap: 12px; }
  .brand img { height: 42px; }
  .lang-menu summary .ico:first-child { display: none; }
  .menu-label { display: none; }
  .menu-toggle { padding: 0 10px; }
}

/* ---------- v4 : scènes 3D des pages métier (CSS pur) ---------- */
.scene {
  position: relative; width: 300px; height: 300px; margin-top: 40px;
  transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--tx, 0deg))) rotateZ(calc(-34deg + var(--tz, 0deg)));
  transition: transform 700ms var(--ease-out);
}
.piece { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--d); transform: translateZ(var(--z, 0px)); transform-style: preserve-3d; }
.box { position: absolute; inset: 0; transform-style: preserve-3d; }
.f { position: absolute; overflow: hidden; }
.f-top { inset: 0; transform: translateZ(var(--h)); }
.f-front { left: 0; top: calc(var(--d) - var(--h)); width: var(--w); height: var(--h); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.f-left { left: calc(var(--h) * -1); top: 0; width: var(--h); height: var(--d); transform-origin: 100% 50%; transform: rotateY(90deg); }
/* faces cachées au repos, dessinées seulement pour les volumes qui tournent (option full) */
.f-back { left: 0; top: calc(var(--h) * -1); width: var(--w); height: var(--h); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.f-right { left: var(--w); top: 0; width: var(--h); height: var(--d); transform-origin: 0 50%; transform: rotateY(-90deg); }
.f-bottom { inset: 0; transform: translateZ(0); }
.box-paper .f-back { background: #e4e7ec; } .box-paper .f-right { background: #cdd2d9; } .box-paper .f-bottom { background: #cdd2d9; }
.box-paper .f-top { background: #ffffff; } .box-paper .f-front { background: #e4e7ec; } .box-paper .f-left { background: #cdd2d9; }
.box-ink .f-top { background: #2b2f37; } .box-ink .f-front { background: #1b1e23; } .box-ink .f-left { background: #0e1013; }
.box-tint .f-top { background: #ffe6db; } .box-tint .f-front { background: #f9cdb9; } .box-tint .f-left { background: #eeb397; }
.floor-shadow { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--d); border-radius: 50%; background: radial-gradient(closest-side, rgb(22 24 28 / var(--o, .3)), rgb(22 24 28 / 0)); transform: translateZ(.5px); }
.lbl { position: absolute; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.lbl-accent { color: var(--orange); }

/* Entrées : les volumes tombent d'au-dessus du cadre (pas d'opacité : elle aplatirait la 3D) */
.js .piece.drop { animation: piece-drop 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 380ms); }
.js .piece.rise { animation: piece-rise 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 380ms); }
@keyframes piece-drop { from { translate: 0 0 440px; } to { translate: 0 0 0; } }
@keyframes piece-rise { from { translate: 0 0 -60px; scale: .92; } to { translate: 0 0 0; scale: 1; } }
.js .hero-panel[data-enter] { animation-name: panel-in; }
@keyframes panel-in { from { translate: 0 16px; } to { translate: 0 0; } }
.js .assembly.is-idle .scene { animation: hover-float 7s var(--ease-in-out) 1.6s infinite; }

/* Sites marchands */
.tape { position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; background: rgb(241 90 36 / .85); }
.tape-v { left: 50%; right: auto; top: 0; bottom: 0; width: 14px; height: auto; margin: 0 0 0 -7px; }
.tape-orange { background: var(--orange); }
.sticker { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 6px; border-radius: 3px; background: var(--ink); color: #fff; font: 500 10px/1.15 var(--mono); }

/* Jeux en ligne */
.chip { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(var(--ca) 0 14deg, var(--cb) 14deg 45deg); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.chip::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--cb); box-shadow: inset 0 0 0 2px var(--ca); }
.pip { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); }
.die-box .f { border-radius: 9px; }
.js .assembly.is-idle .die-box { animation: die-hop 3.6s var(--ease-in-out) 1.8s infinite; }
@keyframes die-hop {
  0% { translate: 0 0 0; rotate: z 0deg; }
  25% { translate: 0 0 36px; rotate: z 180deg; }
  50%, 100% { translate: 0 0 0; rotate: z 360deg; }
}

/* Industrie */
.plate-lbl { left: 12px; bottom: 10px; }
.gear { position: absolute; inset: 0; transform-style: preserve-3d; }
.gear-1 { --gc: #16181c; } .gear-2 { --gc: #c9430f; }
.gear-1 .gear-layer:last-child { --gc: #2b2f37; } .gear-2 .gear-layer:last-child { --gc: #e2541c; }
.gear-layer { position: absolute; inset: 0; transform: translateZ(calc(var(--l) * 4px)); }
.gear-disc { position: absolute; inset: 4px; border-radius: 50%; background: var(--gc); }
.gear-disc::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #ffffff; }
.tooth { position: absolute; left: 50%; top: 50%; width: 16px; height: 14px; margin: -7px 0 0 -8px; border-radius: 3px; background: var(--gc); transform: rotate(calc(var(--k) * 30deg)) translateY(calc(var(--r) * -1 + 2px)); }
.js .assembly.is-idle .gear-1 { animation: gear-spin 16s linear infinite; }
.js .assembly.is-idle .gear-2 { animation: gear-spin 10.4s linear infinite reverse; }
@keyframes gear-spin { from { rotate: z 0deg; } to { rotate: z 360deg; } }

/* Facturation électronique */
.sheet { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 4px; background: #ffffff; }
.sheet-head { display: block; padding: 7px 8px; border-radius: 3px; background: var(--ink); color: #fff; font: 600 10px/1 var(--mono); letter-spacing: .04em; }
.sheet-ln { display: block; height: 7px; width: var(--l); border-radius: 4px; background: #e4e7ec; }
.sheet-total { margin-top: auto; align-self: flex-end; width: 46%; height: 16px; border-radius: 4px; background: var(--orange); }
.post { position: absolute; left: var(--px); top: calc(var(--py) - 80px); width: 2px; height: 80px; margin-left: -1px; background: repeating-linear-gradient(to bottom, #ffffff 0 5px, transparent 5px 10px); transform-origin: 50% 100%; transform: translateZ(2px) rotateX(-90deg); }
.js .post { animation: post-in 500ms ease both; animation-delay: 1150ms; }
@keyframes post-in { from { opacity: 0; } to { opacity: 1; } }
.datalayer { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: rgb(22 24 28 / .9); border: 1px solid rgb(255 255 255 / .22); }
.xml { margin: 0; padding: 14px 10px; font: 500 9.5px/1.9 var(--mono); color: #ffffff; white-space: pre; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(to bottom, rgb(241 90 36 / 0), rgb(241 90 36 / .45), rgb(241 90 36 / 0)); }
.js .assembly.is-idle .scanline { animation: scan 3.4s var(--ease-in-out) infinite; }
@keyframes scan { from { translate: 0 0; } to { translate: 0 190px; } }

/* Applications */
.screen { position: absolute; inset: 7px; display: flex; flex-direction: column; gap: 9px; padding: 12px 10px; overflow: hidden; border-radius: 14px; background: #f5f6f8; }
.scr-head { height: 30px; border-radius: 7px; background: var(--orange); }
.scr-row { height: 26px; border-radius: 7px; background: #ffffff; box-shadow: inset 0 0 0 1px #e1e4e8; }
.scr-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 6px 0 2px; }
.scr-nav i { width: 14px; height: 14px; border-radius: 4px; background: #cfd4db; }
.card { position: absolute; inset: 0; border-radius: 12px; background: #ffffff; box-shadow: 0 0 0 1px rgb(22 24 28 / .06); }
.card-note { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; align-content: center; padding: 0 12px; }
.card-note .dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); }
.card-note .ln { display: block; height: 6px; width: var(--l); border-radius: 3px; background: #d6dbe1; }
.card-chart { display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.card-chart span { flex: 1; height: calc(var(--v) * 100%); border-radius: 3px 3px 0 0; background: var(--ink); }
.card-chart span:nth-child(4) { background: var(--orange); }
.card-pill { border-radius: 999px; background: var(--ink); }
.card-pill span { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); }
.js .assembly.is-idle .float-card .card { animation: card-float 4.4s var(--ease-in-out) infinite; animation-delay: var(--fd); }
@keyframes card-float { 0%, 100% { translate: 0 0 0; } 50% { translate: 0 0 10px; } }

/* Intelligence artificielle */
.doc { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7px; padding: 10px 8px; border-radius: 4px; background: #ffffff; box-shadow: 0 0 0 1px rgb(22 24 28 / .08); }
.doc span { display: block; height: 5px; width: var(--l); border-radius: 3px; background: #d6dbe1; }
.core-top { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); }
.core-top .ico { width: 46px; height: 46px; }
.dots { position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 255 255 / .16) 1.4px, transparent 1.8px) 0 0 / 12px 12px; }
.tag-lbl { left: 10px; top: 50%; translate: 0 -50%; font-size: 9.5px; }
.js .assembly.is-idle .core-top .ico { animation: core-pulse 2.8s var(--ease-in-out) infinite; }
@keyframes core-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.14; } }

/* Reprise et modernisation */
.floppy .f-top { clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%); }
.shutter { position: absolute; left: 28%; width: 44%; top: 0; height: 36%; border-radius: 0 0 3px 3px; background: #c7ccd4; }
.shutter::after { content: ""; position: absolute; left: 60%; width: 16%; top: 18%; height: 58%; border-radius: 2px; background: #16181c; }
.flabel { position: absolute; left: 12%; right: 12%; bottom: 8%; height: 44%; padding: 6px 7px; border-radius: 3px; background: #ffffff; color: var(--ink); font: 500 9.5px/1.25 var(--mono); }
.ui-ln { display: block; height: 6px; width: var(--l); margin: 12px 0 0 12px; border-radius: 3px; background: #d6dbe1; }
.new-lbl { left: 12px; bottom: 10px; font-weight: 600; }
.bit { position: absolute; inset: 0; border-radius: 4px; background: var(--orange); box-shadow: 0 0 0 2px #ffffff; }
.piece.travel { opacity: 0; }
.js .assembly.is-idle .piece.travel { animation: piece-travel 2.4s linear infinite; animation-delay: var(--td); }
@keyframes piece-travel {
  0% { translate: 0 0 0; opacity: 0; }
  15% { opacity: 1; }
  50% { translate: calc(var(--dx) / 2) calc(var(--dy) / 2) calc(var(--dz) / 2 + 60px); }
  85% { opacity: 1; }
  100% { translate: var(--dx) var(--dy) var(--dz); opacity: 0; }
}

/* Intégrations et API */
.link { position: absolute; left: 150px; top: 150px; width: 58px; height: 2px; margin-top: -1px; transform-origin: 0 50%; transform: translateZ(2px) rotate(var(--a)) translateX(40px); background: repeating-linear-gradient(90deg, #ffffff 0 6px, transparent 6px 11px); }
.packet { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0; }
.js .assembly.is-idle .packet { animation: packet-run 2.2s linear infinite; animation-delay: var(--pd); }
@keyframes packet-run { 0% { translate: 0 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { translate: 52px 0; opacity: 0; } }
.sat-lbl { left: 8px; right: 6px; top: 50%; translate: 0 -50%; font-size: 10px; }
.hub-lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 var(--mono); letter-spacing: .06em; color: var(--orange); }

/* PrestaShop */
.tile-ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); }
.tile-ico .ico { width: 30px; height: 30px; }
.js .assembly.is-idle .tile-center { animation: tile-bob 3.6s var(--ease-in-out) 1.8s infinite; }
@keyframes tile-bob { 0%, 100% { translate: 0 0 0; } 50% { translate: 0 0 10px; } }

/* Hébergement */
.units { position: absolute; inset: 10px; display: grid; grid-template-rows: repeat(5, 1fr); gap: 6px; }
.unit { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 8px; border-radius: 4px; background: #262a31; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.unit-lbl { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 9px/1.1 var(--mono); color: rgb(255 255 255 / .82); }
.led { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 6px rgb(241 90 36 / .8); }
.led-2 { background: #ffffff; box-shadow: none; }
.vents { position: absolute; inset: 14px 12px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .1) 0 3px, transparent 3px 9px); }
.rack-top { position: absolute; inset: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.js .assembly.is-idle .led { animation: led-blink 2.2s steps(1, end) infinite; animation-delay: var(--dl); }
@keyframes led-blink { 0% { opacity: 1; } 50% { opacity: .25; } }

/* Notre histoire */
.step-lbl { left: 12px; top: 50%; translate: 0 -50%; font-size: 12px; font-weight: 600; }

/* ---------- v5 : accueil, la ville des métiers (chaque lot est un lien, son nom au survol) ---------- */
.scene-home { margin-top: 24px; }
@media (min-width: 1200px) { .scene-home { scale: 1.1; } }
@media (min-width: 900px) and (max-width: 999px) { .scene-home { scale: .8; } }
@media (min-width: 1000px) and (max-width: 1099px) { .scene-home { scale: .9; } }
.box-orange .f-top { background: #f47a4c; } .box-orange .f-front { background: var(--orange); } .box-orange .f-left { background: #c9430f; }
.city-plate .f-top {
  --st: #dce0e6;
  /* rues : bandes grises et ligne blanche pointillée au milieu */
  background:
    repeating-linear-gradient(180deg, #ffffff 0 5px, transparent 5px 11px) 69.75px 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(180deg, #ffffff 0 5px, transparent 5px 11px) 138.75px 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(180deg, #ffffff 0 5px, transparent 5px 11px) 207.75px 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(90deg, #ffffff 0 5px, transparent 5px 11px) 0 69.75px / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, #ffffff 0 5px, transparent 5px 11px) 0 138.75px / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, #ffffff 0 5px, transparent 5px 11px) 0 207.75px / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent 64px, var(--st) 64px 77px, transparent 77px 133px, var(--st) 133px 146px, transparent 146px 202px, var(--st) 202px 215px, transparent 215px),
    linear-gradient(transparent 64px, var(--st) 64px 77px, transparent 77px 133px, var(--st) 133px 146px, transparent 146px 202px, var(--st) 202px 215px, transparent 215px),
    #f4f5f7;
}
/* bords du socle : une ombre de la couleur de la face masque le liseré orange de l'anticrénelage */
.city-plate .f-front { box-shadow: 0 0 0 .6px #e4e7ec; } .city-plate .f-left { box-shadow: 0 0 0 .6px #cdd2d9; }
.plaza .f-top { box-shadow: inset 0 0 0 1px #e4e7ec; }
.dash { position: absolute; inset: 7px; display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 6px; background: #f5f6f8; }
.dash-head { padding: 4px 5px; border-radius: 4px; background: var(--orange); color: #ffffff; font: 600 9.5px/1.2 var(--mono); }
.dash-bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 4px; }
.dash-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 2px 2px 0 0; background: var(--ink); transform-origin: 50% 100%; }
.dash-bars i:nth-child(4) { background: var(--orange); }
.dash-ln { display: block; flex-shrink: 0; height: 4px; width: var(--l, 82%); border-radius: 2px; background: #d6dbe1; }
.js .assembly.is-idle .dash-bars i { animation: bar-breathe 3.2s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--k) * -.6s); }
@keyframes bar-breathe { from { scale: 1 1; } to { scale: 1 .7; } }

.lot { position: absolute; left: var(--x); top: var(--y); width: 56px; height: 56px; transform: translateZ(var(--z)); transform-style: preserve-3d; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lot:focus { outline: none; }
.js .lot { animation: piece-drop 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 380ms); }
.lot-sel { position: absolute; inset: -3px; border: 2px solid transparent; border-radius: 10px; background: radial-gradient(closest-side, rgb(22 24 28 / .16), rgb(22 24 28 / 0)); transform: translateZ(.4px); transition: border-color 200ms ease; }
.lot-lift { position: absolute; inset: 0; transform-style: preserve-3d; transition: translate 350ms var(--ease-out); }
/* étiquette tournée face à l'écran : l'inverse de la rotation de la scène, inclinaison du pointeur
   comprise ; la rotation est portée par l'étiquette elle-même (un point d'ancrage de taille nulle qui
   tourne fausse le rendu logiciel de Chrome). --ta : -50 % centrée, -75 % au bord droit, -25 % au bord gauche */
.lot-tag { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.lot-tag span { position: absolute; left: 0; top: 0; padding: 6px 9px; border-radius: 7px; background: var(--ink); color: #ffffff; font: 600 11px/1 var(--mono); white-space: nowrap; opacity: 0; box-shadow: 0 10px 24px -10px rgb(22 24 28 / .7); transform-origin: 0 0; transform: translateZ(var(--th)) rotateZ(calc(34deg - var(--tz, 0deg))) rotateX(calc(-58deg - var(--tx, 0deg))) translate(var(--ta, -50%), -100%); translate: 0 0 -6px; transition: opacity 180ms ease, translate 300ms var(--ease-out), transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lot:hover .lot-lift { translate: 0 0 10px; }
  .lot:hover .lot-sel { border-color: var(--orange); }
  .lot:hover .lot-tag span { opacity: 1; translate: 0 0 0; }
}

/* miniatures : les objets des pages métier, à l'échelle de la ville */
.scene-home .units { inset: 4px; gap: 2px; }
.scene-home .unit { justify-content: flex-end; gap: 2px; padding: 0 3px; border-radius: 1.5px; }
.scene-home .led { width: 3px; height: 3px; box-shadow: 0 0 3px rgb(241 90 36 / .8); }
.scene-home .led-2 { box-shadow: none; }
.scene-home .vents { inset: 4px 3px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .1) 0 1.5px, transparent 1.5px 4px); }
.scene-home .screen { inset: 2px; gap: 3px; padding: 4px 3px 3px; border-radius: 4px; }
.scene-home .scr-head { flex-shrink: 0; height: 8px; border-radius: 2px; }
.scene-home .scr-row { flex-shrink: 0; height: 6px; border-radius: 2px; }
.scene-home .scr-nav { padding: 0; }
.scene-home .scr-nav i { width: 4px; height: 4px; border-radius: 1px; }
.scene-home .core-top .ico { width: 18px; height: 18px; }
.scene-home .dots { background: radial-gradient(circle, rgb(255 255 255 / .16) .9px, transparent 1.2px) 0 0 / 6px 6px; }
.scene-home .doc { gap: 2px; padding: 3px 2px; border-radius: 1.5px; }
.scene-home .doc span { height: 2px; border-radius: 1px; }
.scene-home .tape { height: 5px; margin-top: -2.5px; }
.scene-home .tape-v { width: 5px; height: auto; margin: 0 0 0 -2.5px; }
.scene-home .chip::after { inset: 5px; box-shadow: inset 0 0 0 1px var(--ca); }
.mini-die .f { border-radius: 3px; }
.scene-home .pip { width: 3.5px; height: 3.5px; margin: -1.75px 0 0 -1.75px; }
.js .assembly.is-idle .mini-die { animation: mini-hop 3.6s var(--ease-in-out) 2.6s infinite; }
@keyframes mini-hop {
  0% { translate: 0 0 0; rotate: z 0deg; }
  25% { translate: 0 0 14px; rotate: z 180deg; }
  50%, 100% { translate: 0 0 0; rotate: z 360deg; }
}
.scene-home .sheet { gap: 3px; padding: 4px; border-radius: 2px; }
.scene-home .sheet-head { height: 6px; padding: 0; border-radius: 1.5px; }
.scene-home .sheet-ln { height: 3px; border-radius: 1.5px; }
.scene-home .sheet-total { height: 5px; border-radius: 1.5px; }
.scene-home .datalayer { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; border-radius: 3px; }
.dl-ln { display: block; flex-shrink: 0; height: 2px; width: var(--l); border-radius: 1px; background: rgb(255 255 255 / .75); }
.scene-home .scanline { height: 8px; }
.js .assembly.is-idle .scene-home .scanline { animation-name: mini-scan; }
@keyframes mini-scan { from { translate: 0 0; } to { translate: 0 34px; } }
.js .assembly.is-idle .mini-float { animation: card-float 4.4s var(--ease-in-out) infinite; }
.scene-home .tooth { width: 6px; height: 5px; margin: -2.5px 0 0 -3px; border-radius: 1.5px; }
.scene-home .gear-disc { inset: 2px; }
.scene-home .gear-layer { transform: translateZ(calc(var(--l) * 1.5px)); }
.mlink { position: absolute; left: 28px; top: 28px; width: 30px; height: 1.5px; margin-top: -.75px; transform-origin: 0 50%; transform: rotate(var(--a)); background: repeating-linear-gradient(90deg, var(--ink-3) 0 3px, transparent 3px 6px); }
.mpkt { position: absolute; left: 0; top: -1.25px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: 0; }
.js .assembly.is-idle .mpkt { animation: mini-run 2s linear infinite; animation-delay: var(--pd); }
@keyframes mini-run { 0% { translate: 12px 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { translate: 26px 0; opacity: 0; } }
.hub-dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--orange); }
.scene-home .flabel { left: 14%; right: 14%; padding: 0; }
.js .assembly.is-idle .mini-bob { animation: mini-bob 3.6s var(--ease-in-out) 1.8s infinite; }
@keyframes mini-bob { 0%, 100% { translate: 0 0 0; } 50% { translate: 0 0 5px; } }
.scene-home .bit { border-radius: 2px; box-shadow: 0 0 0 1.5px #ffffff; }
.spoke-pkt { opacity: 0; }
.js .assembly.is-idle .spoke-pkt { animation: spoke-run 2.8s linear infinite; animation-delay: calc(var(--pd) + 2.4s); }
@keyframes spoke-run { 0% { translate: 0 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { translate: var(--dx) var(--dy); opacity: 0; } }

@media (max-width: 899px) { .scene { scale: .8; } }
@media (max-width: 479px) { .scene { scale: .68; } }
@media (max-width: 359px) { .scene { scale: .6; } }
/* la ville est large et basse : un peu plus grande que les autres scènes sur téléphone */
@media (min-width: 600px) and (max-width: 899px) { .scene.scene-home { scale: .9; } }
@media (max-width: 479px) { .scene.scene-home { scale: .74; } }
@media (max-width: 359px) { .scene.scene-home { scale: .64; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-enter] { animation: fade 300ms ease both; animation-delay: 0s; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .js .piece.drop, .js .piece.rise, .js .post, .js .hero-panel[data-enter] { animation: none; }
  .piece.travel, .packet, .spoke-pkt, .mpkt { display: none; }
  .js .lot { animation: none; }
  .js .assembly.is-idle .mini-die, .js .assembly.is-idle .mini-float, .js .assembly.is-idle .mini-bob, .js .assembly.is-idle .dash-bars i, .js .assembly.is-idle .scene-home .scanline { animation: none; }
  .lot-lift, .lot-tag span { transition: none; }
  .js .assembly.is-idle .scene, .js .assembly.is-idle .die-box, .js .assembly.is-idle .gear-1, .js .assembly.is-idle .gear-2, .js .assembly.is-idle .scanline, .js .assembly.is-idle .float-card .card, .js .assembly.is-idle .core-top .ico, .js .assembly.is-idle .tile-center, .js .assembly.is-idle .led { animation: none; }
  .scene { transition: none; }
  .js .orbit.is-idle .orbit-item { animation: none; }
  .orbit-ring, .orbit-core { transition: none; }
  .btn, .copy, .menu-toggle, .tile { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
  .btn:active, .copy:active, .menu-toggle:active { transform: none; }
  .tile:hover, .tech li:hover { transform: none; }
  .lang-list { animation: none; }
  .links-grid a:active { transform: none; }
  .site-nav { transition: opacity 120ms ease, visibility 0s linear 120ms; transform: none; }
}
