/* ==========================================================================
   Transacom — design system (Bleu Roi #001f98)
   ========================================================================== */

:root {
  --color-primary: #001f98;
  --color-primary-deep: #001670;
  --color-primary-soft: #e8ecfb;
  --color-accent: #3d5cfe;
  --color-sky: #5b8def;
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-line: #e2e8f0;
  --color-surface: #ffffff;
  --color-surface-2: #f4f6fb;
  --color-success: #059669;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 31, 152, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 31, 152, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-deep);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: rgba(0, 31, 152, 0.15);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-light:hover {
  color: var(--color-primary-deep);
  background: #f8fafc;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-nav {
  margin-left: 0.5rem;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand .custom-logo-link,
.brand .site-logo {
  display: flex;
  align-items: center;
}

.brand img,
.custom-logo {
  max-height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* Hero (accueil — Bleu Roi, aligné pages secondaires)
   ========================================================================== */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 95% 5%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(61, 92, 254, 0.35), transparent 55%),
    linear-gradient(135deg, var(--color-primary) 0%, #0b2fc4 55%, #3d5cfe 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-subtitle strong {
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Primary CTA on blue: white pill; secondary: ghost light */
.hero .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero .btn-primary:hover {
  background: #f8fafc;
  color: var(--color-primary-deep);
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hero-visual {
  position: relative;
  min-height: 340px;
}

.hero-card {
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card--main {
  position: relative;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(0, 31, 152, 0.08);
  background: linear-gradient(145deg, #001f98 0%, #0a2bb8 45%, #3d5cfe 100%);
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card--shot {
  padding: 0;
  min-height: 0;
  background: #0b1228;
}

.hero-shot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.hero-shot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 15, 60, 0.92));
  color: #fff;
}

.hero-shot-label strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.hero-thumbs {
  position: absolute;
  right: -4%;
  bottom: -6%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(42%, 180px);
  z-index: 2;
}

.hero-thumbs img {
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.hero-card-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  margin: 0.35rem 0;
}

.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero-stat-sub {
  opacity: 0.8;
  font-size: 0.95rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.hero-card--float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  animation: float 4.5s var(--ease) infinite;
}

.hero-card--1 {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}

.hero-card--2 {
  bottom: 6%;
  left: -6%;
  animation-delay: 1.2s;
  color: var(--color-success);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  animation: pulse 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Sections
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Services
   ========================================================================== */

.section-services {
  background: var(--color-surface-2);
}

/* Endless carousel viewport (services + partners) — transform, no scrollbar */
.services-track,
.partners-track {
  overflow: hidden;
  position: relative;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  padding-bottom: 0.25rem;
  /* Kill native scroll UI completely */
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.services-track::-webkit-scrollbar,
.partners-track::-webkit-scrollbar {
  display: none;
  height: 0;
}

.services-track.is-endless-carousel,
.partners-track.is-endless-carousel {
  outline: none;
}

.services-track.is-endless-carousel:focus-visible,
.partners-track.is-endless-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 31, 152, 0.22);
  border-radius: var(--radius-sm);
}

/* Soft edge fade so cards enter/leave cleanly */
.services-track.is-endless-carousel::before,
.services-track.is-endless-carousel::after,
.partners-track.is-endless-carousel::before,
.partners-track.is-endless-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.25rem;
  width: 1.5rem;
  z-index: 2;
  pointer-events: none;
}

.services-track.is-endless-carousel::before,
.partners-track.is-endless-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-surface-2), transparent);
}

.services-track.is-endless-carousel::after,
.partners-track.is-endless-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-surface-2), transparent);
}

.services-grid,
.partners-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: max-content;
  align-items: stretch;
  will-change: transform;
  backface-visibility: hidden;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(260px, 78vw);
  width: min(260px, 78vw);
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: rise 0.7s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

.service-card--media {
  padding: 0;
  overflow: hidden;
}

.service-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-primary-soft);
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .service-thumb img {
  transform: scale(1.04);
}

