/* ==========================================================================
   L2 Sécurité — feuille de style principale
   ========================================================================== */

:root {
  --black: #0a0a0c;
  --black-2: #17171b;
  --black-3: #202024;
  --red: #ed3746;
  --red-dark: #c22432;
  --red-light: #ffe3e5;
  --gray-900: #1a1a1e;
  --gray-700: #4a4a52;
  --gray-500: #767680;
  --gray-300: #c7c7ce;
  --gray-200: #e5e5ea;
  --gray-100: #f5f5f7;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 10, 12, 0.06);
  --shadow: 0 14px 40px rgba(10, 10, 12, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 10, 12, 0.16);
  --maxw: 1180px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--gray-700); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 780px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--black); }
.section-head p { font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(237,55,70,.28); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--black); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text span { font-size: 11px; color: var(--gray-500); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gray-900);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--gray-100); }
.main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.header-phone svg { color: var(--red); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-phone span.phone-text { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .header-inner { gap: 10px; padding: 10px 16px; }
}
@media (max-width: 430px) {
  .header-actions .btn-primary { display: none; }
  .brand-text strong { font-size: 13.5px; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
}
.mobile-nav a.active { color: var(--red); }
.mobile-nav .btn { margin-top: 16px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: radial-gradient(1100px 600px at 85% -10%, #2a1418 0%, transparent 60%), linear-gradient(160deg, var(--black) 0%, var(--black-2) 55%, var(--black-3) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 70% 30%, black 10%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero.small .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; text-align: left; }
.hero.small .hero-art { display: none; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-top: 52px; padding-bottom: 44px; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto 8px; }
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 20px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero .lead { color: var(--gray-300); font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badges .badge { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-300); font-weight: 600; }
.hero-badges svg { color: var(--red); flex-shrink: 0; }
.hero-art { position: relative; z-index: 2; }
.breadcrumb { display:flex; gap:8px; align-items:center; font-size:13px; color: var(--gray-300); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-300); font-weight: 600; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--white); }

/* ===================== Cards ===================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon-badge { margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin-bottom: 14px; font-size: 15px; }
.card .card-link { font-weight: 700; color: var(--red); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.icon-badge {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-light);
  color: var(--red);
}
.icon-badge.dark { background: var(--black); color: var(--red); }
.icon-badge.lg { width: 68px; height: 68px; border-radius: 18px; }

.bg-dark .icon-badge { background: rgba(237,55,70,.14); color: var(--red); }

/* ===================== Sector / list rows ===================== */
.sector-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
.sector-row .icon-badge { width: 72px; height: 72px; border-radius: 18px; }
.sector-row h3 { font-size: 21px; margin-bottom: 6px; }
.sector-row p { margin-bottom: 0; font-size: 15px; }
.sector-row .tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.sector-row .tags span { font-size:12px; font-weight:700; background: var(--gray-100); color: var(--gray-700); padding: 5px 10px; border-radius: 999px; }
@media (max-width: 760px) {
  .sector-row { grid-template-columns: 1fr; text-align: left; }
  .sector-row .cta { justify-self: start; }
}

/* ===================== Bands ===================== */
.band-gray { background: var(--gray-100); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark p { color: var(--gray-300); }
.band-dark h2, .band-dark h3 { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split.reverse .split-art { order: 2; }
@media (max-width: 900px) { .split.reverse .split-art { order: -1; } }

.check-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 15.5px; }
.check-list svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.stat-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}
.stat-strip .stat { text-align: left; }
.stat-strip .stat strong { display: block; font-size: 30px; color: var(--red); font-weight: 800; }
.stat-strip .stat span { font-size: 13.5px; color: var(--gray-300); font-weight: 600; }

/* Brand strip */
.brand-strip { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding: 26px 32px; border: 1px dashed var(--gray-300); border-radius: var(--radius); }
.brand-strip .icon-badge { background: var(--black); color: var(--red); }
.brand-strip strong { font-size: 15px; }
.brand-strip p { margin:0; font-size: 14px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--black) 0%, #2a1216 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: var(--gray-300); margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Steps */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 6px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
}
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; }

/* Zones list */
.zone-pills { display:flex; flex-wrap:wrap; gap:10px; margin-top: 18px; }
.zone-pills span { background: var(--white); border:1px solid var(--gray-200); padding: 9px 16px; border-radius: 999px; font-weight:700; font-size: 13.5px; }

.map-embed { border-radius: var(--radius); overflow:hidden; border:1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.map-embed iframe { width:100%; height:100%; min-height:340px; border:0; display:block; }

/* Timeline / about */
.timeline { display:flex; flex-direction:column; gap: 28px; border-left: 2px solid var(--gray-200); padding-left: 28px; margin-top: 8px; }
.timeline .t-item { position: relative; }
.timeline .t-item::before { content:""; position:absolute; left:-34px; top:4px; width:12px; height:12px; border-radius:50%; background: var(--red); }
.timeline h4 { margin-bottom: 4px; font-size: 16px; }
.timeline p { font-size: 14.5px; margin-bottom: 0; }

/* Values grid */
.value-card { text-align:center; padding: 30px 20px; }
.value-card .icon-badge { margin: 0 auto 16px; }

/* Contact page */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--gray-100); border-radius: var(--radius); padding: 32px; }
.contact-line { display:flex; gap: 14px; align-items:flex-start; margin-bottom: 22px; }
.contact-line strong { display:block; font-size: 15px; }
.contact-line span, .contact-line a { color: var(--gray-700); font-size: 14.5px; }
.contact-line .icon-badge { flex-shrink: 0; }

