/* ============================================================
   Cognitera — Home page
   ============================================================ */

:root {
  --green: #98EC2B;
  --green-hover: #8AD920;
  --navy: #191D36;
  --navy-2: #12162B;
  --navy-3: #232848;
  --ink: #191D36;
  --muted: #6B7280;
  --muted-light: #A7ADC2;
  --light: #F5F4F0;
  --page: #F3F2EE;
  --white: #FFFFFF;
  --border: #E7E7EC;
  --border-dark: #2E3358;
  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1240px;
}

.home, .home *, .home *::before, .home *::after { box-sizing: border-box; }

/* Smooth in-page navigation when clicking a menu tab */
html { scroll-behavior: smooth; }
#services, #approche, #contact { scroll-margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.home {
  font-family: "Gabarito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}

.home h1, .home h2, .home h3 {
  font-family: "Gabarito", sans-serif;
  line-height: 1.15;
}

/* Zero-specificity margin reset so component margins (incl. `auto` centering) always win */
:where(.home) h1,
:where(.home) h2,
:where(.home) h3,
:where(.home) p { margin: 0; }
:where(.home) a { text-decoration: none; color: inherit; }
.home img { max-width: 100%; display: block; }

/* ---------- Section title (light sections) ---------- */
.section-title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 34px;
  border-radius: 10px;
  font-family: "Gabarito", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(152, 236, 43, .28);
}
.btn--primary:hover { background: var(--green-hover); }
.btn--ghost {
  background: rgba(13, 16, 32, .55);
  color: #FFF;
  border-color: rgba(255, 255, 255, .30);
}
.btn--ghost:hover { background: rgba(13, 16, 32, .78); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 24px 84px;
  overflow: hidden;
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
}
.hero__network {
  position: absolute;
  top: 128px;
  left: -55px;
  width: 440px;
  opacity: .9;
  pointer-events: none;
  user-select: none;
}

/* Navbar (floating rounded bar) */
.navbar {
  position: relative;
  z-index: 3;
  max-width: 1340px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
  padding: 0 16px 0 28px;
  background: rgba(18, 22, 42, .42);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar__brand { display: inline-flex; align-items: center; }
.navbar__logo { height: 34px; width: auto; }
.navbar__links {
  display: flex;
  gap: 46px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__links a {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  font-weight: 400;
  transition: color .18s ease;
}
.navbar__links a:hover { color: var(--white); }
.navbar__links a.is-active { color: var(--green); font-weight: 700; }
.navbar__cta { height: 46px; padding: 0 28px; }

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding-top: clamp(80px, 11vw, 150px);
  text-align: center;
}
.hero__title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -.5px;
}
.hero__title-accent { color: var(--green); display: block; }
.hero__title-main { color: var(--white); display: block; margin-top: 2px; }
.hero__subtitle {
  max-width: 516px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  line-height: 22px;
}
.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__actions .btn { height: 52px; padding: 0 40px; }

/* ============================================================
   BUILD — "Ce que nous construisons"
   ============================================================ */
.build {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 35px 24px 67px;
  background: transparent;
}
.build__spinner {
  width: 90px;
  height: auto;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.build__title { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 46px; }

.build__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

/* Wide image cards (row 1) — two side by side */
.feature-card {
  position: relative;
  grid-column: span 3;
  min-height: 250px;
  border-radius: 20px;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 13, 26, .84) 0%, rgba(10, 13, 26, .48) 46%, rgba(10, 13, 26, 0) 80%);
}
.feature-card__body {
  position: relative;
  z-index: 1;
  padding: 58px 32px 32px;
  max-width: 90%;
  color: var(--white);
}
.feature-card__title {
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}
.feature-card__text {
  font-size: 16px;
  line-height: 24px;
  color: #9396A6;
}

/* Media cards (row 2) — three white cards */
.media-card {
  grid-column: span 2;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ECECEC;
  box-shadow: 0 14px 34px rgba(20, 24, 45, .06);
}
.media-card__img {
  width: 100%;
  height: 196px;
  object-fit: cover;
}
.media-card__body { padding: 26px 26px 30px; }
.media-card__title {
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.1;
}
.media-card__text {
  font-size: 16px;
  line-height: 24px;
  color: #9396A6;
}

/* ============================================================
   APPROACH — "Notre approche"
   ============================================================ */
