/* Orbit : styles communs à toutes les pages (en-tête, pied de page, boutons, pages simples)
   et adaptations des maquettes au balisage des blocs WordPress. */
:root {
  --o-steel: #1c2127;
  --o-steel-2: #262c34;
  --o-steel-line: #39414c;
  --o-steel-fg: #eef0f2;
  --o-steel-muted: #9aa3ae;
  --o-red: #d8231b;
  --o-red-hover: #b81c15;
  --o-bg: #f4f5f6;
  --o-fg: #16191d;
  --o-muted: #5b6370;
  --o-line: #dde0e5;
  --o-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --o-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --o-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --o-steel: #0b0d10; --o-steel-2: #161a1f; --o-steel-line: #2c333c; --o-red: #f0453c; --o-bg: #111418; --o-fg: #eceef1; --o-muted: #9aa3ae; --o-line: #2a3038; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--o-bg); color: var(--o-fg); font-family: var(--o-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--o-steel); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--o-red); outline-offset: 3px; border-radius: 2px; }

/* Les marges entre blocs sont gérées par les styles des pages, pas par WordPress. */
:where(.wp-site-blocks) > * { margin-block: 0; }

/* ------------------------------------------------------------------ en-tête */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--o-steel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--o-steel-line); color: var(--o-steel-fg); }
.admin-bar .site-head { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; position: relative; } }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.site-head .wrap > p { margin: 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; }
.orbit-nav { margin-left: auto; display: flex; align-items: center; }
.nav-toggle { display: none; font: 600 14px/1 var(--o-sans); color: var(--o-steel-fg); background: transparent; border: 1px solid var(--o-steel-line); border-radius: 6px; padding: 9px 14px; cursor: pointer; }
.nav-panel { display: flex; align-items: center; gap: 22px; }
.nav-links, .nav-links .sub, .langs { list-style: none; margin: 0; padding: 0; }
.nav-links { display: flex; gap: 22px; font-size: 14.5px; }
.nav-links a { color: var(--o-steel-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--o-steel-fg); }
.nav-links .has-sub { position: relative; }
.nav-links .sub { position: absolute; top: 100%; left: -16px; min-width: 180px; padding: 8px 0; margin-top: 10px; background: var(--o-steel-2); border: 1px solid var(--o-steel-line); border-radius: 6px; box-shadow: 0 16px 32px -12px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-links .sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-links .sub a { display: block; padding: 8px 16px; font: 600 13px/1.2 var(--o-display); font-stretch: 112%; letter-spacing: .06em; }
.nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-links .sub-wide { min-width: 240px; }
.nav-links .sub-wide a { font: 500 14px/1.3 var(--o-sans); letter-spacing: 0; }
.langs { display: flex; border: 1px solid var(--o-steel-line); border-radius: 999px; overflow: hidden; font: 500 11.5px/1 var(--o-mono); letter-spacing: .06em; }
.langs a, .langs span { display: block; padding: 6px 9px; color: var(--o-steel-muted); text-decoration: none; }
.langs a:hover { color: var(--o-steel-fg); }
.langs span { background: var(--o-steel-2); color: var(--o-steel-fg); }
.site-head .head-cta { display: inline-flex; align-items: center; font: 600 14px/1 var(--o-sans); padding: 10px 16px; border-radius: 6px; background: var(--o-red); color: #fff; text-decoration: none; white-space: nowrap; }
.site-head .head-cta:hover { background: var(--o-red-hover); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 28px; background: var(--o-steel); border-bottom: 1px solid var(--o-steel-line); }
  .orbit-nav.is-open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; font-size: 18px; }
  .nav-links a { display: block; padding: 8px 0; color: var(--o-steel-fg); }
  .nav-links .sub { position: static; opacity: 1; visibility: visible; transform: none; margin: 0 0 6px 14px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-links .sub a { padding: 6px 0; font-size: 14px; color: var(--o-steel-muted); }
  .langs { align-self: flex-start; }
  .site-head .wrap { position: relative; }
}
@media (max-width: 600px) { .site-head .head-cta { display: none; } }

/* ------------------------------------------------------------------ pied de page */
.site-foot { background: var(--o-steel); color: var(--o-steel-muted); font-size: 14.5px; }
.site-foot .foot-main { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 64px 40px; }
.site-foot h4 { margin: 0 0 14px; font: 500 12px/1 var(--o-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--o-steel-fg); }
.site-foot p { margin: 0; line-height: 1.7; }
.site-foot .foot-pitch { margin-top: 16px; max-width: 34ch; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--o-steel-fg); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .foot-base { border-top: 1px solid var(--o-steel-line); }
.site-foot .foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font: 400 12.5px/1.4 var(--o-mono); }
@media (max-width: 860px) { .site-foot .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-foot .foot-main { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ boutons (bloc Bouton) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button[class*="btn-"] > .wp-block-button__link,
button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--o-sans); padding: 14px 20px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.wp-block-button.btn-red > .wp-block-button__link, button.btn-red { background: var(--o-red); color: #fff; }
.wp-block-button.btn-red > .wp-block-button__link:hover, button.btn-red:hover { background: var(--o-red-hover); }
.wp-block-button.btn-ghost > .wp-block-button__link { background: transparent; border-color: var(--o-steel-line); color: var(--o-steel-fg); }
.wp-block-button.btn-ghost > .wp-block-button__link:hover { background: var(--o-steel-2); }
.wp-block-button[class*="btn-"] > .wp-block-button__link:active, button.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ pages simples */
.page-main { padding-block: 72px 96px; }
.page-main .wp-block-post-title { font: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--o-display); font-stretch: 112%; margin: 0 0 32px; }
.page-main .entry-content > * + * { margin-top: 1em; }
.page-main .entry-content { max-width: 72ch; font-size: 17px; }

/* ------------------------------------------------------------------ formulaire de démo */
.orbit-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; font-size: 14.5px; color: #b81c15; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff8a83; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Logos des références clients ([orbit_clients]) : accueil et pages produits */
.client-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-logos li { flex: 0 0 calc((100% - 48px) / 5); height: 120px; display: flex; align-items: center; justify-content: center; padding: 0 28px; background: #fff; border: 1px solid var(--o-line); border-radius: 10px; }
.client-logos img { width: 100%; height: 72px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.client-logos li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .client-logos img { filter: none; opacity: 1; } }
@media (max-width: 860px) { .client-logos li { flex-basis: calc((100% - 24px) / 3); height: 84px; padding: 0 12px; } .client-logos img { height: 52px; } }
