/* ==========================================================================
   Groupe KSB Sécurité — feuille de style principale
   Couleurs issues du logo : orange aigle, cyan étoiles, noir profond.
   ========================================================================== */

:root {
  --ink: #070b14;
  --ink-2: #0c1322;
  --ink-3: #121b2e;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line: #e3e7ee;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --text: #0f172a;
  --muted: #5b6577;
  --muted-dark: #9aa6ba;
  --orange: #f26b2a;
  --orange-2: #ff8a4c;
  --orange-soft: rgba(242, 107, 42, 0.12);
  --cyan: #35c7de;
  --cyan-soft: rgba(53, 199, 222, 0.12);
  --success: #22c55e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(7, 11, 20, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(7, 11, 20, 0.45);

  --font-display: "Chakra Petch", system-ui, sans-serif;
  --cut: 18px;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1200px;
  --header-h: 76px;
}

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

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 30px -10px rgba(242, 107, 42, .7); }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--text); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #23bf61; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Titres de section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-top: 16px; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-lead { color: var(--muted-dark); }
.section-alt { background: var(--paper-2); }
.text-orange { color: var(--orange); }
.text-cyan { color: var(--cyan); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 5px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand-name span { color: var(--cyan); }
.brand-tag { font-size: 11.5px; color: var(--muted-dark); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14.5px; }
.header-phone .icon { color: var(--orange); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 0;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-glow.g1 { width: 520px; height: 520px; background: var(--orange); top: -180px; right: -120px; opacity: .28; }
.hero-glow.g2 { width: 420px; height: 420px; background: var(--cyan); bottom: -200px; left: -160px; opacity: .16; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin-top: 26px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 24px; font-size: 19px; color: var(--muted-dark); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: rgba(255, 255, 255, .78); font-weight: 600; }
.hero-points .icon { color: var(--cyan); width: 18px; height: 18px; }

/* Panneau visuel du hero */
.hero-visual { position: relative; }
.shield-card {
  position: relative; border-radius: 28px; padding: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.radar {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(53, 199, 222, .16) 24.3% 24.6%, transparent 25%),
    radial-gradient(circle, transparent 0 49%, rgba(53, 199, 222, .16) 49.3% 49.6%, transparent 50%),
    radial-gradient(circle, transparent 0 74%, rgba(53, 199, 222, .16) 74.3% 74.6%, transparent 75%),
    radial-gradient(circle, rgba(53, 199, 222, .06), transparent 70%);
  border: 1px solid rgba(53, 199, 222, .25);
  display: grid; place-items: center; overflow: hidden;
}
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(53, 199, 222, .14); }
.radar::before { width: 1px; height: 100%; left: 50%; }
.radar::after { height: 1px; width: 100%; top: 50%; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(242, 107, 42, .38), transparent 22%, transparent);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-core {
  position: relative; z-index: 2; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  display: grid; place-items: center; padding: 14%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .05), 0 20px 50px -10px rgba(0, 0, 0, .6);
}
.blip { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: blink 2.6s ease-in-out infinite; }
.blip.b1 { top: 18%; left: 30%; }
.blip.b2 { top: 70%; left: 78%; animation-delay: .8s; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.blip.b3 { top: 62%; left: 16%; animation-delay: 1.6s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.status-list { margin-top: 28px; display: grid; gap: 10px; }
.status-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 12px; background: rgba(7, 11, 20, .55); border: 1px solid var(--line-dark);
  font-size: 14px;
}
.status-item span:first-child { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .88); font-weight: 600; }
.status-item .icon { color: var(--orange); width: 18px; height: 18px; }
.status-tag { font-size: 12px; font-weight: 700; color: var(--success); background: rgba(34, 197, 94, .12); padding: 4px 10px; border-radius: 999px; }

