/* Six Solutions — static site */
/* Fonts: load via <link> in HTML so this file is not blocked by @import */

/* Dark theme by default; `html[data-theme="light"]` restores light palette */
:root {
  color-scheme: dark;
  --color-bg: #0e1115;
  --color-text: #fafafa;
  --color-muted: #a1a1aa;
  --color-border: #3f3f46;
  --color-surface: #141416;
  --color-surface-raised: #1a1a1d;
  --color-section-muted: rgba(20, 20, 22, 0.94);
  --color-zinc-50: #18181b;
  --color-zinc-100: #27272a;
  --color-zinc-900: #fafafa;
  --color-zinc-950: #030303;
  --primary: #fb923c;
  --primary-hover: #f97316;
  --primary-muted-bg: rgba(251, 146, 60, 0.14);
  --color-nav: #e4e4e7;
  --color-nav-hover: #fafafa;
  --color-nav-active: #ffffff;
  --header-border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(14, 17, 21, 0.78);
  --header-scrolled-border: rgba(63, 63, 70, 0.9);
  --header-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
  --header-scrolled-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
  --dropdown-bg: rgba(20, 20, 22, 0.94);
  --dropdown-border: rgba(255, 255, 255, 0.12);
  --dropdown-hover: rgba(251, 146, 60, 0.12);
  --dropdown-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --nav-mobile-bg: rgba(14, 17, 21, 0.97);
  --breadcrumb-bg: rgba(14, 17, 21, 0.92);
  --gradient-row-a: #1c1c1f;
  --gradient-row-b: #18181b;
  --gradient-panel-a: #1f1f23;
  --gradient-panel-b: #141416;
  --gradient-hero-soft-a: #18181b;
  --gradient-hero-soft-b: #141416;
  --gradient-team-a: #141416;
  --gradient-team-b: #18181b;
  --gradient-team-c: #141416;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 40px -16px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 20px 50px -12px rgba(251, 146, 60, 0.14);
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --site-nav-height: 4.8rem;
  --max-w: 72rem;
  --radius: 2px;
  --radius-lg: 4px;
  --radius-2xl: 4px;
}

html[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f1f1f4;
  --color-text: #18181b;
  --color-muted: #52525b;
  --color-border: #e4e4e7;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-section-muted: rgba(244, 244, 245, 0.92);
  --color-zinc-50: #fafafa;
  --color-zinc-100: #f4f4f5;
  --color-zinc-900: #18181b;
  --color-zinc-950: #09090b;
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-muted-bg: rgba(249, 115, 22, 0.06);
  --color-nav: #000000;
  --color-nav-hover: #3f3f46;
  --color-nav-active: #000000;
  --header-border: rgba(255, 255, 255, 0.28);
  --header-bg: rgba(255, 255, 255, 0.1);
  --header-scrolled-border: rgba(228, 228, 231, 0.75);
  --header-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
  --header-scrolled-shadow: 0 8px 36px rgba(15, 23, 42, 0.09);
  --dropdown-bg: rgba(255, 255, 255, 0.1);
  --dropdown-border: rgba(255, 255, 255, 0.35);
  --dropdown-hover: rgba(255, 255, 255, 0.16);
  --dropdown-shadow:
    0 8px 32px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --nav-mobile-bg: rgba(255, 255, 255, 0.95);
  --breadcrumb-bg: rgba(250, 250, 250, 0.85);
  --gradient-row-a: #ffffff;
  --gradient-row-b: var(--color-zinc-50);
  --gradient-panel-a: #fafafa;
  --gradient-panel-b: #ffffff;
  --gradient-hero-soft-a: var(--color-zinc-50);
  --gradient-hero-soft-b: #ffffff;
  --gradient-team-a: #ffffff;
  --gradient-team-b: var(--color-zinc-50);
  --gradient-team-c: #ffffff;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -16px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 20px 50px -12px rgba(249, 115, 22, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  clip: auto;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
}

/* ——— Layout ——— */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

main {
  flex: 1;
  padding-top: var(--site-nav-height);
}

