:root {
  --blue: #00519b;
  --deep: #09233f;
  --cyan: #009ed3;
  --red: #d71920;
  --orange: #f58220;
  --green: #2e8b57;
  --ink: #1f2c38;
  --muted: #687786;
  --line: #dfe7ee;
  --soft: #f3f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(9, 35, 63, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-top: 1px solid #eadfcf;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(9, 35, 63, .06);
}

.topline {
  width: min(1480px, calc(100% - 32px));
  min-height: 132px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto 44px;
  gap: 18px;
  align-items: center;
}

.brand img { width: 168px; max-height: 112px; object-fit: contain; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-weight: 700;
  font-size: 17px;
  color: #34414f;
  white-space: nowrap;
}

.main-nav a {
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  line-height: 1.1;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
}

.support {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #34414f;
  white-space: nowrap;
  font-size: 16px;
}

.support-icon { color: var(--cyan); font-size: 36px; line-height: 1; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--deep);
  font-size: 24px;
  border-radius: 6px;
}

.bluebar {
  background: var(--cyan);
  min-height: 98px;
  padding: 20px 0;
}

.bluebar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: block;
}

.bluebar-tools {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.rayons {
  background: #fff;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  font-weight: 700;
  color: var(--deep);
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr 72px;
  max-width: 100%;
  position: relative;
}

.searchbar input,
.searchbar button {
  min-height: 52px;
  border: 0;
  font: inherit;
}

.searchbar input {
  padding: 0 28px;
  border-radius: 22px 0 0 22px;
}

.searchbar button {
  border-radius: 0 10px 10px 0;
  background: #303943;
  color: #fff;
  font-size: 32px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.search-open .floating-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.search-suggestion,
.search-suggestion-empty {
  display: grid;
  gap: 3px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover { background: #f4f9fc; }
.search-suggestion span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.search-suggestion strong {
  color: var(--deep);
  line-height: 1.25;
}
.search-suggestion small,
.search-suggestion-empty {
  color: var(--muted);
  font-size: 14px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
}

.search-page-form .search-suggestions {
  right: 150px;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(9, 35, 63, .06);
}

.search-result span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result h2 {
  font-size: 22px;
  margin: 7px 0 8px;
}

.search-result p {
  margin: 0 0 12px;
  color: var(--muted);
}

.hero {
  background:
    linear-gradient(90deg, rgba(9, 35, 63, .9) 0%, rgba(9, 35, 63, .78) 36%, rgba(0, 81, 155, .28) 76%, rgba(9, 35, 63, .18) 100%),
    url('/assets/images/hero/cantav-industrial-solutions-hero.png?v=20260512-5') 58% 28% / cover no-repeat;
  min-height: 520px;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: #32c9f4;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: 50px;
  line-height: 1.08;
  font-weight: 800;
}

.hero p,
.page-hero p {
  font-size: 19px;
  max-width: 760px;
}

.hero-actions,
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-secondary { background: #fff; color: var(--deep); }
.btn-outline { border-color: var(--line); color: var(--deep); background: #fff; }
.btn:hover { filter: brightness(.96); }

.hero-panel {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel h2 { margin-top: 0; font-size: 22px; }
.hero-panel ul { padding-left: 20px; margin-bottom: 0; }

.section {
  padding: 72px 0;
}

.section.alt { background: var(--soft); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section h2,
.content h2 {
  color: var(--deep);
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-head p { max-width: 700px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(9, 35, 63, .07);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 { color: var(--deep); margin: 0 0 10px; font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); }
.card .btn,
.card .text-link { margin-top: auto; align-self: flex-start; }

.text-link { color: var(--blue); font-weight: 800; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.feature-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li,
.check-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature-list li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, var(--deep), var(--blue));
  color: #fff;
  padding: 72px 0;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9aa8b5; }
.breadcrumb a { color: var(--blue); font-weight: 700; }

.content {
  padding: 42px 0 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.content-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}

.aside-box {
  background: var(--soft);
  border-left: 4px solid var(--cyan);
  padding: 24px;
  border-radius: 8px;
  position: sticky;
  top: 250px;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.pill-list li { background: #e7f4f9; color: var(--deep); padding: 8px 12px; border-radius: 6px; font-weight: 700; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--deep);
}

.study-cta {
  margin: 42px 0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep), #0b5d8d);
  color: #fff;
}

.study-cta h2 { color: #fff; margin: 0 0 8px; }
.study-cta p { margin: 0; max-width: 760px; }

.floating-cta {
  position: fixed;
  right: 22px;
  top: 52%;
  transform: translateY(-50%);
  z-index: 30;
  width: 286px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--deep), #0b5d8d);
  color: #fff;
  box-shadow: 0 20px 46px rgba(9, 35, 63, .28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.floating-cta.is-hidden { display: none; }
.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-cta .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.floating-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.floating-cta p {
  margin: 0 0 16px;
  color: #eef8fc;
  font-size: 15px;
}

.floating-cta .btn {
  width: 100%;
  min-height: 46px;
}

.floating-phone {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #fff;
  font-weight: 800;
}

.floating-cta-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.partners-section {
  padding: 56px 0;
  background: #f7fafc;
  border-top: 1px solid var(--line);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-logo {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(9, 35, 63, .06);
}

.partner-logo img {
  max-width: 190px;
  max-height: 64px;
  object-fit: contain;
  filter: saturate(.96);
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}

.social-links a:hover { background: var(--cyan); }
.social-links svg { width: 24px; height: 24px; fill: currentColor; }

.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label { display: grid; gap: 7px; font-weight: 700; color: var(--deep); }

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e3;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 158, 211, .22);
  border-color: var(--cyan);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #c62828;
  background: #fff8f8;
}

.field-error {
  display: block;
  color: #9b1c1f;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}
.form-help {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

textarea { resize: vertical; }

.lead-form > label { margin-top: 18px; }
.checkbox { display: flex; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 18px 0; font-weight: 600; color: var(--ink); }
.checkbox input { width: auto; margin-top: 5px; }
.hp-field { display: none; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.contact-section {
  padding-top: 24px;
}

.alert {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert.success { background: #e8f6ee; color: #22633e; border: 1px solid #b7dfc8; }
.alert.error { background: #fff0f0; color: #9b1c1f; border: 1px solid #f0bbbb; }

.site-footer {
  background: var(--deep);
  color: #dbe7f2;
  padding-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 360px 360px 288px;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
}

.footer-contact,
.footer-social {
  padding-top: 20px;
}

.footer-logo {
  width: 154px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0 0 12px;
  box-shadow: none;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.footer-brand {
  text-align: left;
}

.site-footer h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 18px;
}
.site-footer a { color: #fff; }
.site-footer .btn-primary { color: #fff; }
.footer-contact p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin: 0 0 7px;
  color: #f2f8fd;
  font-size: 16px;
  line-height: 1.45;
}

.footer-contact span {
  color: #32c9f4;
  font-weight: 900;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 24px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  display: block;
  text-align: center;
  color: #aac0d4;
}

.admin-body { background: #eef3f7; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--deep); color: #fff; padding: 24px; }
.admin-sidebar img { background: #fff; border-radius: 6px; padding: 8px; margin-bottom: 24px; }
.admin-sidebar a { display: block; padding: 10px 0; color: #eaf4fc; font-weight: 700; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 18px; box-shadow: 0 8px 22px rgba(9, 35, 63, .08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat strong { display: block; font-size: 32px; color: var(--deep); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--deep); background: #f8fafc; }
.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e7f4f9;
  color: var(--deep);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.status-nouveau { background: #ffe4e6; color: #b91c1c; }
.status-en_cours { background: #ffedd5; color: #c2410c; }
.status-a_rappeler { background: #e0f7ff; color: #02799f; }
.status-devis_envoye { background: #ede9fe; color: #5b21b6; }
.status-gagne { background: #dcfce7; color: #15803d; }
.status-perdu { background: #111827; color: #ffffff; }
.reply-form { display: grid; gap: 18px; }
.email-thread { display: grid; gap: 14px; }
.email-log {
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.email-log-sent { border-left-color: #15803d; }
.email-log-failed { border-left-color: #b91c1c; }
.email-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.email-state {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  background: #eef4f8;
  color: var(--deep);
  font-weight: 900;
  font-size: 12px;
}
.email-meta {
  color: var(--muted);
  font-size: .95rem;
  margin: 8px 0 12px;
}
.email-error {
  color: #9b1c1f;
  font-weight: 800;
}
.email-attachments {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}
.email-attachments ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.filter-form { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.filter-form .btn { width: 100%; justify-self: center; }
.status-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.status-form .btn { min-height: 49px; }
.note-form { display: grid; gap: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--deep), var(--blue)); padding: 24px; }
.login-box { width: min(420px, 100%); background: #fff; border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.login-box img { width: 150px; margin: 0 auto 20px; }
.login-box h1 { text-align: center; }
.login-box .btn { margin: 22px auto 0; min-width: 180px; }
.login-box label { margin-top: 16px; }

@media (max-width: 980px) {
  .topline { grid-template-columns: 160px 1fr 44px; min-height: 96px; }
  .brand img { width: 136px; }
  .support { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .main-nav {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 6px;
  }
  .main-nav.is-open { display: flex; }
  .bluebar { min-height: auto; }
  .bluebar-inner { display: block; }
  .bluebar-tools {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    padding: 0;
  }
  .hero-inner,
  .content-grid,
  .split,
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-box { position: static; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-cta {
    right: 14px;
    width: 260px;
  }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 64px 0; }
  .hero h1,
  .page-hero h1 { font-size: 34px; }
  .hero p,
  .page-hero p { font-size: 17px; }
  .cards,
  .partner-logos,
  .form-grid,
  .search-page-form,
  .stats-grid,
  .filter-form { grid-template-columns: 1fr; }
  .status-form { grid-template-columns: 1fr; }
  .status-form .btn { width: 100%; }
  .study-cta,
  .section-head,
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .footer-logo { width: 144px; margin-left: 0; }
  .footer-grid { gap: 34px; }
  .floating-cta {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    transform: none;
    padding: 14px 54px 14px 14px;
  }
  .floating-cta .eyebrow,
  .floating-cta p,
  .floating-phone { display: none; }
  .floating-cta h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .floating-cta .btn {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
  }
}
