/* Congo Pump Solutions — shared styles */
/* Charte graphique CPS (guide logo, novembre 2026):
   Rouge CPS #ED1B24 · Bleu marine #012056 · Bleu eau #00A8F5 · Noir CPS #231F20
   Light theme: cool light surfaces, contrast per WCAG 2.2 AA
   text >= 4.5:1, interactive borders and focus >= 3:1 (SC 1.4.3, 1.4.11, 2.4.13) */
:root {
  /* brand colours, exactly as in the charte */
  --brand-red: #ED1B24;    /* large surfaces, icons, glows (white text on it: large only, 4.4:1) */
  --navy: #012056;         /* dark surfaces and headings: 15.6:1 on white */
  --navy-deep: #001637;    /* overlays on photos / 3D scene */
  --water: #00A8F5;        /* secondary accent: 5.9:1 on --navy */
  /* UI tokens */
  --red: #DE1B23;          /* Rouge CPS tuned for AA: white text 4.9:1, 4.5:1 on --bg */
  --red-strong: #B9141B;   /* 5.6:1 on --red-soft: small red text, hover */
  --red-soft: #fde8e9;
  --red-on-dark: #ff6b62;  /* small red text on navy: 5.6:1 */
  /* Red is kept for actions (buttons, CTA, links, errors). Information and states use the blues:
     Bleu eau for labels, numbers and icons, Bleu marine for selected states. */
  --water-ink: #0069A8;    /* Bleu eau for small text on light surfaces: 5.0:1 on --bg-alt, 5.9:1 on white */
  --blue-soft: #e3f1fb;    /* icon tiles, tags */
  --active: var(--navy);   /* selected language, active filter */
  --on-active: #ffffff;
  --ink: #231F20;          /* Noir CPS: 15:1 */
  --ink-2: #33363d;        /* 11:1 */
  --heading: var(--navy);
  --muted: #555a64;        /* 5.9:1 on --bg-alt */
  --line: #d3dae4;         /* decorative dividers */
  --line-strong: #7a8496;  /* 3.5:1 on --bg, 3.8:1 on white: control borders */
  --bg: #f4f6fa;
  --bg-alt: #e9eef5;
  --card: #ffffff;
  --header: rgba(244, 246, 250, .9);
  --steel: #c9cbd0;
  --on-red: #ffffff;
  --shadow: 0 1px 2px rgba(1, 22, 55, .06), 0 8px 24px rgba(1, 22, 55, .08);
  --radius: 14px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-label: "Outfit", "Segoe UI", system-ui, sans-serif; /* labels share the display family: 2 font families in all */
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}
/* dark theme: deep navy surfaces derived from Bleu marine */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f3f5; --ink-2: #d4d8e0; --heading: #f2f3f5; --muted: #a4adbf; --line: #1e2c4a; --line-strong: #6c7994;
    --bg: #060f22; --bg-alt: #0a1630; --card: #0d1b38; --red-soft: #2e1220; --red-strong: #ff6b62; --header: rgba(6, 15, 34, .86);
    --water-ink: #00A8F5; --blue-soft: #10294f; --active: #f2f3f5; --on-active: #060f22;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f2f3f5; --ink-2: #d4d8e0; --heading: #f2f3f5; --muted: #a4adbf; --line: #1e2c4a; --line-strong: #6c7994;
  --bg: #060f22; --bg-alt: #0a1630; --card: #0d1b38; --red-soft: #2e1220; --red-strong: #ff6b62; --header: rgba(6, 15, 34, .86);
  --water-ink: #00A8F5; --blue-soft: #10294f; --active: #f2f3f5; --on-active: #060f22;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
