/* ABATTECH GROUPE — feuille de style principale
   Aucune dépendance externe. Police auto-hébergée (Manrope, SIL OFL). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #100c33;
  --navy-900: #17124a;
  --navy-800: #1f185e;
  --brand: #362a96;
  --brand-700: #2b2180;
  --brand-100: #e9e7f8;
  --red: #e30613;
  --red-700: #b9040f;
  --red-100: #fde8ea;
  --ink: #17152e;
  --muted: #5a5775;
  --line: #e4e2f0;
  --surface: #f5f4fb;
  --white: #fff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(23 18 74 / .06), 0 2px 8px rgb(23 18 74 / .05);
  --shadow: 0 10px 30px -10px rgb(23 18 74 / .22);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-900); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
strong { font-weight: 750; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgb(23 18 74 / .3); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: .95rem; font-weight: 650; color: var(--navy-900); text-decoration: none;
}
.nav-list a:hover { background: var(--surface); color: var(--brand); }
.nav-list a[aria-current="page"] { color: var(--red); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgb(23 18 74 / .35);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 12px var(--gutter) 24px; display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--surface); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; }
  .nav-list .nav-cta a { border-radius: 999px; border-bottom: 0; color: #fff; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) { .brand img { width: 140px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 750; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgb(227 6 19 / .6); }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn-ghost:hover { color: var(--red); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--brand-100); color: var(--navy-900); }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.text-muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy-900); color: #d9d7f0; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lead, .bg-navy .text-muted { color: #b9b6dc; }
.bg-navy .eyebrow { color: #ff6b74; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(54 42 150 / .75), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgb(227 6 19 / .22), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #ff5560; }
.hero .lead { color: #c9c6ea; }
.hero .eyebrow { color: #ff6b74; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.hero-tags li { font-size: .82rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); color: #e4e2f7; }

.hero-media { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.hero-media figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figure:first-child { grid-row: span 2; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--navy-900);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { font-size: 1.6rem; color: var(--red); letter-spacing: -.02em; line-height: 1; }
.hero-badge span { font-size: .8rem; line-height: 1.3; color: var(--muted); max-width: 16ch; }

.hero-single { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.hero-single img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 1 / .8; }
  .hero-badge { left: 12px; }
}

/* Page hero (sub-pages) */
.page-hero .hero-grid { padding-block: clamp(48px, 7vw, 88px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .85rem; margin-bottom: 18px; color: #aaa7d6; }
.breadcrumb a { color: #d6d4f3; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: 26px 24px; }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.stats-overlap { margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats-overlap { margin-top: 32px; } }
@media (max-width: 420px) { .stat { padding: 20px 16px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-surface { background: var(--surface); border-color: transparent; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-navy { background: var(--navy-900); color: #cfcdea; border-color: transparent; }
.card-navy h3, .card-navy h4 { color: #fff; }
.card-brand { background: var(--brand); color: #e3e1fb; border-color: transparent; }
.card-brand h3, .card-brand h4 { color: #fff; }
.card-red { background: var(--red); color: #ffe5e7; border-color: transparent; }
.card-red h3, .card-red h4 { color: #fff; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; margin-bottom: 18px; flex-shrink: 0;
}
.icon svg { width: 26px; height: 26px; }
.icon-brand { background: var(--brand); }
.icon-soft { background: var(--red-100); color: var(--red); }
.card-navy .icon-soft, .card-brand .icon-soft { background: rgb(255 255 255 / .12); color: #fff; }

.num { font-size: .85rem; font-weight: 800; color: var(--red); letter-spacing: .08em; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-head .icon { margin-bottom: 0; }

/* Division cards (home) */
.division {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.division:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.division-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.division-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.division:hover .division-media img { transform: scale(1.05); }
.division-body { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; flex: 1; }
.division-body h3 { font-size: 1.4rem; }
.division-body p { color: var(--muted); }
.division .tags { margin-top: auto; }
.division .more { margin-top: 18px; font-weight: 750; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.division .more svg { width: 18px; height: 18px; transition: transform .2s; }
.division:hover .more svg { transform: translateX(4px); }
.division-index { position: absolute; top: 16px; left: 16px; background: rgb(255 255 255 / .92); color: var(--navy-900); font-weight: 800; font-size: .8rem; letter-spacing: .1em; padding: 6px 10px; border-radius: 8px; }

.tags { margin-top: auto; }
.division .more { margin-top: 18px; font-weight: 750; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.division .more svg { width: 18px; height: 18px; transition: transform .2s; }
.division:hover .more svg { transform: translateX(4px); }
.division-index { position: absolute; top: 16px; left: 16px; background: rgb(255 255 255 / .92); color: var(--navy-900); font-weight: 800; font-size: .8rem; letter-spacing: .1em; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 760px) { .division { grid-template-columns: 1fr; } .division-media { aspect-ratio: 16 / 9; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-size: .78rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--brand-700); border: 1px solid var(--line); }
.card-navy .tags li, .card-brand .tags li { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .18); }

/* Check list */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.dots { list-style: none; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.card-navy .dots li::before, .card-brand .dots li::before { background: #ff6b74; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .caption { position: absolute; left: 14px; bottom: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.caption, .chip {
  display: inline-block; background: rgb(255 255 255 / .94); color: var(--navy-900); font-size: .78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.chip-red { background: var(--red); color: #fff; }

.benefit {
  margin-top: 22px; background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.benefit small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ff8a91; font-weight: 800; margin-bottom: 4px; }
.benefit p { margin: 0; font-weight: 650; line-height: 1.45; }

/* Pôle tile (energie 8 pôles) */
.pole { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pole-media { aspect-ratio: 16 / 9; overflow: hidden; }
.pole-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pole:hover .pole-media img { transform: scale(1.04); }
.pole-body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.pole-body .benefit { margin-top: auto; }
.pole-body .checks { margin-bottom: 22px; }
.pole-label { font-size: .75rem; letter-spacing: .14em; font-weight: 800; color: var(--red); text-transform: uppercase; margin-bottom: 6px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: step; list-style: none; }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; }
.bg-surface .step { border-color: transparent; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step.is-highlight { background: var(--red); color: #ffe6e8; border-color: transparent; }
.step.is-highlight h3, .step.is-highlight h4 { color: #fff; }
.step.is-highlight .step-num { background: #fff; color: var(--red); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step.is-highlight p { color: #ffe6e8; }
.bg-navy .step { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }
.bg-navy .step p { color: #b9b6dc; }
.bg-navy .step-num { background: var(--red); }
@media (max-width: 1000px) { .steps, .steps.steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps.steps-5 { grid-template-columns: 1fr; } }

/* Flow diagram (supervision / chain) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; position: relative; }
.flow.flow-3 { grid-template-columns: repeat(3, 1fr); }
.flow li { position: relative; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.flow li .icon { margin-inline: auto; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid #ff6b74; border-right: 2px solid #ff6b74; transform: translateY(-50%) rotate(45deg);
}
.flow h4 { margin-bottom: 4px; }
.flow p { margin: 0; font-size: .9rem; color: #b9b6dc; }
@media (max-width: 760px) {
  .flow, .flow.flow-3 { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -12px; transform: translateX(50%) rotate(135deg); }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 12px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; grid-column: span 4; background: var(--surface); }
.gallery a.wide { grid-column: span 8; }
.gallery a.tall { grid-row: span 2; }
.gallery a.half { grid-column: span 6; }
.gallery a.third { grid-column: span 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery .caption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
.gallery-note { margin-top: 14px; font-size: .85rem; color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery a, .gallery a.wide, .gallery a.half, .gallery a.third { grid-column: span 1; }
  .gallery a.wide { grid-column: span 2; }
  .gallery a:not(.wide) .caption { display: none; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgb(10 8 30 / .88); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; margin-inline: auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy-900); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .96rem; }
th, td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; font-weight: 700; color: var(--navy-900); }
thead th { background: var(--navy-900); color: #fff; font-weight: 750; font-size: .9rem; }
thead th.is-red { background: var(--red); }
thead th.is-brand { background: var(--brand); }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--brand); font-weight: 750; }
td.no { color: #b3b0c9; }

/* Brands */
.brand-tile { text-align: center; padding: 28px 20px; }
.brand-tile strong { display: block; font-size: 1.15rem; letter-spacing: .08em; color: var(--navy-900); }
.brand-tile span { font-size: .9rem; color: var(--muted); }

/* Big figure */
.figure-big { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }

/* Sub-nav (in-page anchors) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.subnav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--navy-900); text-decoration: none; background: var(--surface); }
.subnav a:hover { background: var(--brand); color: #fff; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--red); color: #fff;
  padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: rgb(255 255 255 / .08); pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #ffe1e3; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #ff8a91; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 650; }
.contact-list a:hover { color: #ffb3b8; text-decoration: underline; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(54 42 150 / .14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-status { font-weight: 650; margin: 0; min-height: 1.5em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #13784a; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--surface); border-left: 4px solid var(--brand); padding: 14px 16px; border-radius: 8px; font-size: .9rem; color: var(--muted); }

/* Prose (legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #aeabd3; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-top h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-top ul { list-style: none; display: grid; gap: 10px; }
.footer-top a { color: #d4d2ee; text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: #d4d2ee; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -.05em; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.flex-between { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; }

@media print {
  .site-header, .nav, .subnav, .cta-band, .site-footer .footer-top { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}
.center-actions { justify-content: center; }
