/* ============================================================
   OPTICOPIE — Gestion de parc d'impression
   Feuille de style principale
   ============================================================ */

:root {
  --navy: #0a2540;
  --navy-2: #0e3057;
  --blue: #1f5eff;
  --blue-dark: #1747c4;
  --blue-pale: #eaf0ff;
  --ink: #1c2733;
  --slate: #5a6b7c;
  --slate-light: #8a99a8;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --green: #0e9f6e;
  --amber: #d97706;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 2px 8px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 12px 32px rgba(10, 37, 64, 0.07);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #c8d6e8;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #ffffff; font-weight: 600; }
.topbar .topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar .tag { display: inline-flex; align-items: center; gap: 6px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.5px;
}
.brand-name { color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.brand-name span { color: var(--blue); }
.brand-sub { display: block; font-size: 10.5px; font-weight: 600; color: var(--slate-light); letter-spacing: 1.6px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--blue-dark); }
.main-nav a.active { color: var(--blue-dark); background: var(--blue-pale); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700; font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(31, 94, 255, 0.35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(31, 94, 255, 0.35), transparent 60%),
    radial-gradient(700px 400px at -5% 110%, rgba(31, 94, 255, 0.22), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: #9db8ff;
  border: 1px solid rgba(157, 184, 255, 0.35);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #7da2ff; }
.hero .lead {
  font-size: 18px;
  color: #c2d1e4;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-points { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-points li {
  list-style: none;
  font-size: 13.5px; font-weight: 600; color: #aebfd4;
  display: flex; align-items: center; gap: 8px;
}
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 800; }

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #9db8ff; margin-bottom: 18px; }
.hero-panel .metric { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hero-panel .metric:last-child { border-bottom: none; }
.hero-panel .metric b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.hero-panel .metric span { color: #aebfd4; font-size: 13.5px; }
.hero-panel .metric .up { color: var(--green); font-size: 12px; font-weight: 700; margin-left: 8px; }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 22px 0; }
.trustbar .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trustbar p { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--slate-light); white-space: nowrap; }
.trust-logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust-logos span {
  font-weight: 800; font-size: 16px; color: #a7b4c2; letter-spacing: 0.4px;
  filter: grayscale(1);
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px; display: block;
}
h2.title { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.8px; line-height: 1.15; color: var(--navy); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 17px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-pale); color: var(--blue-dark);
  display: grid; place-items: center;
  font-size: 21px; margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; color: var(--navy); letter-spacing: -0.3px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 14.5px; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 58px 0; }
.stats-band .grid-4 { text-align: center; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -1px; color: #7da2ff; }
.stat span { color: #aebfd4; font-size: 14px; font-weight: 600; }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-visual {
  background: linear-gradient(180deg, #eef2f8 0%, #dfe7f2 100%);
  padding: 28px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 210px;
}
.product-visual svg { width: 150px; height: auto; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--slate-light); }
.product-body h3 { font-size: 18px; color: var(--navy); margin: 6px 0 12px; letter-spacing: -0.3px; }
.spec-list { list-style: none; margin-bottom: 18px; flex: 1; }
.spec-list li {
  font-size: 13.5px; color: var(--slate);
  padding: 6px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 12px;
}
.spec-list li b { color: var(--ink); font-weight: 600; text-align: right; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.price-row .price { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.price-row .price small { font-size: 12.5px; font-weight: 600; color: var(--slate-light); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge.blue { background: var(--blue-pale); color: var(--blue-dark); }
.badge.green { background: #e3f5ee; color: var(--green); }
.badge.amber { background: #fdf0e0; color: var(--amber); }

/* ---------- Process / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 13px; font-weight: 800; color: var(--blue);
  font-family: var(--mono);
  display: block; margin-bottom: 12px;
}
.step h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 13.5px; }

/* ---------- Testimonials ---------- */
.quote-card { padding: 30px; }
.quote-card blockquote { font-size: 15.5px; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.quote-card blockquote::before { content: "« "; color: var(--blue); font-weight: 800; }
.quote-card blockquote::after { content: " »"; color: var(--blue); font-weight: 800; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale), #d4e0f5);
  color: var(--blue-dark); font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
.quote-author b { display: block; font-size: 14px; color: var(--navy); }
.quote-author span { font-size: 12.5px; color: var(--slate-light); }
.stars { color: #f5b301; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 70% 0%, rgba(125, 162, 255, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 56px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.6px; margin-bottom: 8px; }
.cta-band p { color: #b9c8dc; max-width: 520px; }

/* ---------- Certifications ---------- */
.cert-row { display: flex; gap: 18px; flex-wrap: wrap; }
.cert {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.cert .cert-ico { font-size: 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.pricing { width: 100%; border-collapse: collapse; min-width: 760px; }
table.pricing th, table.pricing td { padding: 15px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.pricing thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; }
table.pricing tbody tr:hover { background: var(--bg-soft); }
table.pricing td b { color: var(--navy); }
table.pricing .check { color: var(--green); font-weight: 800; }
table.pricing .nope { color: var(--slate-light); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 85%);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .crumb { font-size: 13px; color: #8fa5c0; margin-bottom: 14px; }
.page-hero .crumb a { color: #b9c8dc; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -1px; margin-bottom: 12px; }
.page-hero p { color: #b9c8dc; max-width: 640px; font-size: 17px; }

/* ---------- Filters (produits) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--slate);
  font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: 999px;
  cursor: pointer; font-family: var(--font);
  transition: all 0.12s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.form-field label .req { color: #d3364c; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.14);
}
.form-note { font-size: 12.5px; color: var(--slate-light); margin-top: 14px; }
.form-success {
  display: none;
  background: #e3f5ee; border: 1px solid #bce6d5; color: #086b4b;
  border-radius: 8px; padding: 14px 18px; font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
}
.form-success.visible { display: block; }

/* ---------- Contact info ---------- */
.info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .ico { font-size: 20px; width: 42px; height: 42px; border-radius: 10px; background: var(--blue-pale); display: grid; place-items: center; flex-shrink: 0; }
.info-item b { display: block; color: var(--navy); font-size: 14.5px; }
.info-item span, .info-item a { font-size: 14px; color: var(--slate); }

/* ---------- Accordion (FAQ) ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--slate); font-size: 14.5px; }

/* ---------- Timeline (entreprise) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -31px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.timeline-item .year { font-family: var(--mono); font-weight: 800; color: var(--blue); font-size: 14px; }
.timeline-item h4 { color: var(--navy); font-size: 16.5px; margin: 4px 0 6px; }
.timeline-item p { color: var(--slate); font-size: 14.5px; max-width: 620px; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 30px 22px; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 120%);
  color: #fff; font-weight: 800; font-size: 26px;
  display: grid; place-items: center;
}
.team-card b { display: block; color: var(--navy); font-size: 16px; }
.team-card span { font-size: 13px; color: var(--slate-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebfd4; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #aebfd4; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7d90a8;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-certs { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-certs span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 6px;
  padding: 5px 10px; color: #c8d6e8;
}

/* ---------- Legal page ---------- */
.legal-content { max-width: 800px; }
.legal-content h2 { color: var(--navy); font-size: 22px; margin: 38px 0 12px; letter-spacing: -0.4px; }
.legal-content p, .legal-content li { color: var(--slate); font-size: 14.5px; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; }

/* ---------- Misc ---------- */
.mono { font-family: var(--mono); }
.mt-48 { margin-top: 48px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .steps, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 28px; }
  .topbar .topbar-links { display: none; }
}