[hidden] { display: none !important; } /* the hidden attribute wins over component display rules (e.g. .icon-btn) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; color: var(--heading); }
/* headings on navy / red surfaces keep the surface's white text */
:is(.hero, .page-hero, .cta) :is(h1, h2, h3, h4) { color: inherit; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-weight: 600; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
/* Logo (charte): colour version on light backgrounds, never under 120 px wide on screen,
   white plate on dark backgrounds; no shadow, outline, crop or distortion */
.brand { display: block; flex: none; line-height: 0; border-radius: 10px; padding: 4px 0; }
.brand-logo { display: block; height: 52px; width: auto; max-width: none; }
:root[data-theme="dark"] .brand { background: #fff; padding: 4px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { background: #fff; padding: 4px 10px; } }
.logo-plate-link { display: inline-block; line-height: 0; border-radius: 14px; }
.logo-plate { display: block; width: 230px; height: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--font-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2);
}
/* current page and hover in the blues: red stays for actions */
.nav-links a:hover { color: var(--water-ink); }
.nav-links a[aria-current="page"] { color: var(--heading); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--water-ink); border-radius: 2px;
}
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--bg-alt); }
.lang button {
  border: 0; background: none; color: var(--muted); cursor: pointer; min-width: 38px; min-height: 32px;
  font: 600 13px/1 var(--font-body); border-radius: 999px; letter-spacing: .04em;
}
.lang button[aria-pressed="true"] { background: var(--active); color: var(--on-active); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 1080px) and (min-width: 1041px) { .nav-links a { padding-inline: 10px; } }
@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 480px) { .theme-btn { display: none; } }
/* theme switch inside the mobile menu, only where the bar hides it */
.nav-theme-mobile { display: none; }
@media (max-width: 480px) { .nav-theme-mobile { display: block; } }
.nav-theme-toggle {
  display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 4px; font: 600 16px/1 var(--font-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2);
}
.nav-theme-toggle:hover { color: var(--water-ink); }

/* ---------- Buttons ----------
   One button family: rounded pills, Outfit 600 15px, sentence case (same as .btn-pill).
   Primary = red (actions), ghost = outline. */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--font-display); text-transform: none; letter-spacing: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-strong); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(1, 32, 86, .06); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; opacity: .55; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0,22,55,.95) 0%, rgba(0,22,55,.74) 45%, rgba(0,22,55,.2) 100%);
}
.hero-inner { padding: clamp(80px, 13vw, 160px) 0 clamp(70px, 10vw, 130px); max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 13px/1 var(--font-label); text-transform: uppercase; letter-spacing: .14em; color: var(--water-ink);
}
/* hero cards are light in both themes: fixed light-surface tone */
:is(.hero, .page-hero) .eyebrow { color: #0069A8; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9dbe0; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rings { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; translate: 0 -50%; z-index: -1; opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .rings { width: 380px; height: 380px; right: -190px; opacity: .45; } }

/* inner pages: same light "daylight" card as the home hero (both themes), photo on the right,
   navy text on a light veil (see .page-hero::before further down) */
.page-hero { position: relative; color: var(--navy); background: #e3e7eb; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.page-hero .hero-inner { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); }
.page-hero .hero-media img { opacity: 1; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #33363d; max-width: 620px; }
.crumbs { font-size: 14px; color: #4a5160; margin-bottom: 12px; }
.crumbs a { color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.card .num { font: 600 14px/1 var(--font-label); color: var(--water-ink); letter-spacing: .12em; }
.card p { color: var(--muted); margin: 0; }
.ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--water-ink); margin-bottom: 18px;
}
.ico svg { width: 26px; height: 26px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(1,32,86,.78); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic .photo:first-child { grid-row: span 2; }
@media (max-width: 640px) { .mosaic { grid-template-rows: 170px 170px; } }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--water-ink); margin-top: 2px; }

/* Stats band */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
:root[data-theme="dark"] .stats { background: #0b2150; color: #f2f3f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats { background: #0b2150; color: #f2f3f5; } }
.stat b { display: block; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-label); color: var(--water); }
.stat span { display: block; margin-top: 8px; opacity: .8; font-size: 15px; }

/* Partners strip */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.chip-brand {
  font: 600 22px/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase;
  padding: 22px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); white-space: nowrap;
}

/* Partner cards */
.partner { display: flex; flex-direction: column; gap: 10px; }
.partner .mark {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 1.6rem/1 var(--font-label); letter-spacing: .06em; text-transform: uppercase;
}
.tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--water-ink); border: 1px solid currentColor; }
.partner ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.partner .origin { font-size: 14px; color: var(--muted); }
.partner a.more { margin-top: auto; font-weight: 600; color: var(--red); text-decoration: none; }
.partner a.more:hover { text-decoration: underline; }