.floating-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: #fff; color: var(--text); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.floating-chip strong { display: block; font-family: var(--font-display); font-size: 15px; }
.floating-chip small { color: var(--muted); font-size: 12.5px; }
.floating-chip .chip-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.floating-chip { z-index: 3; }
.floating-chip.c1 { top: -22px; left: -34px; }
.floating-chip.c2 { bottom: 120px; right: -36px; animation-delay: 1.5s; }
.floating-chip.c2 .chip-icon { background: var(--cyan-soft); color: #1597ad; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Bande de chiffres-clés */
.hero-stats {
  position: relative; margin-top: 90px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stat { padding: 34px 24px; border-right: 1px solid var(--line-dark); }
.hero-stat:last-child { border-right: none; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: #fff; }
.hero-stat strong span { color: var(--orange); }
.hero-stat p { margin-top: 6px; color: var(--muted-dark); font-size: 14.5px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); margin-bottom: 26px;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-num { position: absolute; top: 28px; right: 28px; font-family: var(--font-display); font-weight: 700; color: #d6dbe4; font-size: 14px; }
.service-card h3 { font-size: 21px; font-weight: 700; }
.service-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.service-list { margin-top: 18px; display: grid; gap: 8px; }
.service-list li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 600; color: #334155; }
.service-list li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ---------- Méthode ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1;
  background: linear-gradient(180deg, var(--orange), rgba(242, 107, 42, .15)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-top: 22px; font-size: 19px; }
.step p { margin-top: 10px; color: var(--muted-dark); font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -16px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
}

/* ---------- Pourquoi KSB ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why-visual {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff;
  padding: 44px; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.why-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(242, 107, 42, .45), transparent 45%),
    radial-gradient(circle at 10% 95%, rgba(53, 199, 222, .3), transparent 45%);
}
.why-visual > * { position: relative; }
.why-emblem { width: 120px; background: #fff; border-radius: 24px; padding: 14px; }
.why-quote { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.why-quote span { color: var(--orange); }
.why-sign { margin-top: 18px; color: var(--muted-dark); font-size: 14.5px; }

.values { display: grid; gap: 14px; margin-top: 36px; }
.value {
  display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.value:hover { border-color: rgba(242, 107, 42, .35); box-shadow: 0 14px 30px -18px rgba(242, 107, 42, .5); }
.value-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.value h3 { font-size: 17px; }
.value p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- Secteurs ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector {
  display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: background .3s, color .3s, transform .3s;
}
.sector .icon { width: 30px; height: 30px; color: var(--orange); }
.sector h3 { font-size: 17px; }
.sector p { color: var(--muted); font-size: 14.5px; margin-top: -6px; }
.sector:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.sector:hover p { color: var(--muted-dark); }

/* ---------- Bandeau CTA / Recrutement ---------- */
.cta-band {
  position: relative; border-radius: 28px; overflow: hidden; padding: 56px;
  background: linear-gradient(120deg, var(--orange) 0%, #d9531a 100%); color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .08);
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: rgba(255, 255, 255, .9); }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.cta-band .req { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cta-band .req li { font-size: 13.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .14); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.cta-mail {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
  font-size: 13.5px; font-weight: 700; color: #fff; text-align: center; overflow-wrap: anywhere;
}
.cta-mail:hover { text-decoration: underline; }
.contact-card strong, .footer-grid a { overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s; }
.faq-item[open] { border-color: rgba(242, 107, 42, .4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .3s; color: var(--orange); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-contact { margin-top: 30px; padding: 26px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.faq-contact p { color: var(--muted-dark); margin: 8px 0 18px; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 36px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color .25s, transform .25s;
}
a.contact-card:hover { border-color: rgba(242, 107, 42, .5); transform: translateX(4px); }
.contact-card .cc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 107, 42, .14); color: var(--orange); flex-shrink: 0; }
.contact-card small { display: block; color: var(--muted-dark); font-size: 13px; }
.contact-card strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.form-card { background: #fff; color: var(--text); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 24px; }
.form-card > p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: #334155; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--paper-2);
  border: 1.5px solid transparent; border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field.has-error input, .field.has-error select { border-color: #dc2626; }
.field .error { display: none; color: #dc2626; font-size: 12.5px; font-weight: 600; }
.field.has-error .error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--paper-2); border: 1.5px solid transparent; color: #334155; transition: all .2s;
}
.chips input:checked + span { background: var(--orange-soft); border-color: var(--orange); color: #c2491a; }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-note { font-size: 13px; color: var(--muted); max-width: 300px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(34, 197, 94, .1);
  color: #15803d; font-weight: 600; font-size: 14.5px;
}
.form-success.show { display: block; }

/* ---------- Pied de page ---------- */
.site-footer { background: #04070d; color: var(--muted-dark); padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-about p { margin-top: 20px; max-width: 340px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: #fff; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }

/* ---------- Barre d'appel mobile & bouton WhatsApp ---------- */
.mobile-bar { display: none; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31, 168, 85, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ==========================================================================
   Identité KSB : formes biseautées, étoiles du logo, typographie tactique
   ========================================================================== */
h1, h2, .section-title { text-transform: uppercase; letter-spacing: -0.01em; }
.hero h1 { letter-spacing: -0.015em; line-height: 1.02; }
h3 { letter-spacing: 0; }

/* Boutons en parallélogramme */
.btn {
  border-radius: 0; border: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding: 16px 30px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
  font-family: var(--font-display); font-weight: 700;
}
.btn-sm { padding: 12px 22px; font-size: 13px; }
.btn-primary { box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .1); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { background: var(--paper-2); }

/* Étiquettes de section : étoile cyan du logo */
.eyebrow::before, .section-head.center .eyebrow::after {
  width: 14px; height: 14px; border-radius: 0; background: var(--cyan);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.eyebrow { font-size: 14px; letter-spacing: .2em; }

/* Hero : filigrane KSB, étoiles et coupe diagonale */
.hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%); padding-bottom: 70px; }
.hero-watermark {
  position: absolute; right: -2vw; bottom: 40px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(160px, 26vw, 400px); line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); user-select: none;
}
.hero-star { position: absolute; width: 22px; height: 22px; opacity: .55; animation: twinkle 4s ease-in-out infinite; }
.hero-star.s1 { top: 18%; left: 6%; color: var(--orange); }
.hero-star.s2 { top: 34%; left: 47%; color: var(--cyan); width: 14px; height: 14px; animation-delay: .8s; }
.hero-star.s3 { bottom: 26%; left: 3%; color: var(--cyan); width: 16px; height: 16px; animation-delay: 1.6s; }
.hero-star.s4 { top: 14%; right: 6%; color: var(--cyan); width: 16px; height: 16px; animation-delay: 2.4s; }
.hero-star.s5 { bottom: 34%; left: 50%; color: var(--orange); width: 12px; height: 12px; animation-delay: 3.2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.85) rotate(0); } 50% { opacity: .8; transform: scale(1.1) rotate(20deg); } }
.hero-badge { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 20px; padding-right: 22px; }
.hero h1 em { display: inline-block; position: relative; }

/* Panneau radar : cadre à coins coupés + repères de visée */
.shield-card {
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.shield-card::before, .shield-card::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--orange);
}
.shield-card::before { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.shield-card::after { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.status-item { border-radius: 0; border-left: 3px solid var(--orange); }
.floating-chip { border-radius: 0; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.floating-chip .chip-icon { border-radius: 0; }
.brand-mark { border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }

/* Chiffres-clés */
.hero-stats { border-top-color: rgba(242, 107, 42, .35); }
.hero-stat strong { font-size: clamp(32px, 3.6vw, 46px); }

/* Bandeau défilant */
.ticker {
  position: relative; z-index: 3; margin: -52px -2% 0; padding: 18px 0; overflow: hidden;
  background: var(--orange); color: #fff; transform: rotate(-2deg);
  box-shadow: 0 20px 40px -20px rgba(242, 107, 42, .7);
}
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ticker svg { width: 20px; height: 20px; color: var(--ink); flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
#services { padding-top: 140px; }

/* Cartes services : coin coupé + grand numéro en contour */
.service-card {
  border-radius: 0; border: none; background: #fff;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.service-card:hover { box-shadow: inset 0 0 0 1px transparent, var(--shadow); }
.service-num {
  top: 16px; right: 44px; font-size: 56px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px #cfd5df; transition: -webkit-text-stroke-color .3s;
}
.service-card:hover .service-num { -webkit-text-stroke-color: var(--orange); }
.service-icon { border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.service-card h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.service-list li::before { width: 8px; height: 8px; border-radius: 0; transform: rotate(45deg); margin-top: 8px; }

/* Méthode : ligne de progression */
.step { border-radius: 0; background: transparent; border: none; border-top: 2px solid rgba(255, 255, 255, .12); padding: 30px 8px 0 0; }
.step::before { font-size: 64px; }
.step h3 { text-transform: uppercase; }
.step::after { display: none; }
.step:hover { border-top-color: var(--orange); }
.process { gap: 32px; }
.process .step { transition: border-color .3s; }

/* Pourquoi nous */
.why-visual { border-radius: 0; clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 50px 100%, 0 calc(100% - 50px)); }
.why-visual::after {
  content: "★ ★ ★ ★ ★"; position: absolute; right: 44px; bottom: 44px; letter-spacing: 6px; font-size: 16px; color: var(--cyan);
}
.why-emblem { border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.value { border-radius: 0; border: none; border-left: 3px solid var(--line); background: var(--paper-2); }
.value:hover { border-left-color: var(--orange); box-shadow: none; background: #fff; }
.value-icon { border-radius: 0; }

/* Secteurs */
.sector { border-radius: 0; border: none; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.sector::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent var(--orange) transparent;
  transition: border-width .3s;
}
.sector:hover::after { border-width: 0 0 34px 34px; }
.sector:hover { box-shadow: none; }

/* Recrutement */
.cta-band { border-radius: 0; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 60px 100%, 0 calc(100% - 60px)); }
.cta-band::before { border-radius: 0; border: none; width: 420px; height: 420px; right: -120px; top: -140px; background: rgba(255, 255, 255, .08); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cta-band .eyebrow::before { background: var(--ink); }
.cta-band .req li { border-radius: 0; }

/* FAQ & contact */
.faq-item { border-radius: 0; }
.faq-item[open] { border-left: 3px solid var(--orange); }
.faq-contact { border-radius: 0; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.contact-card { border-radius: 0; border-left: 3px solid var(--orange); }
.contact-card .cc-icon { border-radius: 0; }
.form-card { border-radius: 0; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); border-top: 4px solid var(--orange); }
.field input, .field select, .field textarea { border-radius: 0; border: none; border-bottom: 2px solid #d6dbe4; }
.chips span { border-radius: 0; }
.form-success { border-radius: 0; }
.socials a { border-radius: 0; }
.wa-float { border-radius: 0; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.nav a { border-radius: 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.is-active { background: transparent; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

/* ==========================================================================
   Photos réelles des équipes
   ========================================================================== */
/* Pourquoi nous : photo en fond */
.why-visual.has-photo { background: url("../assets/img/agents-tactique.jpg") center 35% / cover no-repeat, var(--ink); }
.why-visual.has-photo::before {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .25) 0%, rgba(7, 11, 20, .35) 40%, rgba(7, 11, 20, .95) 85%),
    radial-gradient(circle at 85% 10%, rgba(242, 107, 42, .35), transparent 45%);
}
.why-visual.has-photo .why-emblem { width: 96px; }

/* Galerie terrain */
.gallery-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.gallery-head .section-lead { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.g-item {
  position: relative; padding: 0; border: none; background: var(--ink-3); overflow: hidden; cursor: zoom-in;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .4s; filter: saturate(.92); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, .85)); transition: opacity .3s;
}
.g-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g-cap {
  position: absolute; z-index: 2; left: 16px; bottom: 14px; right: 16px; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.g-cap::before { content: ""; width: 14px; height: 3px; background: var(--orange); }
.g-item img { object-position: center 18%; }
.g-wide img { object-position: center 12%; }
.g-tall img { object-position: center 85%; }
.g-item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 7, 13, .94);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; box-shadow: var(--shadow-lg); }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: none;
  background: var(--orange); color: #fff; display: grid; place-items: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
.nav a, .header-phone, .brand-name { white-space: nowrap; }

@media (max-width: 1320px) {
  .header-phone { display: none; }
}

@media (max-width: 1100px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .floating-chip.c1 { left: -10px; }
  .floating-chip.c2 { right: -10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 84px 0; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 24px;
    background: rgba(7, 11, 20, .98); backdrop-filter: blur(12px);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav a { font-size: 18px; padding: 16px 18px; border-radius: 12px; }
  .site-header.menu-open { background: var(--ink); }
  .header-actions .btn { display: none; }

  .hero { padding-top: calc(var(--header-h) + 50px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { min-height: 400px; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .gallery-head { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .section-lead { font-size: 16.5px; }
  .brand-tag { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 15.5px; }
  .hero-lead { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .shield-card { padding: 22px; border-radius: 22px; }
  .floating-chip { display: none; }
  .hero-stat { padding: 24px 14px; }
  .services-grid, .process, .sectors { grid-template-columns: 1fr; }
  .why-visual { padding: 30px; }
  .cta-band { padding: 30px 22px; border-radius: 22px; }
  .form-card { padding: 26px 20px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { display: none; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); padding-bottom: 36px; }
  .ticker { margin-top: -30px; padding: 13px 0; }
  .ticker span { font-size: 17px; }
  #services { padding-top: 96px; }
  .gallery { grid-auto-rows: 180px; gap: 10px; }
  .g-cap { font-size: 12.5px; left: 10px; bottom: 10px; }
  .service-num { font-size: 44px; }
  .cta-band, .why-visual { clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 11, 20, .96); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
