/* iVi Systems — site institutionnel B2B sécurité */

:root {
  --orange: #FF6B1A;
  --orange-dark: #E85D04;
  --orange-soft: #FFF2E8;

  --ink: #0E1116;
  --ink-2: #1A1F26;
  --graphite: #2A313A;
  --slate: #4A5460;
  --steel: #7A8492;

  --paper: #FAF8F4;
  --paper-2: #F2EFE8;
  --line: #E5E1D8;
  --line-strong: #D5D0C4;

  --white: #FFFFFF;

  --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============ TYPO ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--slate);
  max-width: 60ch;
  text-wrap: pretty;
}
.body { font-size: 15px; line-height: 1.6; color: var(--slate); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer .logo-img { height: 56px; }
.logo-text { display: none; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--graphite);
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--graphite); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform .18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-headline {
  max-width: 14ch;
}
.hero-headline em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  margin-top: 32px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.meta-item .meta-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.meta-item .meta-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero visual — placeholder card stack */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(14, 17, 22, 0.18);
}
.hero-card-1 {
  inset: 0 20% 25% 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,107,26,.08) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1A1F26, #2A313A);
}
.hero-card-2 {
  inset: 35% 0 0 30%;
  background: var(--orange);
  display: grid;
  place-items: center;
  color: var(--white);
}

.hero-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
}
.hero-card-1 .hero-tag { top: 16px; left: 16px; }

.hero-stat {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.85;
}
.hero-stat-block { text-align: center; padding: 24px; }

/* Trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper-2);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.trust-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--graphite);
  letter-spacing: -0.01em;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-logo::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ============ SERVICES ============ */
.section { padding: 120px 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .lead { color: rgba(250, 248, 244, 0.7); }
.section-dark .eyebrow { color: var(--orange); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head .eyebrow { margin-bottom: 24px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  background: var(--ink);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  transition: background .25s ease;
}
.service:hover { background: var(--ink-2); }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.3);
  display: grid;
  place-items: center;
  margin: 32px 0 28px;
  color: var(--orange);
}
.service h3 {
  color: var(--paper);
  margin-bottom: 14px;
}
.service p {
  color: rgba(250, 248, 244, 0.65);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 13px;
  color: rgba(250, 248, 244, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.service-link:hover { color: var(--orange); }

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
.why-card p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.why-card-feature {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  grid-column: span 1;
}
.why-card-feature h3 { color: var(--white); }
.why-card-feature p { color: rgba(255,255,255,0.7); }
.why-card-feature .num { color: var(--orange); }

.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .why-stats { grid-template-columns: repeat(2, 1fr); }
}
.why-stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.why-stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .why-stat:nth-child(2n) { border-right: none; }
  .why-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.why-stat .v {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.why-stat .v em {
  font-style: normal;
  color: var(--orange);
}
.why-stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 12px;
}

/* ============ ZONE GRAND EST ============ */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .zone-grid { grid-template-columns: 1fr; gap: 48px; }
}
.zone-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.zone-highlight {
  padding: 24px 16px 24px 0;
  border-right: 1px solid var(--line);
}
.zone-highlight:last-child { border-right: none; padding-right: 0; }
.zone-highlight:not(:first-child) { padding-left: 24px; }
.zone-highlight-v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--orange);
  line-height: 1;
}
.zone-highlight-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 12px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .zone-highlights { grid-template-columns: 1fr; }
  .zone-highlight { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0 !important; }
  .zone-highlight:last-child { border-bottom: none; }
}

.hero-stack-link { cursor: pointer; outline: none; }
.hero-stack-link g[transform] rect:first-child {
  transition: filter .18s ease, transform .18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-stack-link:hover g[transform] rect:first-child {
  filter: brightness(1.15);
}

.service-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 4px;
}
.service-brands-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
  margin-right: 4px;
}
.service-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.25);
  color: var(--orange);
}

.zone-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.zone-cta-text { font-size: 14px; color: var(--graphite); }
.zone-cta-text strong { color: var(--ink); font-weight: 600; }

/* Map illustration */
.map-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.map-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.map-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.map-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.map-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
}
.map-meta .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ============ DEVIS ============ */
.devis-section {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
}
.devis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 980px) {
  .devis-grid { grid-template-columns: 1fr; gap: 48px; }
}
.devis-section .h2 { color: var(--paper); }
.devis-section .lead { color: rgba(250, 248, 244, 0.7); }

.devis-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.devis-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.devis-step:first-child { border-top: none; padding-top: 0; }
.devis-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 40px;
  padding-top: 2px;
}
.devis-step-body strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}
.devis-step-body span {
  font-size: 14px;
  color: rgba(250, 248, 244, 0.6);
}

/* Form */
.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.form-sub {
  font-size: 14px;
  color: var(--slate);
  margin: 0 0 28px;
}
.form-field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-textarea {
  height: 96px;
  padding: 12px 14px;
  resize: vertical;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}
.form-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}
.form-checkbox.checked {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 500;
}
.form-checkbox-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--white);
}
.form-checkbox.checked .form-checkbox-box {
  background: var(--orange);
  border-color: var(--orange);
}
.form-submit {
  width: 100%;
  margin-top: 12px;
  height: 52px;
  justify-content: center;
}
.form-success {
  padding: 32px;
  text-align: center;
  background: var(--orange-soft);
  border-radius: var(--radius-md);
  color: var(--orange-dark);
}
.form-success-icon {
  width: 48px; height: 48px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--graphite);
}
.footer-col a:hover { color: var(--orange); }
.footer-about { font-size: 14px; color: var(--slate); line-height: 1.6; max-width: 38ch; margin-top: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Subtle hover on map regions */
.map-region {
  fill: var(--paper-2);
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: fill .2s ease;
  cursor: pointer;
}
.map-region:hover { fill: rgba(255, 107, 26, 0.18); }
.map-region.active { fill: rgba(255, 107, 26, 0.35); stroke: var(--orange); }
.map-pin {
  fill: var(--orange);
  stroke: var(--white);
  stroke-width: 2;
}
.map-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--graphite);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

/* dark variant overrides via attr */
body[data-theme="dark"] {
  --paper: #0E1116;
  --paper-2: #1A1F26;
  --line: #2A313A;
  --line-strong: #3A424E;
  --ink: #FAF8F4;
  --ink-2: #F2EFE8;
  --graphite: #E5E1D8;
  --slate: #A8B0BC;
  --steel: #7A8492;
  --white: #1A1F26;
}