/* ---------- Products ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  position: relative; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--font-body);
}
.filters button[aria-pressed="true"] { color: var(--on-active); border-color: var(--active); }
.filters .pill-bg { position: absolute; inset: -1px; border-radius: 999px; background: var(--active); z-index: 0; }
.filters button span { position: relative; z-index: 1; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 16px var(--font-body);
}
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; font: inherit;
  transition: border-color .2s;
}
.product .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), #0b3a85); position: relative; overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .thumb.contain, .modal .thumb.contain { background: #fff; }
.thumb.contain img { object-fit: contain; padding: 14px; }
.modal .thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), #0b3a85); }
.modal .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal .thumb.contain img { object-fit: contain; }
.modal .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--red-on-dark); }
.modal .thumb .glyph svg { width: 22%; }
.modal .thumb .brand-tag { position: absolute; left: 12px; top: 12px; background: var(--navy); color: #fff; font: 600 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.product .thumb.contain .brand-tag { background: var(--navy); color: #fff; }
.logo-box { display: inline-flex; align-items: center; height: 56px; padding: 8px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.logo-box img { height: 100%; width: auto; max-width: 170px; object-fit: contain; }
.chip-brand.logo { background: #fff; padding: 14px 26px; display: inline-flex; align-items: center; }
.chip-brand.logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery .photo { aspect-ratio: 4/3; margin: 0; }
.gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .photo:first-child { aspect-ratio: 4/3; grid-row: auto; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .photo:first-child { grid-column: auto; } }
.product .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--red-on-dark); }
.product .thumb .glyph svg { width: 34%; height: auto; opacity: .95; }
.product .thumb .brand-tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy); font: 600 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.product .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { margin: 0; font-size: 1.25rem; }
.product p { color: var(--muted); margin: 0; font-size: 15px; }
.product .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.product .specs span { font-size: 12.5px; padding: 5px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 14, 36, .66); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal {
  width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); color: var(--ink);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal .thumb { aspect-ratio: 16/7; }
.modal-body { padding: 26px 28px 30px; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; background: #fff; color: var(--navy); border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.modal ul { color: var(--ink-2); padding-left: 20px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 16px var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: var(--red); font-size: 14px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-note { font-size: 14px; color: var(--muted); }
.form-req { font-size: 14px; color: var(--muted); margin: 0; }
/* anti-spam trap field: off-screen for people, still in the DOM for bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* confirmation shown in place of the form once contact.php has sent the message */
.form-ok { display: grid; justify-items: start; gap: 10px; padding: 8px 0; outline: none; }
.form-ok svg { width: 48px; height: 48px; color: #1a9b4b; }
.form-ok p { margin: 0; font-size: 1.08rem; color: var(--ink); }
.foot-sub:disabled, .btn:disabled { opacity: .7; cursor: progress; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { margin: 0; flex: none; width: 44px; height: 44px; }
.info-list b { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-list a { color: var(--ink); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* CTA */
.cta { background: var(--brand-red); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta h2 { margin: 0; max-width: 640px; }
.cta .btn-primary { background: #fff; color: var(--red-strong); }
.cta .btn-primary:hover { background: #ffecea; }

/* Footer */
/* inset navy panel with rounded corners; text on --navy: #c9ccd3 = 9.7:1, #9aa0aa = 6.0:1 */
/* bottom padding keeps the floating WhatsApp / back-to-top buttons clear of the last footer line */
.site-footer { background: var(--bg); padding: 0 16px 96px; font-size: 15px; }
/* mine photo (Musonoi, Kolwezi; public domain) under a Bleu marine veil: 88 % keeps the palest
   footer text (#9aa0aa) at 4.5:1 even over the brightest part of the photo */
.foot-panel {
  max-width: 1440px; margin: 0 auto; color: #c9ccd3; border-radius: 24px; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) 28px;
  background:
    linear-gradient(180deg, rgba(1, 32, 86, .88) 0%, rgba(1, 32, 86, .88) 70%, rgba(1, 32, 86, .93) 100%),
    url("../img/photos/footer-mine.jpg") center 45% / cover no-repeat,
    var(--navy);
}
.site-footer :is(h2, h4) { color: #fff; font: 600 1.05rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; margin: 0 0 18px; }
.site-footer a { color: #c9ccd3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--red-on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.15fr 1fr 1.15fr; gap: 40px 32px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
/* footer links: 28 px tall touch targets (WCAG 2.5.8 asks for 24 px) */
.foot-grid ul a { display: inline-block; padding: 4px 0; }
.foot-gap { margin-top: 28px !important; }
.foot-brand .logo-plate-link { margin-bottom: 22px; }
.foot-news { font-size: 1.05rem; line-height: 1.55; max-width: 380px; color: #c9ccd3; }
.foot-form { display: flex; gap: 10px; max-width: 400px; margin-top: 18px; }
.foot-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #7083a8; background: #0a2b66; color: #fff; font: 15px var(--font-body); }
.foot-form input::placeholder { color: #a9b4c9; }
.foot-form input:focus-visible { outline: 3px solid var(--red-on-dark); outline-offset: 1px; border-color: var(--red-on-dark); }
.foot-form input[aria-invalid="true"] { border-color: var(--red-on-dark); }
.foot-sub { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #fff; background: transparent; color: #fff; font: 600 15px var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.foot-sub:hover { background: #fff; color: var(--navy); }
.foot-err { color: #ff8a83; font-size: 14px; margin: 8px 0 0; }
.foot-social { display: flex; gap: 12px; margin-top: 26px; }
.foot-social a { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #c9ccd3; display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.foot-social a:hover { background: #fff; color: var(--navy); border-color: #fff; text-decoration: none; transform: translateY(-2px); }
.foot-social svg { width: 20px; height: 20px; }
.foot-acc { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.foot-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; color: #fff; font-weight: 600; }
.foot-acc summary::-webkit-details-marker { display: none; }
.foot-acc summary svg { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.foot-acc[open] summary svg { transform: rotate(180deg); }
.foot-acc ul { padding: 4px 0 16px; }
.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; }
.legal { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; color: #9aa0aa; }
.legal-right { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-left { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.credit a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 3px; }
.credit a:hover { color: #ff8a83; }

/* Outlines and states: visible boundaries for controls, clear hover/focus feedback */
.product:hover { border-color: var(--water-ink); }
.product .thumb { border-bottom: 1px solid var(--line); }
.filters button:hover:not([aria-pressed="true"]), .icon-btn:hover { border-color: var(--ink-2); background: var(--bg-alt); }
.field input:hover, .field select:hover, .field textarea:hover, .search input:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .search input:focus-visible { border-color: var(--red); outline: 3px solid var(--red); outline-offset: 1px; }
.field input, .field select, .field textarea { background: var(--card); }
.stat span { opacity: 1; color: #c9ccd3; }
.photo { border: 1px solid var(--line); }

/* ---------- Model layout: rounded hero card, red glow, brand band, pill buttons ---------- */
.hero-card, .page-hero { margin: 12px 16px 0; border-radius: 28px; z-index: 1; }
.hero-card { min-height: min(860px, calc(100svh - 96px)); display: flex; }
.hero-card .hero-media { left: 36%; }
.hero-card .hero-media img { object-position: 50% 22%; opacity: .95; }
@media (max-width: 900px) { .hero-card .hero-media { left: 0; } }
/* live 3D scene (light open-pit mine, pump on the right) replaces the photo when WebGL is available */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media.has-3d img { display: none; }
.hero-card .hero-media.has-3d { left: 0; }
/* home hero is light in both themes (a daylight scene): navy text on a light veil over the left side.
   Fixed colours here, not theme tokens, so dark mode keeps the text readable on the light card. */
.hero-card { background: #e3e7eb; color: var(--navy); border: 1px solid var(--line); }
.hero-card::before {
  background: linear-gradient(90deg, rgba(244,246,250,.97) 0%, rgba(244,246,250,.93) 34%, rgba(244,246,250,.62) 50%, rgba(244,246,250,0) 64%);
}
.hero-card .hero-glow { display: none; }
.hero-card .btn-ghost { background: rgba(255, 255, 255, .72); }
.hero-card .btn-ghost:hover { background: #fff; }
@media (max-width: 900px) {
  /* phones/tablets: text on top, the pump below it */
  .hero-card::before { background: linear-gradient(180deg, rgba(244,246,250,.96) 0%, rgba(244,246,250,.9) 28%, rgba(244,246,250,0) 46%); }
}
/* glow in the logo colours (used on dark heroes only: the light hero cards hide it) */
.page-hero::after { content: none; }
.hero-glow {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(55% 65% at 12% 8%, rgba(237, 27, 36, .5), transparent 62%),
              radial-gradient(38% 48% at 88% 30%, rgba(0, 168, 245, .3), transparent 70%);
}
.hero-card .rings { left: -150px; right: auto; top: auto; bottom: -170px; translate: 0 0; width: 460px; height: 460px; opacity: .35; }
.hero-grid {
  width: min(1280px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 1fr auto;
  gap: 32px 48px; padding: clamp(64px, 10vw, 128px) 0 32px; flex: 0 1 auto;
}
.hero-card .hero-inner { padding: 0; max-width: none; align-self: center; }
.hero-hello { display: block; font: 500 clamp(1.1rem, 1.6vw, 1.4rem)/1.2 var(--font-display); color: #33363d; margin-bottom: 14px; }
.display { font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .95; letter-spacing: -.045em; margin: 0; }
.hero-card .hero-actions { margin-top: 36px; align-items: center; }
/* service strip: a frosted panel so it stays readable over the mud and water */
.hero-strip {
  grid-column: 1 / -1; list-style: none; margin: 0; padding: 14px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(1, 32, 86, .1); border-radius: 18px;
  backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 8px 30px rgba(1, 22, 55, .08);
}
.hero-strip a { display: grid; gap: 6px; color: #33363d; text-decoration: none; font-size: 15px; padding: 6px 0; }
.hero-strip a:hover { color: var(--navy); }
.hero-strip .num { font: 600 14px/1 var(--font-label); color: #0069A8; letter-spacing: .08em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card .hero-inner { align-self: start; }
  .hero-card .hero-media img { opacity: .55; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* inner pages: rounded light card, photo visible on the right */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(244,246,250,.97) 0%, rgba(244,246,250,.9) 40%, rgba(244,246,250,.5) 64%, rgba(244,246,250,.12) 100%);
}
@media (max-width: 900px) {
  .page-hero::before { background: linear-gradient(180deg, rgba(244,246,250,.94) 0%, rgba(244,246,250,.84) 100%); }
}

/* brand band tucked under the hero card */
.brand-band { position: relative; margin: -28px 16px 0; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 28px 28px; padding: 28px 0 0 !important; }
.brand-band-inner { width: min(1280px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 30px 0 34px; }
.brand-band-label { margin: 0; font: 600 15px/1.35 var(--font-display); color: var(--ink); }
.brand-band .marquee-toggle { position: absolute; right: 18px; bottom: 14px; width: 36px; height: 36px; margin: 0; }
.brand-band .chip-brand { background: transparent; border: 0; padding: 8px 22px; font-size: 18px; color: var(--muted); }
.brand-band .chip-brand.logo { background: transparent; }
.brand-band .chip-brand.logo img { height: 34px; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .75; }
.brand-band .chip-brand.logo:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .brand-band-inner { grid-template-columns: 1fr; gap: 12px; } }

/* dark mode: logos sit on small white tiles so every brand stays legible */
:root[data-theme="dark"] .brand-band .chip-brand.logo { background: #f1f2f4; border-radius: 10px; padding: 8px 16px; margin: 0 6px; }
:root[data-theme="dark"] .brand-band .chip-brand.logo img { height: 30px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-band .chip-brand.logo { background: #f1f2f4; border-radius: 10px; padding: 8px 16px; margin: 0 6px; }
  :root:not([data-theme="light"]) .brand-band .chip-brand.logo img { height: 30px; }
}

/* pill button with round arrow, as in the model */
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 22px; border-radius: 999px;
  background: #fff; color: var(--navy); text-decoration: none; font: 600 15px/1 var(--font-display); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: background-color .2s, color .2s;
}
.pill-ico { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-red); color: #fff; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.pill-ico svg { width: 18px; height: 18px; }
.btn-pill:hover .pill-ico { transform: rotate(-45deg); }
.btn-pill:hover { background: #f1f2f4; }
.btn-pill-red { background: var(--red); color: #fff; }
.btn-pill-red .pill-ico { background: #fff; color: var(--red); }
.btn-pill-red:hover { background: var(--red-strong); }
.btn-pill:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.nav-cta { white-space: nowrap; flex: none; min-height: 44px; padding: 4px 4px 4px 16px; font-size: 14px; gap: 10px; border: 1px solid var(--line-strong); box-shadow: none; }
.nav-cta .pill-ico { width: 34px; height: 34px; }
@media (max-width: 1320px) { .nav-cta { display: none; } }

/* approach section */
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; }
.display-2 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -.04em; margin: 0; }
.approach-text { font: 500 clamp(1.15rem, 1.7vw, 1.45rem)/1.45 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.approach-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); }
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr; } }


/* ---------- Motion & interaction layer (fx.js) ---------- */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16, 18, 24, .10); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.wi { display: inline-block; will-change: transform; }

/* hover detail: image zoom inside cards, arrow nudge on buttons */
.product .thumb img, .photo img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .product:hover .thumb img { transform: scale(1.05); }
  .photo[role="button"]:hover img { transform: scale(1.04); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn svg { transition: transform .2s ease-out; }
.photo[role="button"] { cursor: zoom-in; }
.photo[role="button"]:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* partner logos: muted at rest, full colour on hover/focus */
.marquee .chip-brand.logo img { filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee .chip-brand.logo:hover img { filter: none; opacity: 1; }
.marquee-toggle { margin: 16px auto 0; }
.marquee + .marquee-toggle { display: grid; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 14, 36, .9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--navy); border: 0; }

/* WhatsApp: #1A9B4B keeps the white icon at 3.5:1 (WCAG non-text contrast) */
.wa-btn { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 56px; height: 56px; border-radius: 999px; background: #1a9b4b; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(26, 155, 75, .4); text-decoration: none; }
.wa-btn:hover { background: #158a41; }
.wa-btn:focus-visible { outline: 3px solid #1a9b4b; outline-offset: 4px; }
.wa-icon { display: grid; place-items: center; position: relative; z-index: 1; }
.wa-icon svg { width: 30px; height: 30px; }
.wa-pulse { position: absolute; inset: 0; border-radius: inherit; background: #1a9b4b; opacity: 0; }
.wa-label { position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.wa-btn.open .wa-label { opacity: 1; }
@media (max-width: 520px) { .wa-label { display: none; } }

/* back to top (sits above the WhatsApp button) */
/* back to top: neutral (red is for actions), shown after 700 px of scroll, hidden on phones where
   it covered text and the thumb scrolls back up easily */
.to-top { position: fixed; right: 26px; bottom: 92px; z-index: 60; width: 44px; height: 44px; background: var(--card); color: var(--heading); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.to-top svg { transform: rotate(-90deg); }
.to-top:hover { background: var(--bg-alt); }
@media (max-width: 640px) { .to-top { display: none !important; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 95; background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

/* page-to-page transitions are handled by the loading screen (loader.js); the browser's own
   cross-document view transitions were removed: they doubled up with it and logged
   "AbortError: Transition was skipped" errors */
@media (prefers-reduced-motion: reduce) {
  .product .thumb img, .photo img, .btn svg { transition: none; }
}

/* ---------- Mobile ---------- */
.foot-grid > *, .hero-grid > *, .grid > *, .split > * { min-width: 0; }
.site-footer a, .info-list a, .kv dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero-card, .page-hero { margin: 8px 8px 0; border-radius: 20px; }
  .brand-band { margin: -20px 8px 0; border-radius: 0 0 20px 20px; }
  .hero-card { min-height: calc(100svh - 80px); }
  .hero-grid { width: calc(100% - 32px); padding: 56px 0 20px; gap: 20px; }
  .display { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-card .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-card .hero-actions > * { flex: 1 1 auto; justify-content: center; }
  .hero-side { max-width: none; }
  .hero-strip { gap: 6px 12px; padding-top: 14px; }
  .hero-strip a { font-size: 14px; }
  .page-hero .hero-inner { padding: 48px 0 36px; }
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .lang button { min-width: 40px; min-height: 36px; }
  .cta { flex-direction: column; align-items: flex-start; border-radius: 18px; }
  .foot-panel { border-radius: 18px; padding: 32px 20px 24px; }
  .site-footer { padding: 0 8px 76px; }
  .foot-form { flex-direction: column; }
  .foot-form .foot-sub { width: 100%; }
  .legal, .legal-left, .legal-right { flex-direction: column; gap: 6px; }
  .stats .grid { gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 2.1rem; }

  /* filters: one swipeable row instead of several lines */
  .filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; scroll-snap-align: start; }
  .toolbar { gap: 8px; }
  .search { max-width: none; flex-basis: 100%; }

  /* popups become bottom sheets */
  .modal-backdrop { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .modal-body { padding: 20px 18px 28px; }
  .modal .thumb { aspect-ratio: 16 / 9; }

  .mosaic { grid-template-rows: 150px 150px; gap: 10px; }
  .nav { gap: 10px; }
  .nav-tools { gap: 6px; }
  .wa-btn { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .wa-icon svg { width: 26px; height: 26px; }
}

@media (max-width: 380px) {
  /* stays at 120 px wide, the charte's on-screen minimum */
  .brand-logo { height: 48px; }
  .lang button { min-width: 36px; }
}

/* ---------- Loading screen (assets/js/loader.js) ----------
   .ld-draw  first page of a visit, about 1.5 s: the logo's outlines draw themselves (each path has its
             own --d delay and --t duration), then the official logo fills in just before --exit
             (timed from --exit, so changing EXIT in loader.js keeps the sequence) and the screen lifts.
   .ld-quick following pages, 1 s: the finished logo fades in, the screen lifts at --exit.
   The end frame is always the untouched official logo (charte). */
html.ld-lock { overflow: hidden; }
.cps-loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; cursor: progress;
  background:
    radial-gradient(ellipse 45% 40% at 40% 46%, rgba(237, 27, 36, .07), transparent 70%),
    radial-gradient(ellipse 45% 40% at 62% 54%, rgba(0, 168, 245, .09), transparent 70%), var(--bg);
  animation: ld-out .4s var(--exit) ease forwards;
}
.ld-stage { width: clamp(260px, 40vw, 480px); animation: ld-zoom .4s var(--exit) ease-in forwards; }
.ld-logo { line-height: 0; }
.ld-art { position: relative; }
.ld-art img { display: block; width: 100%; height: auto; }
/* dark backgrounds: the logo (and its drawing) sits on its white plate */
:root[data-theme="dark"] .ld-logo { background: #fff; padding: 5% 6%; border-radius: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ld-logo { background: #fff; padding: 5% 6%; border-radius: 18px; } }

/* drawing: outlines in the brand colours trace themselves, then hand over to the real logo */
.ld-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: ld-fade .25s calc(var(--exit) - .35s) ease forwards; }
.ld-lines path {
  fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ld-trace var(--t) var(--d) cubic-bezier(.45, 0, .25, 1) forwards;
}
.ld-lines .ld-navy { stroke: var(--navy); }
.ld-lines .ld-red { stroke: var(--brand-red); }
.ld-lines .ld-blue { stroke: var(--water); }
.ld-lines .ld-steel { stroke: #8a929c; }
.cps-loader.ld-draw .ld-art img { opacity: 0; animation: ld-in .25s calc(var(--exit) - .45s) ease forwards; }
.cps-loader.ld-quick .ld-art img { animation: ld-pop .35s ease both; }

/* progress at the bottom centre: bar + percentage (both set by loader.js) */
.ld-progress {
  position: absolute; left: 50%; bottom: max(28px, 7vh); translate: -50% 0;
  width: min(320px, 100% - 64px); display: grid; justify-items: center; gap: 12px;
}
.ld-bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ld-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-red), var(--water)); transform: scaleX(0); transform-origin: left; animation: ld-bar var(--exit) linear forwards; }
@keyframes ld-bar { to { transform: scaleX(1); } }
/* following pages: a plain background that fades away */
.cps-loader.ld-quick { background: var(--bg); cursor: default; }
.ld-pct { font: 600 15px/1 var(--font-label); letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }

@keyframes ld-trace { to { stroke-dashoffset: 0; } }
@keyframes ld-fade { to { opacity: 0; } }
@keyframes ld-in { to { opacity: 1; } }
@keyframes ld-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ld-out { to { opacity: 0; visibility: hidden; } }
@keyframes ld-zoom { to { transform: scale(1.04); } }

.cps-loader.ld-skip, .cps-loader.ld-skip .ld-stage { animation: ld-out .3s ease forwards; }
/* reduced motion: the finished logo, briefly, without any drawing */
.cps-loader.ld-static { animation: ld-out .3s .6s ease forwards; }
.cps-loader.ld-static * { animation: none !important; }
.cps-loader.ld-static .ld-bar span { transform: scaleX(1); }

/* Motion: content is visible by default; JS only hides it when Motion is available */
.reveal-ready [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }
/* printing: every block visible, no overlays */
@media print {
  .reveal-ready [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .cps-loader, .wa-btn, .to-top, .site-header, .marquee-toggle { display: none !important; }
}
/* the 3D canvas fades in once its first frame is drawn */
.hero-3d { opacity: 0; transition: opacity .6s ease; }
.hero-3d.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-3d { transition: none; } }

/* ---------- Dark theme: animated background (15 %) and detached content ----------
   main.js adds .bg-anim at the top of <body>. Hidden in the light theme. The layer sits behind
   everything (fixed, z-index -1); section backgrounds turn translucent so it shows through, and
   cards become raised surfaces (blue edge + deep shadow) so the information stands clear of it.
   Text straight on the background stays >= 6.8:1 even over the brightest halo. */
.bg-anim { display: none; }
.bg-anim i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; will-change: transform; }
.bg-anim .b1 { left: -18vmax; top: -14vmax; background: radial-gradient(circle, #00A8F5 0%, rgba(0, 168, 245, 0) 66%); animation: bg-drift1 26s ease-in-out infinite alternate; }
.bg-anim .b2 { right: -22vmax; top: 28vh; background: radial-gradient(circle, #ED1B24 0%, rgba(237, 27, 36, 0) 60%); animation: bg-drift2 34s ease-in-out infinite alternate; }
.bg-anim .b3 { left: 22vw; bottom: -34vmax; background: radial-gradient(circle, #3d8bff 0%, rgba(61, 139, 255, 0) 64%); animation: bg-drift3 40s ease-in-out infinite alternate; }
.bg-waves { position: absolute; top: 0; left: 0; width: 200%; height: 100%; will-change: transform; animation: bg-flow 70s linear infinite; }
.bg-waves.w2 { animation: bg-flow-back 110s linear infinite; }
@keyframes bg-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bg-flow-back { from { transform: translateX(-50%) scaleY(-1); } to { transform: translateX(0) scaleY(-1); } }
@keyframes bg-drift1 { to { transform: translate(16vw, 14vh) scale(1.15); } }
@keyframes bg-drift2 { to { transform: translate(-14vw, -18vh) scale(.9); } }
@keyframes bg-drift3 { to { transform: translate(-12vw, -10vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .bg-anim *, .bg-waves { animation: none !important; } }

:root[data-theme="dark"] .bg-anim { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .15; }
:root[data-theme="dark"] .alt { background: rgba(10, 22, 48, .55); }
:root[data-theme="dark"] :is(.card, .product, .modal, .apply-modal) {
  border-color: rgba(0, 168, 245, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 40px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .photo { border-color: rgba(0, 168, 245, .18); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .brand-band { border-color: rgba(0, 168, 245, .18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-anim { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .15; }
  :root:not([data-theme="light"]) .alt { background: rgba(10, 22, 48, .55); }
  :root:not([data-theme="light"]) :is(.card, .product, .modal, .apply-modal) {
    border-color: rgba(0, 168, 245, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 40px rgba(0, 0, 0, .5);
  }
  :root:not([data-theme="light"]) .photo { border-color: rgba(0, 168, 245, .18); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  :root:not([data-theme="light"]) .brand-band { border-color: rgba(0, 168, 245, .18); }
}
@media print { .bg-anim { display: none !important; } }
