:root {
  --ink: #0b1116;
  --ink-soft: #13202a;
  --paper: #f7f4ec;
  --paper-2: #ebe7dc;
  --white: #ffffff;
  --muted: #5e6871;
  --orange: #e8751a;
  --orange-light: #ffad32;
  --cyan: #60d5d2;
  --line: rgba(11, 17, 22, 0.14);
  --radius: 8px;
  --shadow: 0 22px 70px rgba(11, 17, 22, 0.14);
  --wrap: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(11, 17, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  width: var(--wrap);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 850;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}

.nav-links,
.footer-links,
.pills,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 750;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 14px 34px rgba(232, 117, 26, 0.34);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 17, 22, 0.94), rgba(11, 17, 22, 0.68)),
    url("../images/bannerhome-optimized.webp") center / cover;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
}

.hero-inner {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 44px;
  align-items: end;
  padding: 34px 0 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 740px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(11, 17, 22, 0.62);
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.25rem;
}

.hero-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

section {
  padding: 86px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.muted {
  color: var(--muted);
}

.grid-3,
.grid-2,
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(11, 17, 22, 0.07);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

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

.band-dark {
  color: var(--white);
  background: var(--ink);
}

.band-dark .section-head p,
.band-dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.band-dark .card {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: #101a22;
}

.band-soft {
  background: var(--paper-2);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(232, 117, 26, 0.1);
  color: #70360f;
  font-weight: 750;
}

.steps {
  counter-reset: step;
}

.steps .card {
  position: relative;
}

.steps .card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 28px;
  color: var(--orange);
  font-weight: 900;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7b3b11;
  background: rgba(232, 117, 26, 0.12);
  font-size: 0.78rem;
  font-weight: 850;
}

.portfolio-grid {
  grid-template-columns: repeat(12, 1fr);
}

.project-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(11, 17, 22, 0.07);
}

.project-card.featured {
  grid-column: span 8;
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8d2c3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 22px;
}

.portfolio-hero .hero-inner {
  min-height: 480px;
}

.portfolio-highlight {
  display: grid;
  gap: 14px;
}

.portfolio-highlight strong {
  font-size: 2.8rem;
  line-height: 1;
}

.portfolio-highlight span {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(11, 17, 22, 0.07);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.filter-chip.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  grid-column: span 4;
  border-radius: var(--radius);
  background: #111820;
  box-shadow: 0 22px 60px rgba(11, 17, 22, 0.18);
}

.showcase-card.wide {
  grid-column: span 8;
  min-height: 520px;
}

.showcase-card.tall {
  min-height: 520px;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.showcase-card:hover img {
  transform: scale(1.055);
}

.showcase-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(11, 17, 22, 0), rgba(11, 17, 22, 0.92) 28%, rgba(11, 17, 22, 0.98));
}

.showcase-overlay .pills {
  margin-bottom: 16px;
}

.showcase-overlay h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.95rem);
  line-height: 1.08;
}

.showcase-overlay p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.editorial-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #101a22;
}

.editorial-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.12;
}

.editorial-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.editorial-list {
  display: grid;
  gap: 12px;
}

.editorial-list li {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 17, 22, 0.95), rgba(11, 17, 22, 0.74)),
    url("../images/profond.webp") center / cover;
}

.cta h2 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.08;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(11, 17, 22, 0.06);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(11, 17, 22, 0.07);
}

.contact-panel h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

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

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

label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(96, 213, 210, 0.12);
}

.recaptcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.d-none {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #070b0f;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.55fr));
  gap: 32px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--white);
  font-weight: 750;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand p {
  max-width: 460px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-title {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  width: var(--wrap);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero-inner,
  .section-head,
  .grid-2,
  .grid-3,
  .editorial-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 24px;
  }

  .project-card,
  .project-card.featured,
  .showcase-card,
  .showcase-card.wide {
    grid-column: span 6;
  }

  .portfolio-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100% - 28px, 1120px);
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links a {
    width: 100%;
  }

  section {
    padding: 68px 0;
  }

  .project-card,
  .project-card.featured,
  .showcase-card,
  .showcase-card.wide {
    grid-column: 1 / -1;
  }
}