.service-icon--overlay {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.service-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 31, 152, 0.2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon--overlay {
  background: #fff;
  margin-bottom: 0;
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-text {
  color: var(--color-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--color-primary);
}

.service-link:hover {
  gap: 0.65rem;
}

/* Supervision teaser
   ========================================================================== */

.section-supervision {
  padding-top: 0;
  margin-top: -1rem;
}

.supervision-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0b2fc4 55%, #3d5cfe 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.supervision-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.supervision-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: #fff;
}

.supervision-copy p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.monitor-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--ok {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.monitor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.monitor-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.status-ok {
  color: #a7f3d0;
  font-size: 0.85rem;
}

/* Markets carousel
   ========================================================================== */

.section-markets {
  background: var(--color-surface-2);
}

.markets-track {
  overflow: hidden;
  position: relative;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  touch-action: pan-y;
}

.markets-track::-webkit-scrollbar {
  display: none;
}

.markets-track.is-endless-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 31, 152, 0.22);
  border-radius: var(--radius-sm);
  outline: none;
}

.markets-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: max-content;
  align-items: stretch;
  will-change: transform;
}

.market-card {
  flex: 0 0 min(300px, 82vw);
  width: min(300px, 82vw);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.market-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.market-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.market-title {
  margin: 0;
  font-size: 1.12rem;
  color: var(--color-primary-deep);
  line-height: 1.25;
}

.market-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
}

.market-solutions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.market-solutions li {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  line-height: 1.3;
}

.markets-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  max-width: 48rem;
}

/* Why
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.why-card:hover {
  border-color: rgba(0, 31, 152, 0.25);
  transform: translateY(-3px);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Partners
   ========================================================================== */

.section-partners {
  background: var(--color-surface-2);
}

.partner-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  flex: 0 0 min(270px, 78vw);
  width: min(270px, 78vw);
  min-height: 100%;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.partner-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 31, 152, 0.22);
  color: inherit;
}

.partner-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0;
}

.partner-logo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.partner-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.partner-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
  line-height: 1.25;
}

.partner-name--fallback {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.partner-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.45;
  flex: 1;
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--color-primary);
}

a.partner-card:hover .partner-cta {
  gap: 0.55rem;
}

/* Client space
   ========================================================================== */

.section-client {
  /* Contrasts with partners (surface-2) and contact (blue tint) */
  background: #fff;
  border-block: 1px solid var(--color-line);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.client-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.35rem;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
  box-shadow: none;
}

.client-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 31, 152, 0.22);
  color: inherit;
}

.client-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.client-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--color-ink);
}

.client-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Contact
   ========================================================================== */

.section-contact {
  background:
    radial-gradient(ellipse 70% 55% at 95% 5%, rgba(61, 92, 254, 0.12), transparent 52%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(0, 31, 152, 0.08), transparent 55%),
    linear-gradient(165deg, #f4f6fb 0%, #e8ecf8 45%, #f0f3fc 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  font-weight: 650;
  font-size: 1.1rem;
}

.contact-form-panel {
  background: #fff;
  border: 1px solid rgba(0, 31, 152, 0.1);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}

.section-contact .section-sub {
  max-width: 28rem;
}

.section-contact .contact-info h2 {
  color: var(--color-primary-deep);
}

.contact-form-placeholder .placeholder-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.demo-form,
.wpcf7 form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.demo-form label,
.wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

.demo-form label.full,
.wpcf7 label.full,
.wpcf7-form-control-wrap:has(textarea) {
  grid-column: 1 / -1;
}

.demo-form input,
.demo-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.demo-form input:focus,
.demo-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 31, 152, 0.12);
}

.demo-form .btn,
.wpcf7 .btn,
.wpcf7 input[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 650;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  font-size: 0.8rem;
}

.wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0 !important;
  border-radius: var(--radius-sm);
}