form.contact-form { display:flex; flex-direction:column; 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: 13.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-family: var(--font);
  font-size: 14.5px;
  background: var(--white);
  color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--gray-500); }

/* ===================== Footer ===================== */
.site-footer { background: var(--black); color: var(--gray-300); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-top p { font-size: 14px; color: var(--gray-500); }
.footer-col h5 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul { display:flex; flex-direction:column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--gray-300); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display:flex; gap:10px; align-items:flex-start; font-size: 14.5px; }
.footer-contact svg { color: var(--red); flex-shrink:0; margin-top:3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display:flex; gap: 18px; flex-wrap: wrap; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===================== Accent bandeau (hero) ===================== */
.hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--red) 35%, #ff8a93 50%, var(--red) 65%, transparent);
}

/* ===================== Illustration caméra (hero accueil) ===================== */
.cam-art { position: relative; display: flex; align-items: center; justify-content: center; height: 420px; }
.cam-art .glow-blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237,55,70,.32) 0%, rgba(237,55,70,.12) 45%, transparent 72%);
  filter: blur(6px);
}
.cam-art .ring { position: absolute; border: 1.5px dashed rgba(255,255,255,.14); border-radius: 50%; }
.cam-art .ring.r1 { width: 280px; height: 280px; animation: camRingSpin 40s linear infinite; }
.cam-art .ring.r2 { width: 360px; height: 360px; border-color: rgba(255,255,255,.09); animation: camRingSpin 60s linear infinite reverse; }
@keyframes camRingSpin { to { transform: rotate(360deg); } }
.cam-art .sweep {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(237,55,70,.4) 16deg, transparent 42deg);
  animation: camSweep 4.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes camSweep { to { transform: rotate(360deg); } }
.cam-art svg.cam-svg { position: relative; z-index: 2; width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 22px 34px rgba(0,0,0,.55)); }
.cam-art svg.cam-svg.wide { max-width: 400px; }
.cam-art .led-dot { animation: ledPulse 1.7s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ledPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cam-art .chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  padding: 7px 12px 7px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.cam-art .chip svg { color: var(--red); flex-shrink: 0; }
.cam-art .chip.chip-1 { top: 26px; right: 4px; }
.cam-art .chip.chip-2 { bottom: 30px; left: -14px; }
@media (max-width: 900px) {
  .cam-art { height: 300px; }
  .cam-art .glow-blob { width: 300px; height: 300px; }
  .cam-art .ring.r1 { width: 200px; height: 200px; }
  .cam-art .ring.r2 { width: 260px; height: 260px; }
  .cam-art .sweep { width: 200px; height: 200px; }
  .cam-art svg.cam-svg { max-width: 250px; }
  .cam-art svg.cam-svg.wide { max-width: 260px; }
  .cam-art .chip { font-size: 11px; padding: 6px 10px 6px 8px; }
  .cam-art .chip.chip-1 { top: 4px; right: -6px; }
  .cam-art .chip.chip-2 { bottom: 6px; left: -18px; }
}

/* ===================== CCTV mockup ===================== */
.cctv-mockup { background: var(--black); border-radius: var(--radius); padding: 14px; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.cctv-mockup .cctv-bar { display:flex; align-items:center; gap:8px; padding: 4px 6px 12px; }
.cctv-mockup .cctv-bar span { width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,.18); }
.cctv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cctv-tile {
  aspect-ratio: 4/3; background: linear-gradient(160deg,#1c1c22,#0a0a0c);
  border-radius: 8px; display:flex; align-items:center; justify-content:center;
  position: relative; border: 1px solid rgba(255,255,255,.06);
}
.cctv-tile svg { color: rgba(237,55,70,.6); width: 32px; height: 32px; }
.cctv-tile .rec { position:absolute; top:8px; left:10px; font-size:10px; font-weight:800; color: var(--red); letter-spacing:.05em; display:flex; align-items:center; gap:5px; }
.cctv-tile .rec .dot { width:6px; height:6px; border-radius:50%; background: var(--red); }
.cctv-tile .label { position:absolute; bottom:8px; left:10px; font-size:10px; color: rgba(255,255,255,.5); font-weight:600; }

/* ===================== Device panel ===================== */
.device-panel { background: var(--gray-100); border-radius: var(--radius); padding: 26px; display:flex; flex-direction:column; gap: 12px; }
.device-row { display:flex; align-items:center; gap:14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 14px 16px; }
.device-row .icon-badge { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.device-row strong { display:block; font-size: 14.5px; }
.device-row span { font-size: 13px; color: var(--gray-500); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