.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--header-shadow);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--header-scrolled-border);
  box-shadow: var(--header-scrolled-shadow);
}

.site-header__inner {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 0.5rem 2rem;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  color: var(--color-text);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

/* Dark is default (no attribute): show sun → switch to light */
.theme-toggle__icon--sun {
  display: block;
}

.theme-toggle__icon--moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

.site-header.is-home-top:not(.is-scrolled) .theme-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-header.is-home-top:not(.is-scrolled) .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  padding: 0.35rem 0.96rem;
}

.site-header__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.site-header__logo img {
  position: relative;
  z-index: 1;
  height: 2.75rem;
  width: auto;
}

@media (min-width: 768px) {
  .site-header__logo {
    padding: 0.38rem 1.16rem;
  }

  .site-header__logo img {
    height: 3.1rem;
  }
}

/* Nav text: home top = light; scrolled or inner pages = dark */
.site-header:not(.is-home-top) .nav-link,
.site-header.is-scrolled .nav-link {
  color: var(--color-nav);
}

.site-header:not(.is-home-top) .nav-link:hover,
.site-header.is-scrolled .nav-link:hover {
  color: var(--color-nav-hover);
}

.site-header:not(.is-home-top) .nav-link.is-active,
.site-header.is-scrolled .nav-link.is-active {
  font-weight: 600;
  color: var(--color-nav-active);
}

.site-header.is-home-top:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.site-header.is-home-top:not(.is-scrolled) .nav-link:hover {
  color: #fff;
}

.site-header.is-home-top:not(.is-scrolled) .nav-link.is-active {
  color: #fff;
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: none;
}

/* Capabilities dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
}

.site-header.is-home-top:not(.is-scrolled) .nav-dropdown__btn {
  color: rgba(255, 255, 255, 0.88);
}

.site-header.is-home-top:not(.is-scrolled) .nav-dropdown__btn:hover {
  color: #fff;
}

.site-header:not(.is-home-top) .nav-dropdown__btn,
.site-header.is-scrolled .nav-dropdown__btn {
  color: var(--color-nav);
}

.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 16rem;
  padding: 0.5rem 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 60;
  isolation: isolate;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
}

.nav-dropdown__panel a:hover {
  background: var(--dropdown-hover);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

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

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

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

.btn--lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn--hero-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero CTA — glassmorphism over imagery */
.btn--hero-glass {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.btn--hero-glass:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--hero-glass--primary {
  background: rgba(249, 115, 22, 0.42);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--hero-glass--primary:hover {
  background: rgba(249, 115, 22, 0.58);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--hero-glass--outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--hero-glass--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Nav CTA stays primary orange on home (same as inner pages), including after scroll */
.btn--nav-cta.btn--primary {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.site-header.is-home-top:not(.is-scrolled) .btn--nav-cta.btn--primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.site-header.is-home-top:not(.is-scrolled) .btn--nav-cta.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.nav-toggle {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-zinc-900);
}

.site-header.is-home-top:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

/* Home : menu blanc seulement avant scroll ; au scroll (.is-scrolled) les règles noires ci-dessus s’appliquent */
body[data-page="home"] .site-header:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-link:hover {
  color: #fff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-link.is-active {
  color: #fff;
  font-weight: 600;
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-dropdown__btn {
  color: rgba(255, 255, 255, 0.88);
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-dropdown__btn:hover {
  color: #fff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .btn--nav-cta.btn--primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

body[data-page="home"] .site-header:not(.is-scrolled) .btn--nav-cta.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem 1.25rem;
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-muted);
}

.nav-mobile a:hover {
  color: var(--color-text);
}

.nav-mobile .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  margin-top: 0.5rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--site-nav-height));
  padding-top: var(--site-nav-height);
  /* Always dark behind imagery (independent of theme text tokens) */
  background: #0e1115;
  color: #fff;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 21, 0.65);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.25rem;
}

/* Mobile : hero centré */
@media (max-width: 1023px) {
  .hero__content {
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* Desktop : bloc hero légèrement décalé vers la gauche (hors centrage strict) */
@media (min-width: 1024px) {
  .hero__content {
    padding: 8rem 2rem;
    margin-left: max(1.25rem, calc((100vw - var(--max-w)) / 2 - 2.5rem));
    margin-right: auto;
    text-align: left;
  }
}

.hero__kicker {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 0, 0, 0.55),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.hero__title {
  margin: 0;
  max-width: 64rem;
  font-size: clamp(2.85rem, 8vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero__title-accent {
  color: var(--primary);
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(249, 115, 22, 0.35);
}

.hero__lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #d4d4d8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section--muted {
  background-color: var(--color-section-muted);
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-zinc-900);
}

.section__intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--color-muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* Cards grid */
.grid-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .grid-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-service {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.card-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #fb923c);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-service:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(251, 146, 60, 0.35);
  transform: translateY(-3px);
  color: inherit;
}

html[data-theme="light"] .card-service:hover {
  border-color: rgba(249, 115, 22, 0.25);
}

.card-service__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--color-zinc-100);
}

.card-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.card-service:hover .card-service__media img {
  transform: scale(1.05);
}

.card-service__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
}

