:root {
  --cast0r-navy: #0d1b2a;
  --cast0r-blue: #1f355e;
  --cast0r-brown: #a1692e;
  --cast0r-orange: #e07a1f;
  --cast0r-dark-brown: #3b2418;
  --cast0r-green: #89a789;
  --cast0r-cream: #fff3e6;
  --cast0r-white: #ffffff;
  --service-parrainage: #f07a22;
  --service-crm: #1f355e;
  --service-site: #7faf9a;
  --service-telephonie: #f7a72b;
  --text-main: #0d1b2a;
  --text-muted: #667085;
  --background-main: #ffffff;
  --background-soft: #fff3e6;
  --border-soft: #eadccb;
  --shadow-soft: 0 24px 80px rgba(13, 27, 42, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--background-main);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--background-main);
}

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

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

.inline-link {
  color: var(--cast0r-brown);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(234, 220, 203, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--cast0r-navy);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--cast0r-navy);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--cast0r-white);
  background: var(--cast0r-navy);
  border-radius: 8px;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: calc(92svh - 72px);
  overflow: hidden;
  isolation: isolate;
  background: var(--cast0r-navy);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.9);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.96) 0%, rgba(13, 27, 42, 0.8) 46%, rgba(13, 27, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.05), rgba(255, 243, 230, 0.25));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  min-height: calc(92svh - 72px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 48px) clamp(22px, 4vw, 40px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
  color: var(--cast0r-white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cast0r-orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--cast0r-white);
  background: var(--cast0r-orange);
  box-shadow: 0 14px 28px rgba(224, 122, 31, 0.28);
}

.button-secondary {
  color: var(--cast0r-white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.hero-visual {
  align-self: end;
  justify-self: center;
  width: min(36vw, 330px);
  min-width: 236px;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.34));
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 56px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 720px;
}

.section h2 {
  margin: 0;
  color: var(--cast0r-navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.intro-grid article {
  min-height: 160px;
  padding: 24px;
  background: var(--cast0r-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.intro-grid strong {
  display: block;
  color: var(--cast0r-brown);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.intro-grid span {
  color: var(--text-muted);
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--cast0r-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(13, 27, 42, 0.08);
}

.product-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(140px, 15vw, 178px);
  overflow: hidden;
  background: var(--background-soft);
}

.product-media img {
  display: block;
  width: auto;
  height: clamp(78px, 8vw, 106px);
  max-width: 72%;
  object-fit: contain;
}

.product-crm .product-media {
  background: linear-gradient(180deg, rgba(31, 53, 94, 0.08), rgba(31, 53, 94, 0.03));
}

.product-parrainage .product-media {
  background: linear-gradient(180deg, rgba(240, 122, 34, 0.12), rgba(240, 122, 34, 0.04));
}

.product-site .product-media {
  background: linear-gradient(180deg, rgba(127, 175, 154, 0.2), rgba(127, 175, 154, 0.06));
}

.product-telephonie .product-media {
  background: linear-gradient(180deg, rgba(247, 167, 43, 0.14), rgba(247, 167, 43, 0.04));
}

.product-card > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-crm .product-kicker {
  color: var(--service-crm);
}

.product-parrainage .product-kicker {
  color: var(--service-parrainage);
}

.product-site .product-kicker {
  color: #507a68;
}

.product-telephonie .product-kicker {
  color: #b66512;
}

.product-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.product-card p:last-child {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.ops-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
  background: var(--cast0r-navy);
  color: var(--cast0r-white);
}

.ops-copy {
  max-width: 660px;
  justify-self: end;
}

.ops-copy h2 {
  color: var(--cast0r-white);
}

.ops-copy > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--service-site);
  border-radius: 50%;
}

.ops-visual {
  width: min(100%, 480px);
  margin: 0;
}

.ops-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.contact-section {
  background: linear-gradient(180deg, var(--background-soft), var(--cast0r-white));
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
  background: var(--cast0r-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.contact-copy h2 {
  margin: 0;
  color: var(--cast0r-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.contact-copy p:last-child {
  color: var(--text-muted);
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.92rem;
  font-weight: 760;
}

.field small {
  color: var(--text-muted);
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--cast0r-navy);
  background: var(--cast0r-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(224, 122, 31, 0.2);
  border-color: var(--cast0r-orange);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #2f7a4f;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--cast0r-navy);
}

.site-footer span:first-child {
  color: var(--cast0r-white);
  font-weight: 850;
}

.site-footer a {
  margin-left: 12px;
  color: var(--cast0r-white);
  font-weight: 750;
}

.legal-page {
  background: var(--background-soft);
}

.legal-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px) 34px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--cast0r-navy);
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-date {
  margin-top: 20px;
  font-weight: 750;
}

.legal-content {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(70px, 9vw, 110px);
}

.legal-content article {
  padding: clamp(22px, 4vw, 32px);
  background: var(--cast0r-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(13, 27, 42, 0.06);
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--cast0r-navy);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.18;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--cast0r-brown);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1060px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-inner,
  .ops-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-visual {
    width: min(72vw, 300px);
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .ops-copy {
    justify-self: stretch;
  }

  .ops-visual {
    justify-self: center;
  }
}

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

  .main-nav {
    gap: 10px;
    font-size: 0.88rem;
  }

  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 128px;
  }

  .product-media img {
    height: 82px;
    max-width: 62%;
  }

  .contact-panel {
    padding: 22px;
  }
}
