/* Vectorengine Core — editorial marketing theme */
:root {
  --ink: #12151a;
  --ink-soft: #2a3140;
  --paper: #f2f4f7;
  --paper-deep: #e5e9ef;
  --surface: #ffffff;
  --accent: #c23b22;
  --accent-hover: #a3321c;
  --forest: #1e4d3e;
  --forest-soft: #2a6b56;
  --muted: #5a6570;
  --line: #cdd3dc;
  --focus: #1e4d3e;
  --radius: 2px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --max: 72rem;
  --header-h: 4.25rem;
  --shadow-soft: 0 1px 0 rgba(18, 21, 26, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(30, 77, 62, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(194, 59, 34, 0.05), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #eef1f5 100%);
  min-height: 100vh;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: path(0 0);
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--forest);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header__nav a:hover {
  color: var(--accent);
}

.site-header__cta {
  background: var(--forest);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-header__cta:hover {
  background: var(--forest-soft);
  transform: translateY(-1px);
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__nav.is-open {
    display: flex;
    animation: navIn 0.35s var(--ease);
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 var(--space-sm);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.btn--secondary:hover {
  background: var(--forest-soft);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Home hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 21, 26, 0.88) 0%, rgba(18, 21, 26, 0.55) 48%, rgba(30, 77, 62, 0.35) 100%),
    linear-gradient(0deg, rgba(18, 21, 26, 0.55), transparent 45%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  animation: riseIn 0.9s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-family: var(--font-body);
  font-weight: 500;
  max-width: 28rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Offer strip */
.offer-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 800px) {
  .offer-strip {
    grid-template-columns: 1fr;
  }
}

.offer-strip__visual {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 18rem;
}

.offer-strip__visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.list-check li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--forest);
  border-radius: 1px;
}

/* Service grid — interaction containers */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  border-color: var(--forest);
  transform: translateY(-3px);
  color: inherit;
}

.service-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__img img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__meta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

/* Quote band */
.quote-band {
  background: var(--ink);
  color: #e8ecf0;
  padding: var(--space-xl) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  max-width: 40rem;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(232, 236, 240, 0.7);
}

/* Journal preview */
.journal-list {
  display: grid;
  gap: 1.5rem;
}

.journal-item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.journal-item:hover h3 {
  color: var(--accent);
}

.journal-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.journal-item__date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
  .journal-item {
    grid-template-columns: 1fr;
  }
}

/* Page hero (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: end;
}

.page-hero--split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  .page-hero--split {
    grid-template-columns: 1fr;
  }
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.pricing-table th {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
}

.pricing-notes {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-lg);
}

.pricing-note {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--forest);
  background: var(--surface);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
}

.review__service {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review__author {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.story {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--ink);
  color: #e8ecf0;
  border-radius: var(--radius);
}

.story h2 {
  color: #fff;
}

.story p {
  color: rgba(232, 236, 240, 0.88);
}

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: 1rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.form__field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 77, 62, 0.15);
}

.form__error {
  color: var(--accent);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form__status.is-success {
  display: block;
  background: rgba(30, 77, 62, 0.12);
  color: var(--forest);
  border: 1px solid rgba(30, 77, 62, 0.3);
}

.form__status.is-error {
  display: block;
  background: rgba(194, 59, 34, 0.1);
  color: var(--accent);
  border: 1px solid rgba(194, 59, 34, 0.28);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem;
  border-radius: var(--radius);
  height: fit-content;
}

.contact-aside p {
  margin: 0.4rem 0;
}

/* Process / approche */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  color: #e8ecf0;
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: #fff;
}

.cookie-banner a {
  color: #fff;
}

.cookie-banner .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn--primary {
  background: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 1.25rem var(--space-lg);
  background: var(--ink);
  color: rgba(232, 236, 240, 0.85);
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__copy {
  max-width: var(--max);
  margin: var(--space-lg) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(232, 236, 240, 0.55);
}

/* Service detail */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: var(--space-md) 0;
  font-size: 0.95rem;
}

.meta-row strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .split-lists {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal h2 {
  margin-top: var(--space-lg);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
}

.cookies-table th {
  background: var(--paper-deep);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-2xl) 1.25rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}