.card-service__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: capitalize;
}

.card-service:hover .card-service__title {
  color: var(--primary);
}

.card-service__text {
  margin: 0.75rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.card-service__link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* Index — Our capabilities : images plus hautes, pas de texte, CTA bouton */
.capabilities-cards .card-service__media {
  aspect-ratio: 4 / 3;
  min-height: 12rem;
}

@media (min-width: 640px) {
  .capabilities-cards .card-service__media {
    min-height: 14rem;
  }
}

@media (min-width: 1024px) {
  .capabilities-cards .card-service__media {
    min-height: 17rem;
  }
}

.capabilities-cards .card-service__body {
  padding: 1rem 1.25rem 1.25rem;
}

.capabilities-cards .capabilities-cards__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.capabilities-cards .card-service:hover .capabilities-cards__cta {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted-bg);
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: var(--color-zinc-950);
  color: #d4d4d8;
  padding: 3.5rem 0 2rem;
}

.site-footer a {
  color: #a1a1aa;
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
  display: block;
  /* Full-colour logo on dark footer — avoid invert which washes out brand/orange */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer__copy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.75rem;
  color: #71717a;
}

/* ——— Page: capabilities list ——— */
.capabilities-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.service-row {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.75rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--gradient-row-a) 0%, var(--gradient-row-b) 100%);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.service-row:hover {
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

html[data-theme="light"] .service-row:hover {
  border-color: rgba(249, 115, 22, 0.22);
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem 2.25rem;
  }
}

.service-row__media {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-zinc-100);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease;
}

.service-row:hover .service-row__media {
  transform: scale(1.01);
}

.service-row__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

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

/* ——— Service detail page ——— */
.service-page {
  padding: 1.25rem 0 4rem;
}

.service-page__panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--gradient-panel-a) 0%, var(--gradient-panel-b) 18%);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .service-page__panel {
    padding: 2.25rem 2.5rem 3rem;
  }
}

.service-page__panel .gallery {
  margin-top: 2.5rem;
}

.service-page__panel .gallery img {
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.service-page__panel .gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.15);
}

/* ——— Scroll reveal (IntersectionObserver adds .is-visible) ——— */
/* Visible by default; only hide when JS ran (html.js) so a missing main.js never blanks cards */
html.js .js-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

html.js .js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .grid-cards--4 .js-reveal:nth-child(1) {
  transition-delay: 0.05s;
}
html.js .grid-cards--4 .js-reveal:nth-child(2) {
  transition-delay: 0.12s;
}
html.js .grid-cards--4 .js-reveal:nth-child(3) {
  transition-delay: 0.19s;
}
html.js .grid-cards--4 .js-reveal:nth-child(4) {
  transition-delay: 0.26s;
}

