/* Layout: présentation photo d'abord. Grandes images pleine largeur, textes courts sur une colonne
   de 1200px, rangées photo/texte alternées. Polices système uniquement (aucun appel à un service tiers). */
:root {
  --paper: #f2f5f8;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --steel: #53647a;
  --line: #d3dbe4;
  --blue: #0062b1;
  --blue-hi: #00a0e9;
  --on-blue: #ffffff;
  --signal: #f2b705;
  --band: #0b1a2b;
  --band-ink: #e8eef5;
  --band-muted: #9fb0c3;
  --band-line: #22364d;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.06), 0 12px 32px -12px rgba(13, 27, 42, 0.18);

  --font-display: Bahnschrift, "DIN Alternate", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a121b;
    --surface: #101b27;
    --ink: #e6edf4;
    --steel: #96a7ba;
    --line: #223244;
    --blue: #4db1f5;
    --blue-hi: #39b4f0;
    --on-blue: #04121f;
    --signal: #f5c21b;
    --band: #060d15;
    --band-line: #1b2b3d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a121b;
  --surface: #101b27;
  --ink: #e6edf4;
  --steel: #96a7ba;
  --line: #223244;
  --blue: #4db1f5;
  --blue-hi: #39b4f0;
  --on-blue: #04121f;
  --signal: #f5c21b;
  --band: #060d15;
  --band-line: #1b2b3d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head { display: grid; max-width: 44rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 40rem; }
.prose { display: grid; gap: 1em; max-width: 38rem; }
.prose p { color: var(--steel); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--blue);
  color: var(--on-blue);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-hi); }
.btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 26px; width: auto; }
.brand-country {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--line);
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav a:hover, .nav a.is-current { color: var(--blue); }
.nav .btn { margin-left: 10px; min-height: 40px; padding: 8px 18px; }
.nav a.btn, .nav a.btn:hover, .nav a.btn.is-current { color: var(--on-blue); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: var(--radius); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  background: #0b1a2b;
  padding-block: clamp(120px, 18vw, 230px) clamp(72px, 10vw, 130px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 14, 24, 0.88) 0%, rgba(6, 14, 24, 0.6) 50%, rgba(6, 14, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 14, 24, 0.65) 0%, rgba(6, 14, 24, 0) 45%);
}
.hero-content { display: grid; max-width: 44rem; }
.hero .eyebrow { color: #7fd0ff; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1; margin-bottom: 22px; }
.hero-text { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: rgba(232, 238, 245, 0.9); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- L'usine ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.intro-text h2 { margin-bottom: 24px; }
.intro-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.intro-media figcaption, .team-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-top: 10px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.facts div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 12px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.9rem; color: var(--steel); line-height: 1.35; }
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro-media { order: -1; }
  .intro-media img { aspect-ratio: 3 / 2; }
}

/* ---------- Savoir-faire ---------- */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.feature-body { display: grid; gap: 14px; max-width: 30rem; }
.feature-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.feature-body p:last-child { color: var(--steel); font-size: 1.08rem; }
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* ---------- Groupe ---------- */
.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.group-body { display: grid; gap: 28px; }
.regions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.regions li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.regions strong {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 3px;
}
@media (max-width: 860px) {
  .group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .regions li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Carrières ---------- */
.careers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.careers h2 { margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  white-space: nowrap;
}
.apply {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
}
.apply strong { font-weight: 600; }
.apply p { color: var(--steel); }
@media (max-width: 860px) {
  .careers { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Photo d'équipe ---------- */
.team-photo { margin-top: clamp(40px, 6vw, 72px); }
.team-photo img { width: 100%; aspect-ratio: 2000 / 917; object-fit: cover; border-radius: var(--radius); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.address-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  justify-items: start;
  gap: 24px;
}
.address-card address { font-style: normal; font-size: 1.15rem; line-height: 1.55; }
.phone { font-size: 1.1rem; }
.phone a { font-weight: 600; white-space: nowrap; }
.address-card address strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 48px 36px; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 28px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--band-line);
}
.footer-top img { height: 26px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a, .footer-bottom a { color: var(--band-ink); text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 48rem; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal p { color: var(--steel); }
.legal p + p { margin-top: 0.8em; }
.legal dl { margin: 0; display: grid; gap: 6px; }
.legal dl div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 12px; }
.legal dt { color: var(--ink); font-weight: 600; }
.legal dd { margin: 0; color: var(--steel); }
.legal .todo {
  background: color-mix(in srgb, var(--signal) 28%, transparent);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 2px;
}
@media (max-width: 560px) {
  .legal dl div { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 6px; }
}

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