.approach {
  position: relative;
  background: var(--navy);
  padding: 84px 24px 96px;
  overflow: hidden;
}
.approach__network {
  position: absolute;
  top: 120px;
  right: 0;
  width: 235px;
  opacity: .85;
  pointer-events: none;
}
.approach__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
}
.eyebrow {
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.approach__title {
  color: var(--white);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 600;
}
.approach__subtitle {
  color: rgba(255, 255, 255, .45);
  font-size: 16px;
  line-height: 22px;
  margin-top: 12px;
  max-width: 620px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  background: rgba(0, 0, 0, .15);
  border-radius: 20px;
  padding: 24px 28px 34px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: #15192E;
  font-family: "Gabarito", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
}
.step__title {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step__text {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 22px;
}

/* ============================================================
   TRUST — "Ils nous font confiance"
   ============================================================ */
.trust {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 88px 24px 40px;
  text-align: center;
}
.trust__title { margin-bottom: 48px; }
/* Scrolling logo marquee */
.trust__logos {
  overflow: hidden;
  /* fade the edges so logos slide in/out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.trust__track {
  display: flex;
  width: max-content;
  animation: trust-scroll 34s linear infinite;
}
.trust__logos:hover .trust__track { animation-play-state: paused; }
.trust__set {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px; /* trailing gap so both sets are identical repeat units */
}
.trust__logo {
  flex: 0 0 auto;
  width: 200px;
  height: 116px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #ECECEC;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 24, 45, .05);
}
.trust__logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust__track { animation: none; }
}
@media (max-width: 520px) {
  .trust__logo { width: 160px; height: 100px; padding: 18px; }
}

/* ============================================================
   CONTACT — "Parlons de votre projet"
   ============================================================ */
.contact {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 96px;
  overflow: visible;
}
.contact__network {
  position: absolute;
  top: 50%;
  right: calc(50% - 50vw); /* flush to the right edge of the viewport */
  transform: translateY(-50%);
  width: 240px;
  opacity: 1;
  pointer-events: none;
}
.contact__title { margin-bottom: 44px; }
.contact-form {
  position: relative;
  z-index: 1;
  max-width: 686px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(20, 24, 45, .04);
  border-radius: 25px;
  box-shadow: 0 26px 64px rgba(20, 24, 45, .09);
  padding: 46px 44px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field { margin-bottom: 24px; }
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9396A6;
  margin-bottom: 8px;
}
.field__input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #D5D9E1;
  border-radius: 15px;
  background: #F5F6F3;
  font-family: "Gabarito", sans-serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field__input::placeholder { color: #C4C9D4; }
.field__input:focus {
  outline: none;
  border-color: var(--green);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(152, 236, 43, .18);
}
.field__input--area {
  height: auto;
  padding: 16px 20px;
  resize: vertical;
  min-height: 192px;
  line-height: 1.6;
}
.contact-form__submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
}
.contact-form__submit.is-loading { opacity: .7; cursor: progress; transform: none; }

/* Inline validation feedback */
.field__error {
  display: block;
  margin-top: 7px;
  color: #E5484D;
  font-size: 13px;
  line-height: 1.35;
}
.field__input--error,
.field__input--error:hover {
  border-color: #E5484D;
  background: #FDF4F4;
}
.field__input--error:focus {
  border-color: #E5484D;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .16);
}

/* Success state (replaces the form after submission) */
.contact-success {
  max-width: 686px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(20, 24, 45, .04);
  border-radius: 25px;
  box-shadow: 0 26px 64px rgba(20, 24, 45, .09);
  padding: 58px 44px;
  text-align: center;
  animation: contact-pop .45s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes contact-pop {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contact-success__badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
}
.contact-success__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-success__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 470px;
  margin: 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .contact-success { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--navy);
  min-height: 168px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.footer__logo { height: 44px; width: auto; }
.footer__location {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .4);
  font-size: 16px;
  white-space: nowrap;
}
.footer__spinner {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  height: auto;
  opacity: .9;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children within grids */
.build__grid .reveal:nth-of-type(2) { transition-delay: .08s; }
.build__grid .reveal:nth-of-type(3) { transition-delay: .12s; }
.build__grid .reveal:nth-of-type(4) { transition-delay: .18s; }
.build__grid .reveal:nth-of-type(5) { transition-delay: .24s; }
.steps .reveal:nth-of-type(2) { transition-delay: .1s; }
.steps .reveal:nth-of-type(3) { transition-delay: .2s; }
.steps .reveal:nth-of-type(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .build__spinner, .footer__spinner { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .build__grid { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-column: 1 / -1; }
  .media-card { grid-column: span 1; }
}
@media (max-width: 700px) {
  .build__grid { grid-template-columns: 1fr; }
  .feature-card, .media-card { grid-column: 1 / -1; }
  .feature-card__body { padding: 30px 24px; }
  .feature-card__title, .media-card__title { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .navbar__links { display: none; }
  .hero__network { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer { padding: 0 24px; }
  .footer__spinner { right: 16px; width: 80px; opacity: .6; }
  .footer__location { bottom: 24px; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