html.js .capabilities-stack .js-reveal:nth-child(1) {
  transition-delay: 0.04s;
}
html.js .capabilities-stack .js-reveal:nth-child(2) {
  transition-delay: 0.1s;
}
html.js .capabilities-stack .js-reveal:nth-child(3) {
  transition-delay: 0.16s;
}
html.js .capabilities-stack .js-reveal:nth-child(4) {
  transition-delay: 0.22s;
}
html.js .capabilities-stack .js-reveal:nth-child(5) {
  transition-delay: 0.28s;
}
html.js .capabilities-stack .js-reveal:nth-child(6) {
  transition-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-service,
  .service-row,
  .service-row__media {
    transition: none;
  }

  .card-service:hover,
  .service-row:hover {
    transform: none;
  }

  .btn--hero-glass:hover {
    transform: none;
  }
}

/* ——— Service detail gallery ——— */
.gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.bullet-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 48rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ——— Projects ——— */
.project-card {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--site-nav-height) + 1.25rem);
}

.project-card:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-card__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .project-card__grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.project-card__img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-zinc-100);
}

.project-card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0.5rem 0 0;
}

.project-meta strong {
  color: var(--color-zinc-900);
  font-weight: 600;
}

.project-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

/* ——— Contact form ——— */
.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: #a1a1aa;
  text-align: right;
}

.two-col {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .two-col--12 {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.map-embed {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-zinc-100);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

@media (min-width: 1024px) {
  .map-embed iframe {
    min-height: 420px;
  }
}

.card-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.card-panel--soft {
  background: linear-gradient(to bottom right, var(--color-zinc-50), var(--color-surface));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--breadcrumb-bg);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb span[aria-current="page"] {
  font-weight: 500;
  color: var(--color-text);
}

.icon-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.icon-row__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  font-size: 1.25rem;
}

.equipment-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.equipment-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.flex-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-narrow {
  max-width: 48rem;
}

.page-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

@media (min-width: 1024px) {
  .page-article {
    padding: 4rem 2rem;
  }
}

/* ——— About page ——— */
.about-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--gradient-hero-soft-a) 0%, var(--gradient-hero-soft-b) 100%);
  border-bottom: 1px solid var(--color-border);
}

.about-hero__title {
  margin: 0.5rem 0 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-zinc-900);
}

.about-hero__lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.about-section {
  padding: 4rem 0;
}

.about-section--muted {
  background-color: var(--color-section-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-section__heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-zinc-900);
  letter-spacing: -0.02em;
}

.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-split {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }

  .about-split--reverse {
    direction: rtl;
  }

  .about-split--reverse > * {
    direction: ltr;
  }
}

.about-split__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 12px 24px -4px rgba(0, 0, 0, 0.08);
  background: var(--color-zinc-100);
}

.about-split__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.about-prose p {
  margin: 0 0 1.25rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-mv-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-mv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.about-mv-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.about-mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), #fb923c);
  border-radius: 1px 0 0 1px;
}

.about-mv-card h3 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.about-mv-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.about-sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-sectors {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.about-sector {
  padding: 1.25rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.about-sector:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.08);
}

.about-sector .card-service__title {
  font-size: 1rem;
}

.about-team {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(
    180deg,
    var(--gradient-team-a) 0%,
    var(--gradient-team-b) 45%,
    var(--gradient-team-c) 100%
  );
}

.about-team__intro {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-team__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-zinc-900);
}

.about-team__intro p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.about-team__cta {
  margin-top: 1.5rem;
}

.team-card {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto 3.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.team-card:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .team-card {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .team-card--reverse {
    direction: rtl;
  }

  .team-card--reverse > * {
    direction: ltr;
  }
}

.team-card__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-zinc-100);
  border: 1px solid var(--color-border);
}

.team-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card__body {
  min-width: 0;
}

.team-card__role {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.team-card__name {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-zinc-900);
  letter-spacing: -0.02em;
}

.team-card__tagline {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-zinc-900);
}

.team-card__bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.team-card__bio p {
  margin: 0 0 1rem;
}

.team-card__bio p:last-child {
  margin-bottom: 0;
}

.team-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.team-card__contact a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-zinc-900);
  text-decoration: none;
}

.team-card__contact a:hover {
  color: var(--primary);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.text-muted {
  color: var(--color-muted);
}

.link-primary {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}