/* Inner pages
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0b2fc4 60%, #3d5cfe 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
}

.page-hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.media-section {
  background: var(--color-surface-2);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
}

.media-gallery {
  display: grid;
  gap: 1.25rem;
}

.media-gallery--gallery {
  grid-template-columns: repeat(2, 1fr);
}

.media-gallery--duo {
  grid-template-columns: 1.2fr 0.8fr;
}

.media-gallery--stack {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
}

.media-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #f1f5f9;
}

.media-img--contain {
  object-fit: contain;
  padding: 1rem;
  background: #fff;
}

.supervision-visual--shot {
  position: relative;
  z-index: 1;
}

.supervision-visual--shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.media-figure figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

.prose img,
.prose figure img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
}

.prose figure {
  margin: 1.75rem 0;
}

.prose figcaption {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.page-hero--simple {
  padding: 2.5rem 0;
}

.page-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero--simple .page-title {
  margin: 0;
}

.page-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.6;
}

.content-wrap {
  padding: 3rem 0 4rem;
  max-width: 760px;
}

.prose {
  color: var(--color-ink);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  color: var(--color-primary-deep);
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  font-weight: 600;
}

.features-section {
  background: var(--color-surface-2);
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.features-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.feature-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.cta-band {
  background: var(--color-surface-2);
  padding: 3rem 0 5rem;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--color-muted);
}

/* Assistance (remote support)
   ========================================================================== */

.page-hero--assistance .page-lead {
  max-width: 40rem;
}

.section-assistance {
  background: var(--color-surface-2);
  padding-top: 2.5rem;
}

.assistance-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 960px;
}

.assistance-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.assistance-detected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.assistance-os {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 650;
  color: var(--color-ink);
}

.assistance-os-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.assistance-os-label {
  display: block;
  font-size: 1.05rem;
}

.assistance-os-file {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.assistance-alt-toggle {
  display: block;
  margin: 1.35rem auto 0;
  background: none;
  border: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.35rem;
}

.assistance-alt-toggle:hover {
  color: var(--color-primary);
}

.assistance-unknown-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.assistance-alt-list {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.assistance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line);
  font-size: 0.95rem;
}

.assistance-row:first-child {
  border-top: none;
  padding-top: 0;
}

.assistance-row-label {
  font-weight: 600;
  color: var(--color-ink);
}

.assistance-file-link {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  word-break: break-all;
  text-align: right;
}

.assistance-file-link:hover {
  text-decoration: underline;
}

.assistance-side {
  display: grid;
  gap: 1rem;
}

.assistance-steps,
.assistance-help,
.assistance-extra {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.assistance-steps h2,
.assistance-help h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--color-primary-deep);
}

.assistance-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.assistance-steps li {
  margin-bottom: 0.45rem;
}

.assistance-help p {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
}

.assistance-help a {
  font-weight: 650;
  font-size: 1.05rem;
}

.assistance-help-note {
  font-size: 0.88rem !important;
  color: var(--color-muted);
}

@media (max-width: 800px) {
  .assistance-layout {
    grid-template-columns: 1fr;
  }

  .assistance-detected {
    flex-direction: column;
    align-items: stretch;
  }

  .assistance-detected .btn {
    width: 100%;
  }

  .assistance-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .assistance-file-link {
    text-align: left;
  }
}

/* Footer
   ========================================================================== */

.site-footer {
  background: #070f2e;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand img,
.site-footer .custom-logo {
  filter: brightness(0) invert(1);
  max-height: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.footer-tagline,
.footer-contact {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0 1.75rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .supervision-panel,
  .contact-grid,
  .footer-grid,
  .page-hero-grid,
  .media-gallery--gallery,
  .media-gallery--duo {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    position: static;
    width: 100%;
    flex-direction: row;
    margin-top: 0.75rem;
  }

  .hero-thumbs img {
    width: 50%;
  }

  .why-grid,
  .features-grid,
  .features-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 280px;
    max-width: 420px;
  }

  .hero-card--1 {
    right: 0;
  }

  .hero-card--2 {
    left: 0;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
  }

  .btn-nav {
    margin: 0.5rem 0 0;
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .why-grid,
  .features-grid,
  .features-grid--4 {
    grid-template-columns: 1fr;
  }

  .demo-form,
  .wpcf7 form {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }
}
